/chatLog reader

Come in, pull up a chair, let's discuss all things Ryzom-related.
User avatar
richky
Posts: 181
Joined: Sat Aug 27, 2005 4:18 am

/chatLog reader

Post 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.
Inaeroth - Exile
Radsul - Desert Forager & Conspiracy Theorist
=====================
Screenshot gallery
=====================
"The winner is the person that still loves the game after years of playing it
and not the person who caps first and then can't think of anything else to do."

- Sauveteur
User avatar
kostika
Posts: 1260
Joined: Fri Sep 24, 2004 6:48 pm

Re: /chatLog reader

Post by kostika »

When I try to open a log file it gives me the error "invalid log file". It is a valid one though.
~Kostika
Guild Leader of The Samsara
Atys Guardian

Stand and Deliver!!
jamela
Posts: 1413
Joined: Sat Oct 02, 2004 11:16 am

Re: /chatLog reader

Post by jamela »

Great idea! I'll try it out later, Inaeroth.
User avatar
richky
Posts: 181
Joined: Sat Aug 27, 2005 4:18 am

Re: /chatLog reader

Post 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.
Inaeroth - Exile
Radsul - Desert Forager & Conspiracy Theorist
=====================
Screenshot gallery
=====================
"The winner is the person that still loves the game after years of playing it
and not the person who caps first and then can't think of anything else to do."

- Sauveteur
User avatar
kostika
Posts: 1260
Joined: Fri Sep 24, 2004 6:48 pm

Re: /chatLog reader

Post 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.
~Kostika
Guild Leader of The Samsara
Atys Guardian

Stand and Deliver!!
User avatar
richky
Posts: 181
Joined: Sat Aug 27, 2005 4:18 am

Re: /chatLog reader

Post 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
Inaeroth - Exile
Radsul - Desert Forager & Conspiracy Theorist
=====================
Screenshot gallery
=====================
"The winner is the person that still loves the game after years of playing it
and not the person who caps first and then can't think of anything else to do."

- Sauveteur
User avatar
richky
Posts: 181
Joined: Sat Aug 27, 2005 4:18 am

Re: /chatLog reader

Post 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 ;) .
Inaeroth - Exile
Radsul - Desert Forager & Conspiracy Theorist
=====================
Screenshot gallery
=====================
"The winner is the person that still loves the game after years of playing it
and not the person who caps first and then can't think of anything else to do."

- Sauveteur
User avatar
kostika
Posts: 1260
Joined: Fri Sep 24, 2004 6:48 pm

Re: /chatLog reader

Post 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)
~Kostika
Guild Leader of The Samsara
Atys Guardian

Stand and Deliver!!
User avatar
lathan
Posts: 219
Joined: Fri Sep 24, 2004 12:58 pm

Re: /chatLog reader

Post 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!
Lathaniel
Ascension Guild Leader
User avatar
kostika
Posts: 1260
Joined: Fri Sep 24, 2004 6:48 pm

Re: /chatLog reader

Post 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.
~Kostika
Guild Leader of The Samsara
Atys Guardian

Stand and Deliver!!
Post Reply

Return to “General”