Author Topic: [Client] Chat logger  (Read 5724 times)

Tags: Chat log, chat logs, chat logger

I've had this for a bit and I have no intentions on keeping it to myself.

Logs player chat and normal chat.

Here's an example of a ChatLog - Logs time, what the chat sees, and can record player chat if the server breaks the chat system.
Code: [Select]
[16:12:23] The RandomizerDM minigame was reset.
[16:12:25] (Timescale 1.00x) (Music - Randomized) Now playing: CTR - Hot Air Skyway

Here's an example of a PlayerLog - Notice how it stores time, player name, ID, and the message. Separated by tabs.
Code: [Select]
16:35:06 Darkcore 40598 we need pomf pomf pomf
16:35:07 Darkcore 40598 NOW
16:35:14 The Golden King 41732 No pon pon pon
16:35:21 Darkcore 40598 pomf pomf is king

Dates are on each of the file names with "PlayerLog date here" or "ChatLog date here"
This may not log into the PlayerLog on some servers due to a chat mod that breaks sending messages to the client correctly, nothing I can do about that other than you guys complaining that to them.

All logs stored in: config/client/Logging/
To find logs in the best way, sort the folders by date in your computer's file explorer until I find a better way to store logs based on server name + host name.
Download: https://www.dropbox.com/s/m9uu02ubt7lw2b0/Client_Logger.zip?dl=0
« Last Edit: March 14, 2016, 04:51:34 PM by Kyuande »

« Last Edit: January 23, 2016, 05:17:57 PM by pwnfulz »

Didn't pie crust make something similar to this already?
Link?

Edit:

http://forum.blockland.us/index.php?topic=275694.0
Well, this one is better because:
1. It doesn't separate the logs from normal chat and player chat (Makes it easier to post proof when needed)
2. That entire mod stores all logs into 1 giant file which is a bad idea
« Last Edit: January 23, 2016, 05:39:36 PM by Kyuande »

Okay, thank's to Swollow's code: http://forum.blockland.us/index.php?topic=256384.0 (Thanks Buddy for giving the link)

I was able to get the full server name before the client spawns. The logger should work perfectly now. File path is changed from "config/client/Logger" to "config/client/Logging"

Edit: Every time you connect to a server both PlayerLog and Chatlog will post something like this:
-------- [<time>] You connected to this server. --------
« Last Edit: January 23, 2016, 05:45:02 PM by Kyuande »

I cant find my logging file?

config/client/logging

Steam: C:\Program Files\Steam\SteamApps\Common\Blockland\config\client\Logging\
Non-Steam: My Documents\Blockland\config\client\Logging\

pie crust's chatlogger has this issue where sometimes part of the end is cut off for some reason
hopefully this one doesn't have that problem

What happens if I join a server, restart blockland, and join the same server? Is the earlier log overwritten, or will it create another log based on time?

It'll just keep writing in the file that it was writing in before you left the server.

What happens if I join a server, restart blockland, and join the same server? Is the earlier log overwritten, or will it create another log based on time?
Logs write on date, logs also don't overwrite each other.

config/client/logging

Steam: C:\Program Files\Steam\SteamApps\Common\Blockland\config\client\Logging\
Non-Steam: My Documents\Blockland\config\client\Logging\
I am using non steam and I do not have a logging file in the client folder

What is your computer running? Windows, Mac or Linux?
I've never had issues with this on Windows.

Do the logs record Kill Icons and who killed who?

Do the logs record Kill Icons and who killed who?
Well, it should tell you who killed who (or who died) but you get strange messages such as "Jeff  Bill" since it removes torque ml characters, so basically, no and yes.

What is your computer running? Windows, Mac or Linux?
I've never had issues with this on Windows.
Im running windows 8.1