Page 1 of 1
Chat log
Posted: Sun Jul 01, 2007 11:15 am
by Cromagnon
How do you turn this on? Mine is always blank.
Does it record the left-hand conversation log, or the right-hand server messages one?
Posted: Sun Jul 01, 2007 11:24 am
by swoods
Turn Clientchallogging from 0 to 1 or vice versa. in your nwn.ini file
Edit: If you turn on ShowEntireChatLog then it will record both windows. Its a bit of a sod to actually filter through the whole thing.
Posted: Sun Jul 01, 2007 1:20 pm
by Marleh
Check the NWVault for the Gnomish log roller, or check these boards for a similar program. These will rename the log to the day and time each time you log out. If you don't rename the log, then it will be overwritten each time you log back in. Bit of a bummer that, I've lost some nice conversations that way.
Posted: Sun Jul 01, 2007 1:24 pm
by wyrmslayer77
Posted: Sun Jul 01, 2007 9:22 pm
by Tulok
I use ASK, "Avlis Side Kick". It saves my conversation logs quite well.

Posted: Sun Jul 01, 2007 11:37 pm
by Ellowin
link to sidekick, please?
Posted: Mon Jul 02, 2007 1:25 am
by Red
Ellowin wrote:link to sidekick, please?
Linky
Posted: Mon Jul 02, 2007 1:27 am
by Kanteletar
Tulok wrote:I use ASK, "Avlis Side Kick". It saves my conversation logs quite well.

+1
Posted: Mon Jul 02, 2007 1:39 am
by Ellowin
Red wrote:Ellowin wrote:link to sidekick, please?
Linky
w00t! Thanks

Posted: Mon Jul 02, 2007 2:07 am
by Cromagnon
swoods241078 wrote:Turn Clientchallogging from 0 to 1 or vice versa. in your nwn.ini file
Edit: If you turn on ShowEntireChatLog then it will record both windows. Its a bit of a sod to actually filter through the whole thing.
It works. Thanks a lot!

Posted: Tue Jul 03, 2007 3:51 pm
by korak
I threw together a little perl script that rotates my logs. You must have Perl installed for it to run, but it is free and can be retrieved from perl.org (windows, mac, or linux).
I just created a batch file on my desktop with notepad which contains:
C:\NeverwinterNights\NWN\nwn.exe
pause
perl -w c:\nwn_log_rotate.pl
That runs NWN and when you quit playing NWN then you must hit enter on the dos screen that is up for the log rotation to be done. You could also always just go to Start->Run and type perl -w c:\nwn_log_rotate.pl to do it manually.
I just created the script with notepad which contains:
$log_dir = "C:\\NeverwinterNights\\NWN\\logs\\";
$log_file = $log_dir."nwclientLog1\.txt";
($sec, $min, $hour, $day, $month, $year) = (localtime)[0,1,2,3,4,5];
$year=$year+1900; $month++;
if ($month < 10) { $month = "0".$month };
if ($day < 10) { $day = "0".$day };
$date_file = $log_dir.$year."-".$month."-".$day."-".$hour.'.'.$min.'.'.$sec.'.csv';
$line_number = 1;
open output_file, ">$date_file";
open input_file, "$log_file";
while (<input_file>) {
chomp;
s/\[CHAT WINDOW TEXT\] //g;
m/^(\[[^]]*\])?([^:]*:)?(.*)$/;
print output_file "$line_number\t";
$line_number++;
if ($1) { print output_file "$1\t" };
if ($2) { print output_file "$2\t" };
if ($3) { print output_file "$3" };
print output_file "\n";
}
close input_file;
close output_file;
and saved it to the root of the C: drive as nwn_log_rotate.pl. You could place it anywere, but you would need to make sure you ran it with 'perl -w <drive:><directory>nwn_log_rotate.pl
The script will name a file in the format of:
year-month-day-hour.minute.sec.csv
That way you can sort it in cronological order.
It then saves as a tab-delimted file so that you can open it in a spreadsheet and sort the lines that you want. You can always still open it in a wordprocessor.
The basics format is:
<line_number> <time_stamp> <player_name> <command>
I stuck the line_number in so that you can always resort the file back to the original way it was. I just like using spreadsheets so I can sort quickly and get the info out of the log that I need. :)
Posted: Tue Jul 03, 2007 4:52 pm
by Zandel
A note on the Avlis side kick, it is a great program for logging in to servers quickly, and it will save and let you view your logs. However, if you transtions servers it does not save any of the logs, so it only works when you log on and off the same server.
Posted: Tue Jul 03, 2007 6:36 pm
by korak
Zandel wrote:A note on the Avlis side kick, it is a great program for logging in to servers quickly, and it will save and let you view your logs. However, if you transtions servers it does not save any of the logs, so it only works when you log on and off the same server.
The same goes when I use my script above. To save my log I have to Start->Run->Perl -w c:\nwn_log_rotate.pl before I transport to a new server.
Posted: Thu Jul 05, 2007 5:29 pm
by korak
korak wrote:Zandel wrote:A note on the Avlis side kick, it is a great program for logging in to servers quickly, and it will save and let you view your logs. However, if you transtions servers it does not save any of the logs, so it only works when you log on and off the same server.
The same goes when I use my script above. To save my log I have to Start->Run->Perl -w c:\nwn_log_rotate.pl before I transport to a new server.
I guess I was wrong. I got to looking at the rotated log file and it held the server transitioning. I thought the transitioning wiped the previous server. Oh well, I have been wrong before and I am pretty sure that I will be again.
