Storing logs

Go down

Storing logs

Post by Veenkar on Sat Jun 14, 2008 3:45 am

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:
@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 1:01 am; edited 3 times in total
avatar
Veenkar
Seasoned Explorer
Seasoned Explorer

Male Number of posts : 111
Age : 27
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

View user profile

Back to top Go down

Re: Storing logs

Post by Veenkar on Sat Jun 14, 2008 4:00 am

And this stores only dialogues.
If you want to have entire logs (battle, actions, logins(outs)) copy this line
ClientEntireChatWindowLogging=1
to your nwnplayer.ini file in nwn folder into the [Game Options] section.

By the way to remove the annoying intros copy this to the nwn.ini file.
Disable Intro Movies=1
into the [Display Options]


Last edited by Veenkar on Wed Jun 18, 2008 12:58 am; edited 1 time in total
avatar
Veenkar
Seasoned Explorer
Seasoned Explorer

Male Number of posts : 111
Age : 27
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

View user profile

Back to top Go down

Re: Storing logs

Post by daveyeisley on Sat Jun 14, 2008 11:34 am

Wow! Thank you Smile


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.
avatar
daveyeisley
Ludicrous Level
Ludicrous Level

. : Dungeon Master
Male Number of posts : 6907
Age : 41
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

View user profile

Back to top Go down

Re: Storing logs

Post by The Amethyst Dragon on Sat Jun 14, 2008 12:24 pm

That's some handy info, Veenkar. Thanks Smile

_________________
.
------------------------------------- The Amethyst Dragon -------------------------------------
Creator of Aenea | Custom Content Maker | Dungeon Master | Builder | Scripter | Writer | Player | Sleepless
avatar
The Amethyst Dragon
Ludicrous Level
Ludicrous Level

. : Creator of Aenea / Dungeon Master
Male Number of posts : 7838
Age : 42
Location : probably on the computer or wrangling his offspring
NWN Username : amethystdragon
DM Name : The Amethyst Dragon
Time Zone : GMT - 6:00 (Wisconsin)
Registration date : 2008-06-02

View user profile http://www.amethyst-dragon.com/nwn

Back to top Go down

Re: Storing logs

Post by RustyDios on Tue Dec 16, 2008 6:33 pm

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...


:: 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...
avatar
RustyDios
High Epic Level
High Epic Level

Male Number of posts : 2268
Age : 34
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

View user profile

Back to top Go down

Re: Storing logs

Post by Eric of Atrophy on Fri Dec 26, 2008 12:40 pm

Thanks both of you, Veenkar and RustyDios, for giving me another thing to mess with in my folders!

Loggity log log ... log log! Laughing
avatar
Eric of Atrophy
Seriously Epic Level
Seriously Epic Level

. : Dungeon Master
Male Number of posts : 3881
Age : 45
Location : Hollidaysburg, PA, USA
Main Character : The Vault of Atrophy
NWN Username : atrophied_eric
DM Name : Dungeon Mistress Anaurra Lide
Time Zone : GMT - 05:00 EST
Registration date : 2008-06-06

View user profile http://myanimelist.net/profile/Eric_of_Atrophy

Back to top Go down

Re: Storing logs

Post by Eric of Atrophy on Sat Jun 12, 2010 10:30 pm

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...
avatar
Eric of Atrophy
Seriously Epic Level
Seriously Epic Level

. : Dungeon Master
Male Number of posts : 3881
Age : 45
Location : Hollidaysburg, PA, USA
Main Character : The Vault of Atrophy
NWN Username : atrophied_eric
DM Name : Dungeon Mistress Anaurra Lide
Time Zone : GMT - 05:00 EST
Registration date : 2008-06-06

View user profile http://myanimelist.net/profile/Eric_of_Atrophy

Back to top Go down

Re: Storing logs

Post by daveyeisley on Sun Jun 13, 2010 5:10 am

Huzzah for Alundaio's launcher!
avatar
daveyeisley
Ludicrous Level
Ludicrous Level

. : Dungeon Master
Male Number of posts : 6907
Age : 41
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

View user profile

Back to top Go down

Re: Storing logs

Post by Eric of Atrophy on Sun Jun 13, 2010 7:01 am

I know, tell me about it! Pretty, functional ... now if only it had that elusive Worldgate button...
avatar
Eric of Atrophy
Seriously Epic Level
Seriously Epic Level

. : Dungeon Master
Male Number of posts : 3881
Age : 45
Location : Hollidaysburg, PA, USA
Main Character : The Vault of Atrophy
NWN Username : atrophied_eric
DM Name : Dungeon Mistress Anaurra Lide
Time Zone : GMT - 05:00 EST
Registration date : 2008-06-06

View user profile http://myanimelist.net/profile/Eric_of_Atrophy

Back to top Go down

Re: Storing logs

Post by Alundaio on Sun Nov 14, 2010 12:21 am

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. Sad 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.
avatar
Alundaio
Aenean Scholar
Aenean Scholar

Male Number of posts : 372
Age : 33
Main Character : Alundaio
Time Zone : GMT-04:00 (EST)
. :
Registration date : 2009-09-14

View user profile

Back to top Go down

Re: Storing logs

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum