Saving a chat log to text file.
-
I was told there was a command or something to save the chatlog, so I tried searching the forums, and couldn't seem to find it. Thus, I've decided to ask here. Sorry if the question's redundant. :? And hopefully I'm asking this in the right forum (wasn't sure if it should go here or Server Issues).
Is there a command to save the chat log to a text file? Something other than using Printscreens to save a log would be really useful.
-Wyrenth
-
In nwnplayer.ini under options add ClientChatLogging=1. I don't know if that alone does it cause azz sent me some sort of script to go with it as well.
-
nwnplayer.ini
[Game Options]
ClientChatLogging=1It will overwrite the log file every time, so I made a simple vbs file that circulates the log, get it here:
http://azzmodan.homeftp.net/nwn/nwn.vbsJust edit the first line to point to your nwn directory, and use that to start. It will rename the logfile to the date and time it was created so it doesn't get overwritten.
-
Woot. :) Thanks, guys!
-Wyrenth
-
nwnplayer.ini
[Game Options]
ClientChatLogging=1It will overwrite the log file every time, so I made a simple vbs file that circulates the log, get it here:
http://azzmodan.homeftp.net/nwn/nwn.vbsJust edit the first line to point to your nwn directory, and use that to start. It will rename the logfile to the date and time it was created so it doesn't get overwritten.
Hi,
Sorry, but I'm not too clever when it comes to stuff like this… :roll:
so I made the change to nwnpalyer.ini, downloaded the vbs file and changed the nwn directory...
Now what do I do with the vbs file? Do I put it in the NWN folder?
Does it automaticaly save the entire chat log per session or do you turn it on and off?
And finally where will the chat logs be saved?
Ignorantly yours,
tmplBEEF : Basil Ponce
-
The chat log will save to the Logs folder which is within your NWN folder.
As for your other question, I'd like to know the answer myself. I'm not familiar with the .vbs extension.
-
After you've followed his directions, you use the .vbs file to boot up NWN instead of the NWN shortcut. At least, I think that's what you're asking. The actual .vbs file can go anywhere you want it to go, other than the trash bin. :P
For example, I placed my .vbs file in the NWN directory, and then modified the shortcut on my desktop from nwn.exe to nwn.vbs.
-
I believe you have to put it in your NWN folder. The only reason why Dorign's "random" folder selection works is because he selected the right folder.
-
So how about Linux users (am I the only one on CoA? :) ). Here's what I did…
I modified my nwn script to execute a log shuffling script before running the nwn client:
./swaplog.sh ./nwmain $@ ```Swaplog script itself is pretty rudimentary:
#! /bin/sh
nwnlog="./logs/nwclientLog1.txt"
savelog="./logs/nwnclientlog-save.txt"
logfile=$savelog.gzif [ ! -e "$nwnlog" ] ; then
exit 1
fi
if [ -e "$logfile" ] ; then
gzip -d $logfile
fi
cat $nwnlog >> $savelog
gzip $savelog
exit 0I suppose this would work for MacOS X folks too.
-
Just wanted to say that I managed to get the chatlog working, so thanks all for the help.
It's a big deal for me 'cause my char is acting as a reporter for the Arabel Enquirer. No more transcribing from screenshots for me!
I believe the correct vernacular is 'WOOT!'
-
So how about Linux users (am I the only one on CoA? :) ). Here's what I did…
#!/bin/sh #We nicely rename it logdate=`date +"%m-%d-%H%M%S"` mv logs.0/nwclientLog1.txt logs.0/nwclientLog1-"$logdate".txt #You could optionally bzip it, and then remove the original tar -cjf logs.0/nwclientLog1-"$logdate".tar.bz2 logs.0/nwclientLog1-"$logdate".txt rm logs.0/nwclientLog1-"$logdate".txt
The Arabel server actually:
Parses the log with perl for various things
Renames it to include a date
tar+bzips it
Uploads the tar
Removes it again, all we need on the server is the plain text file in case we need to look something up
Then starts the serverAnother machine at some point picks up those logs from the FTP and parses them again to provide a simple web based interface for some types of information.
And there is a cron job running in the background that checks if the server is still showing signs of activity and if it deadlocked it restarts.
-
Another machine at some point picks up those logs from the FTP and parses them again to provide a simple web based interface for some types of information.
Thanks for the reply. I think I'll change my script to use date-seperated files to make it easier to figure out when what was said.
Also - I'd humbly suggest using SFTP or SCP instead of FTP. :)
-
Also - I'd humbly suggest using SFTP or SCP instead of FTP. :)
Not much use in using SFTP when the other side has a normal FTP server running.
scp is used for module transfers though. -
I use the following script in windows. I replaced the desktop icon with this script
:
cd :\games\NeverwinterNights\NWN
cd logs
copy nwclientLog1.txt chatlogs.
cd chatlogsFOR /F "TOKENS=2,3,4 DELIMS=/ " %%I IN ('DATE /T') DO (SET LOGDATE=%%K%%I%%J)
for /F "TOKENS=1,2 DELIMS=: " %%Q IN ('TIME /T') DO (SET LOGTIME=%%Q%%R)rename nwclientLog1.txt nwclientLog1%LOGDATE%%LOGTIME%.txt
cd ..
cd ..
nwn.exeHope this helps. you need create a subfolder called chat logs.
Fermata
-
Hmmm… I can't seem to get the .vbs to execute NwN. It just shows me an error message, telling me that the file can't be found (I can still choose Open with... though).
-
Hmmm… I can't seem to get the .vbs to execute NwN. It just shows me an error message, telling me that the file can't be found (I can still choose Open with... though).
There is an error in your path.
-
Hmmm… I can't seem to get the .vbs to execute NwN. It just shows me an error message, telling me that the file can't be found (I can still choose Open with... though).
There is an error in your path.
Appears I had made the changes, just didn't save them. :oops:
-
If the script you are talking about is mine, in my post I should have been more clear. The script I run is a .cmd file. Not a VBS script.
-Suicyde
-
The link to the VBS file that teph made doesn't seem to be working for me. Is this still available?
-
It's dead at the moment. You can always ask Azz if he can put it back up.