Would you like to react to this message? Create an account in a few clicks or log in to continue.

Storing logs

+2
daveyeisley
Veenkar
6 posters

Go down

Storing logs Empty Storing logs

Post by Veenkar Sat Jun 14, 2008 4: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 2:01 am; edited 3 times in total
Veenkar
Veenkar
Seasoned Explorer
Seasoned Explorer

Male 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

Back to top Go down

Storing logs Empty Re: Storing logs

Post by Veenkar Sat Jun 14, 2008 5: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 1:58 am; edited 1 time in total
Veenkar
Veenkar
Seasoned Explorer
Seasoned Explorer

Male 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

Back to top Go down

Storing logs Empty Re: Storing logs

Post by daveyeisley Sat Jun 14, 2008 12:34 pm

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

. : Dungeon Master
Male 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
. : Storing logs Forum_donor
Registration date : 2008-06-03

Back to top Go down

Storing logs Empty Re: Storing logs

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

That's some handy info, Veenkar. Thanks Smile
The Amethyst Dragon
The Amethyst Dragon
Ludicrous Level
Ludicrous Level

. : Creator of Aenea / Dungeon Master
Male Number of posts : 7840
Age : 48
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

https://www.amethyst-dragon.com

Back to top Go down

Storing logs Empty Re: Storing logs

Post by RustyDios 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...
RustyDios
RustyDios
High Epic Level
High Epic Level

Male Number of posts : 2271
Age : 39
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)
. : Storing logs Forum_donor
Registration date : 2008-07-28

Back to top Go down

Storing logs Empty Re: Storing logs

Post by Eric of Atrophy 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
Eric of Atrophy
Eric of Atrophy
Ludicrous Level
Ludicrous Level

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

http://myanimelist.net/profile/Eric_of_Atrophy

Back to top Go down

Storing logs Empty Re: Storing logs

Post by Eric of Atrophy Sat Jun 12, 2010 11: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...
Eric of Atrophy
Eric of Atrophy
Ludicrous Level
Ludicrous Level

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

http://myanimelist.net/profile/Eric_of_Atrophy

Back to top Go down

Storing logs Empty Re: Storing logs

Post by daveyeisley Sun Jun 13, 2010 6:10 am

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

. : Dungeon Master
Male 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
. : Storing logs Forum_donor
Registration date : 2008-06-03

Back to top Go down

Storing logs Empty Re: Storing logs

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

I know, tell me about it! Pretty, functional ... now if only it had that elusive Worldgate button... Storing logs Icon_twisted
Eric of Atrophy
Eric of Atrophy
Ludicrous Level
Ludicrous Level

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

http://myanimelist.net/profile/Eric_of_Atrophy

Back to top Go down

Storing logs Empty Re: Storing logs

Post by Alundaio 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.
Alundaio
Alundaio
Aenean Scholar
Aenean Scholar

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

Back to top Go down

Storing logs Empty Re: Storing logs

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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