Storing logs
+2
daveyeisley
Veenkar
6 posters
Page 1 of 1
Storing logs
Normally the game keeps logs in C:\NeverwinterNIghts\NwN\logs\nwclientLog1.txt file but only until you play NwN again.
However there is a trick to store them all and part with sessions. To do that we will play a small programmist.
1. Open a text editor.
2. Copy this:
3. Change c: to your drive letter with NwN installed and cd \NeverwinterNights\Nwn\logs with your NwN directory on it (propably will be the same).
4. Click Save as, select option all files and name it nwn.bat save in your NwN game directory.
5. Now run the game with this file (you can create a shortcut and change its icon).
6. Now you can read ALL your logs in C:\NeverwinterNIghts\NwN\logs\stored.txt
However there is a trick to store them all and part with sessions. To do that we will play a small programmist.
1. Open a text editor.
2. Copy this:
@echo off
c:
cd \NeverwinterNights\Nwn\logs
Echo ***************************************************** >> stored.txt
Echo ************************ NEW SESSION **************** >> stored.txt
Echo ***************************************************** >> stored.txt
type nwclientLog1.txt >> stored.txt
cd ..
nwn
3. Change c: to your drive letter with NwN installed and cd \NeverwinterNights\Nwn\logs with your NwN directory on it (propably will be the same).
4. Click Save as, select option all files and name it nwn.bat save in your NwN game directory.
5. Now run the game with this file (you can create a shortcut and change its icon).
6. Now you can read ALL your logs in C:\NeverwinterNIghts\NwN\logs\stored.txt
Last edited by Veenkar on Wed Jun 18, 2008 2:01 am; edited 3 times in total
Veenkar- Seasoned Explorer
- Number of posts : 111
Age : 33
Main Character : Alin Amraphenen
Other Character : Veenkar Moonshade
Other Character. : Ofelia Huffie
NWN Username : Veenkar
Time Zone : GMT +2 (summer) GMT +1 (winter)
Registration date : 2008-06-06
Re: Storing logs
And this stores only dialogues.
If you want to have entire logs (battle, actions, logins(outs)) copy this line
By the way to remove the annoying intros copy this to the nwn.ini file.
If you want to have entire logs (battle, actions, logins(outs)) copy this line
to your nwnplayer.ini file in nwn folder into the [Game Options] section.ClientEntireChatWindowLogging=1
By the way to remove the annoying intros copy this to the nwn.ini file.
into the [Display Options]Disable Intro Movies=1
Last edited by Veenkar on Wed Jun 18, 2008 1:58 am; edited 1 time in total
Veenkar- Seasoned Explorer
- Number of posts : 111
Age : 33
Main Character : Alin Amraphenen
Other Character : Veenkar Moonshade
Other Character. : Ofelia Huffie
NWN Username : Veenkar
Time Zone : GMT +2 (summer) GMT +1 (winter)
Registration date : 2008-06-06
Re: Storing logs
Wow! Thank you
I had an issue with the first bit you posted for the nwn.bat file...
I used d:\ as copied and got an invalid command error.
I took off the " \ " and that seems to have fixed it, just FYI.
I had an issue with the first bit you posted for the nwn.bat file...
I used d:\ as copied and got an invalid command error.
I took off the " \ " and that seems to have fixed it, just FYI.
daveyeisley- Ludicrous Level
- . :
Number of posts : 6934
Age : 47
Location : Watching Aenea from my Inner Sanctum on the surface of Sharlo, Aenea's Silver Moon
Main Character : Dave's List of PCs
NWN Username : Dave Yeisley
DM Name : Dungeon Master Mythgar
Time Zone : GMT - 5:00
. :
Registration date : 2008-06-03
Re: Storing logs
Furthering Veenkars post above and with a little digging and tweeking myself... follow his directions above except use the text below to save each log by the day...
hope that helps everybody even further... just copy and paste...
:: nwn.bat
:: used to store the nwn client logs before they get overwritten by nwn
::
:: double colon used for comments
::
@echo off
:: this is for the timestamping
for /f "tokens=1-4 delims=/ " %%i in ("%date%") do (
set day=%%i
set month=%%j
set year=%%k
)
:: find path and current log
c:
cd \NeverwinterNights\Nwn\logs
:: denotes new session (needed if starting new sessions on same day)
Echo ***************************************************** >> LogFiles_%day%-%month%-%year%.txt
Echo ********************* NEW SESSION ******************* >> LogFiles_%day%-%month%-%year%.txt
Echo ***************************************************** >> LogFiles_%day%-%month%-%year%.txt
Echo.
:: Gives a space and prints date and time, its out of sync here
:: but matches in the saved logs due to the length of date and time
Echo ***************************************************** >> LogFiles_%day%-%month%-%year%.txt
Echo ****** %date% **************** %time% ****** >> LogFiles_%day%-%month%-%year%.txt
Echo ***************************************************** >> LogFiles_%day%-%month%-%year%.txt
:: below copies previous log
type nwclientLog1.txt >> LogFiles_%day%-%month%-%year%.txt
:: change below to 'nwtoolset.exe' for nwn toolset, or 'nwmain.exe' for direct to nwn
:: default opens launcher, my preference (also shuts down this .bat)
cd ..
START nwn.exe && EXIT
hope that helps everybody even further... just copy and paste...
RustyDios- High Epic Level
- Number of posts : 2271
Age : 40
Location : England // Getting lost in Aenea
Main Character : Jay Braysin, The Wandering Shadow, Protector of Nektaria, Talon's Eternal Foe
Other Character : Shouri Braysin, The Shimmerstar's Moonlight Sorceress
Other Character. : Grace Fularras, Walking Library , Cleric of Mystara
Other Character.. : See my sig ... And here too ...
NWN Username : RustyDios
Time Zone : GMT (England, DST)
. :
Registration date : 2008-07-28
Re: Storing logs
Thanks both of you, Veenkar and RustyDios, for giving me another thing to mess with in my folders!
Loggity log log ... log log!
Loggity log log ... log log!
Eric of Atrophy- Ludicrous Level
- . :
Number of posts : 4113
Age : 51
Location : Kea'au, HI, USA
Main Character : The Vault of Atrophy
NWN Username : atrophied_eric
DM Name : Dungeon Mistress Anaurra Lide
Time Zone : GMT - 10:00 EST (We have our own time zone!)
Registration date : 2008-06-06
Re: Storing logs
Zombies have been on my mind in the last few, and having passed by this deadish post, I figured I'd backtrack, dig it up and add a little note.
Alundaio's NwN Launcher (found on the NwVault here, the official Aenean thread is here), which streamlines and uncomplicates the launch process of NwN a super much lotly, also has a log-saving function. Good stuff, very little tinkering. And it looks real good, too.
Just thought I'd put it out there...
Alundaio's NwN Launcher (found on the NwVault here, the official Aenean thread is here), which streamlines and uncomplicates the launch process of NwN a super much lotly, also has a log-saving function. Good stuff, very little tinkering. And it looks real good, too.
Just thought I'd put it out there...
Eric of Atrophy- Ludicrous Level
- . :
Number of posts : 4113
Age : 51
Location : Kea'au, HI, USA
Main Character : The Vault of Atrophy
NWN Username : atrophied_eric
DM Name : Dungeon Mistress Anaurra Lide
Time Zone : GMT - 10:00 EST (We have our own time zone!)
Registration date : 2008-06-06
Re: Storing logs
Huzzah for Alundaio's launcher!
daveyeisley- Ludicrous Level
- . :
Number of posts : 6934
Age : 47
Location : Watching Aenea from my Inner Sanctum on the surface of Sharlo, Aenea's Silver Moon
Main Character : Dave's List of PCs
NWN Username : Dave Yeisley
DM Name : Dungeon Master Mythgar
Time Zone : GMT - 5:00
. :
Registration date : 2008-06-03
Re: Storing logs
I know, tell me about it! Pretty, functional ... now if only it had that elusive Worldgate button...
Eric of Atrophy- Ludicrous Level
- . :
Number of posts : 4113
Age : 51
Location : Kea'au, HI, USA
Main Character : The Vault of Atrophy
NWN Username : atrophied_eric
DM Name : Dungeon Mistress Anaurra Lide
Time Zone : GMT - 10:00 EST (We have our own time zone!)
Registration date : 2008-06-06
Re: Storing logs
I went missing for awhile. I haven't touched anything to do with that launcher in a long time. I forgot I promised customizable buttons so you could have your worldgate button. Scripting and coding is one of those kinds of things you have to do repeatedly or you'll forget it. So I probably wont' have an update unless I get pretty ambitious to do so.
Alundaio- Aenean Scholar
- Number of posts : 372
Age : 39
Main Character : Alundaio
Time Zone : GMT-04:00 (EST)
. :
Registration date : 2009-09-14
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum