Stephen_Zuckerman - 6/28/2006 9:12 AM
But the problem is that I want to exclude combat and server info in the logs, but not in-game.
Then you'd best become good friends with the "grep" program and start scripting.
You can start by excluding lines containing the following phrases:
Initiative Roll
: *hit* :
: *miss* :
] Attack Of Opportunity
] Experience Points Gained
] Acquired
has left as a player..
has joined as a player..
[Server]
] Your journal has been updated
] You should have a valid subrace
] Equipped item swapped out
] Weapon equipped
The real problem is, even if you can come up with a nice "grep" script to exclude these lines, plus a whole bunch more, there are some that you just won't be able to exclude without risking losing conversation.
The alternative requires knowing all of the player names you want, plus writing a pretty complicated regular expression for "grep" to ensure that you get them all in sequence, rather than getting all of Freldo's together followed by all of Zug's, and so on. If you have a "sort" program, it's a little easier... you can just create a script that does the following:
grep "] Pyrran:" nwclientLog1.txt > chatlog_temp.txt
grep "] Zug:" nwclientLog1.txt >> chatlog_temp.txt
grep "] Trig Masterson:" nwclientLog1.txt >> chatlog_temp.txt
(etc.)
sort chatlog_temp.txt > chatlog.txt
del chatlog_temp.txt
That will get all of the conversation lines for the characters you name in the individual "grep" lines, and the timestamps will help sort them back to the appropriate order. The only problem is that you have to know exactly which characters you want to save chat for, and that you make sure you have them entered correctly (some have spurious spaces in their names).
This will also get all of the banking, crafting, etc. dialogs, but there's nothing to be done about that so easily.