Page 1 of 3

/chatLog reader

Posted: Tue Mar 14, 2006 5:07 pm
by richky
If anyone is interested, I have written a little reader program for /chatLog files. The link is in my sig. I haven't been using it for long and have been adding features, so you might still find the odd bug - let me know if you do :D . It is written with .net so should work on any recent version of Windows.

Code: Select all

chatLog_SoR is freeware and comes with no guarantees.

If you have any comments, suggestions, bug reports,
please PM richky on the SoR forums.

With this reader you can open a Saga of Ryzom /chatLog
file, view it in different ways, and save selected views.

A toggle button will be created for each chat
channel used in the file so that log entries for that
channel can be toggled on/off.  You can also toggle
System channel entries, date/time, line numbers, and
text from individual players.

Select single lines in the log or multiple lines (using
CTRL-click and SHIFT-click) and show/hide those lines 
by right-clicking and selecting Show or Hide from the 
menu.

Use the replace.txt file to define global search/replace
pairs (e.g. replace all instances of 'You say' with 
'Radsul says').  The global replace can be toggled on/off.

The Save button will save the text as it is displayed.

Re: /chatLog reader

Posted: Tue Mar 14, 2006 6:31 pm
by kostika
When I try to open a log file it gives me the error "invalid log file". It is a valid one though.

Re: /chatLog reader

Posted: Tue Mar 14, 2006 6:39 pm
by jamela
Great idea! I'll try it out later, Inaeroth.

Re: /chatLog reader

Posted: Tue Mar 14, 2006 7:06 pm
by richky
kostika wrote:When I try to open a log file it gives me the error "invalid log file". It is a valid one though.
It looks for a datetime stamp at the beginning of the first line and gives that error if it can't find it. Maybe it is affected by regional date/time format settings? I'll have to do some experimenting. In the meantime I changed it to continue even if it doesn't recognize a date.

Re: /chatLog reader

Posted: Tue Mar 14, 2006 7:32 pm
by kostika
The log I have had no dates in it as they had been removed previously in an edit. The ditor inserted 00:00:00 into the date space. Because it's inserted that time space, the show/hide time doesn't work right. It shows/hides the 00:00:00 it inserted.

Why not make it so it jsut has to be a text file? Having it verify a date/time filed in the txt file makes it a pain to re-edit old logs.

Also on the filter people drop down you have 3 options. Show all, clear all and a blank one with a check in front of it.

The replace function you should be able to designate the text you want replaced and what you want it replaced with. As it is I can't tell what it's replacing.

Re: /chatLog reader

Posted: Tue Mar 14, 2006 7:54 pm
by richky
kostika wrote:The log I have had no dates in it as they had been removed previously in an edit. The ditor inserted 00:00:00 into the date space. Because it's inserted that time space, the show/hide time doesn't work right. It shows/hides the 00:00:00 it inserted.

Why not make it so it jsut has to be a text file? Having it verify a date/time filed in the txt file makes it a pain to re-edit old logs.
Yeah, I didn't think about re-editing old files. With the date removed from your file it is inserting its own timestamp and treating the time that was there as part of the text. I'll see what I can do about that.
kostika wrote: Also on the filter people drop down you have 3 options. Show all, clear all and a blank one with a check in front of it.
That's an effect of re-editing an old file. In an unedited file the dropdown will list all the people who have spoken in the log. Most of the program features rely on various format features of the unedited chatLog file.
kostika wrote:The replace function you should be able to designate the text you want replaced and what you want it replaced with. As it is I can't tell what it's replacing.
You do that in the replace.txt file (there are some examples there). Basically, you add a line similar to:
TextToBeReplaced|TextToReplaceWith

Re: /chatLog reader

Posted: Tue Mar 14, 2006 8:03 pm
by richky
kostika wrote:The log I have had no dates in it as they had been removed previously in an edit.
Just as a note, this was the reason that you were getting the Invalid file error. I had that test in there to try to make sure that the file was still in its original format ;) .

Re: /chatLog reader

Posted: Tue Mar 14, 2006 10:26 pm
by kostika
richky wrote: You do that in the replace.txt file (there are some examples there). Basically, you add a line similar to:
TextToBeReplaced|TextToReplaceWith
That seems like alot of extra work for jsut replacing a simple thing like You say With Kostika says. Would be easier to jsut use notepad to do it without the extra fiddliness. (which is what i normally do)

Re: /chatLog reader

Posted: Tue Mar 14, 2006 10:31 pm
by lathan
kostika wrote:Also on the filter people drop down you have 3 options. Show all, clear all and a blank one with a check in front of it.
I guess you could check on the log's creation time/date and its last edited time/date, and if the two are sufficiently close together assume that the log's in its original format, otherwise ignore the list of people talking in the log. Although that seems like it might be a bit OTT for the sake of an orphaned menu item!

Re: /chatLog reader

Posted: Tue Mar 14, 2006 10:33 pm
by kostika
lathan wrote:I guess you could check on the log's creation time/date and its last edited time/date, and if the two are sufficiently close together assume that the log's in its original format, otherwise ignore the list of people talking in the log. Although that seems like it might be a bit OTT for the sake of an orphaned menu item!
I'm jsut breaking his program :D

I can't actually think of any uses for the user filtering.