Home   Forums   Search   Login   Register   Member List  
     
Forums  > Essential Information  > Essential Information  > NWN Dialogue Logging  
 
Display using:  
Previous Thread :: Next Thread 
 Author Thread: NWN Dialogue Logging
Phoenix is not online. Last active: 4/10/2014 6:05:59 PM Phoenix
Top 25 Poster
Joined: 08 Jun 2003
Total Posts: 942
Send PM
 
NWN Dialogue Logging
Posted: 24 Nov 2003 03:42 AM
I posted this as an OOC answer to a question of one of the players, but this is something very useful (certainly when you plan to write a post about an event that ocurred):

edit nwnplayer.ini put in ClientChatLogging=1 under [Game Options]

It is set to 0 on default.

Remember though, that each time you exit the game and relog the file will be overwritten. The file itself can be found under the directory Logs of NWN.

So after a quest, save it some other location. It'll save your little gray cells from exploding while thinking about what happened ;P

(I hope I'm allowed to post here, if not could a moderator or admin post this? Thanks!)

Luther McIath: I see, so [X is] the right person in the wrong place with the wrong people at the wrong time.

[Fictrix] ... And can speak French, like both! Wait, I mean Elven.
Fenarisk is not online. Last active: 12/19/2006 12:58:53 AM Fenarisk
Top 25 Poster
Joined: 14 Apr 2003
Total Posts: 823
Send PM
 
Re: NWN Dialogue Logging
Posted: 24 Nov 2003 09:44 AM
[deleted]


Phoenix is not online. Last active: 4/10/2014 6:05:59 PM Phoenix
Top 25 Poster
Joined: 08 Jun 2003
Total Posts: 942
Send PM
 
Re: NWN Dialogue Logging
Posted: 17 Feb 2004 07:09 PM
Just another piece of information:

I was getting tired of losing logs due to crashings (the crash doesn't make the log file reset, but restarting the game does and I was also tired of manually copying it). So here it goes, fire up notepade and create a file you can name (fill in a name here).bat (e.g. NWN.bat)

Type in the following two lines (of course the paths are of my own HD, so modify it to resemble your own paths)

copy E:\Games\log.txt+E:\Games\NeverwinterNights\NWN\logs\nwclientlog1.txt E:\Games\log.txt /Y
E:\Games\NeverwinterNights\NWN\nwn.exe


And save that somewhere. Make a shortcut on your desktop and use that to start NWN. You'll also have to create the file log.txt in the chosen directory mentioned in the batch file, but just leave it empty. (In other words: open notepad, save it as log.txt, close notepad).

The first line in the batch file will append your NWN log file to the log.txt. So you will never again lose that file (unless the log.txt gets deleted of course :P).

Instead of the last line you can also use this (but it does not work on my computer...)
E:\Games\NeverwinterNights\NWN\nwmain.exe +connect vives.dyndns.org:5121

It'll start up Vives immediately. But it may not work for some of you. It did not for me.

Hope this helps ;)

Luther McIath: I see, so [X is] the right person in the wrong place with the wrong people at the wrong time.

[Fictrix] ... And can speak French, like both! Wait, I mean Elven.
slink is not online. Last active: 9/13/2004 7:47:15 AM slink
www.drislink.com
Top 25 Poster
Joined: 27 Aug 2003
Total Posts: 726
Send PM
 
Re: NWN Dialogue Logging
Posted: 17 Feb 2004 08:55 PM
Two more bits of information that might be useful.

If you don't want to use PD's method, and want to keep your logs separated, you don't have to copy the log anywhere. Just rename the current copy to something informative, and NWN will make a new one when you start the program.

When my computer bluescreens directly from NWN, the log file is "lost" in that it was not closed by the OS. It can be recovered by forcing the OS to skip the yellow-bar, and do Scandisk under System Tools. Used advanced mode and tell it to ask you what to do. It will find the lost file clusters and allow you to save them as file0000.chk, file0001.chk, etc. Just rename these chk files to something.txt, and you are set. There may be garbage in them near the end, but you can delete that.

Dieties preserve us from the evil chaotics named Lag, Crash, and Server Reset.
PCs: Loli Dankirk (Ftr 18/Brd 8.5 @ 1777 hrs) left Vives for Origins; Gnora Gnombody (Sor 5 @ 54 hrs) and Amanda Stark (Wiz 3 @ ~10 hrs) left Vives for Feline Providence.
Fenarisk is not online. Last active: 12/19/2006 12:58:53 AM Fenarisk
Top 25 Poster
Joined: 14 Apr 2003
Total Posts: 823
Send PM
 
Re: NWN Dialogue Logging
Posted: 17 Feb 2004 09:12 PM
[deleted]


Landru is not online. Last active: 4/26/2007 12:17:11 PM Landru
Top 25 Poster
Joined: 28 Apr 2003
Total Posts: 740
Send PM
 
Re: NWN Dialogue Logging
Posted: 17 Feb 2004 09:35 PM
[deleted]

Question Authority!
Alosynth is not online. Last active: 11/9/2008 9:05:05 PM Alosynth
Top 25 Poster
Joined: 11 Apr 2003
Total Posts: 1324
Send PM
 
Re: NWN Dialogue Logging
Posted: 17 Feb 2004 10:49 PM
As a note to Phoenixes post, for most people, it will be C:\Neverwinternight\NWN\ instead of E:\Games\Neverwinternights\NWN

~Alosynth
Phoenix is not online. Last active: 4/10/2014 6:05:59 PM Phoenix
Top 25 Poster
Joined: 08 Jun 2003
Total Posts: 942
Send PM
 
Re: NWN Dialogue Logging
Posted: 18 Feb 2004 04:17 AM
[deleted]

Luther McIath: I see, so [X is] the right person in the wrong place with the wrong people at the wrong time.

[Fictrix] ... And can speak French, like both! Wait, I mean Elven.
bennyhsrh is not online. Last active: 2/11/2010 10:41:08 AM bennyhsrh
Top 25 Poster
Joined: 04 Jan 2004
Total Posts: 773
Send PM
 
Re: NWN Dialogue Logging
Posted: 18 Feb 2004 06:05 AM
[deleted]

Elvalia - Chosen of Aros
Elrith Mellin
Perin - 'Cleric (an' drewid) o' Elbreff' Weddin's an' pies a speciarality

Barnas is not online. Last active: 7/24/2013 5:09:47 AM Barnas
Top 25 Poster
Forum Moderator
Joined: 17 Aug 2003
Total Posts: 3322
Send PM
 
Re: NWN Dialogue Logging
Posted: 18 Feb 2004 06:07 AM
[deleted]
pdwalker is not online. Last active: 4/28/2020 8:46:52 PM pdwalker
Top 25 Poster
Forum Moderator
Joined: 08 Jan 2004
Total Posts: 5692
Send PM
 
Re: NWN Dialogue Logging
Posted: 19 Feb 2004 01:06 AM
#vives.bat in the NeverwinterNights\NWN directory (minus the line numbers of course)


1 type log\nwclientlog1.txt >> logs\vivesLog.txt
2 echo START === >> logs\vivesLog.txt
3 date >> logs\vivesLog.txt < logs\cr.txt
4 echo START === >> logs\vivesLog.txt
5 nwnmain +connect vives.dyndns.org:5121
6 echo === successful end >> logs\vivesLog.txt


Line 3 references a file called CR.TXT (as in carriage return). Older versions of windows have a date command that expects input. The CR.TXT supplies this input. Use notepad or your favourite editor to create this text file with 3 blank lines.

If you have a newer version of windows (2K, XP at least) you can use this for line 3 instead. The cr.txt file is no longer required in this case:

3 date /t >> logs\vivesLog.txt


I have just written this post without verifying that it works properly. Please save you log files before giving this a try so you don't loose anything in case I have put in a mistake by accident.

Have fun!

- Paul

Purpose in life: finding better ways of allowing players to kill themselves. Repeatedly.
--
"...Cause he mixes it with love
And makes the world taste good."
--
<@James42> Lawful good isn't in your vocabulary, it's on your menu.
Dens is not online. Last active: 4/22/2009 7:31:28 PM Dens
Top 25 Poster
Forum Moderator
Joined: 02 Jul 2003
Total Posts: 1221
Send PM
 
Re: NWN Dialogue Logging
Posted: 24 Mar 2004 12:26 PM
allright.. I've been thinking about this for a while..
and decided that logging everything into the same file wont work well..
(also .. from some reason your version didnt work for me PDW)

so I wrote another script:

save this as a .js file in your current NWN directory.


//the code starts here (start copying)
function n2(n)
// convert to 2 digit string with leading zero
// works for n integer 0..99
{
return n<10 ? "0"+n : n;
}
var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.Run('"nwmain.exe" +connect vives.dyndns.org', 0, true); // run NWN and wait till it finishes
var t = new Date();
var date_postfix = "_" + t.getFullYear() + "_" + n2(t.getMonth()+1) + "_" + n2(t.getDate()) + "_" + n2(t.getHours()) + "_" + n2(t.getMinutes()); // get a file name windows could work with
fso = new ActiveXObject("Scripting.FileSystemObject");
fso.CopyFile ("logs\\nwclientlog1.txt", "logs\\Vives" + date_postfix +".txt")

//made by Dens
//the code ends here (you can stop copying now =p )

so what does this thingy do ?
each time you run it - it will run nwn, and when nwn is closed, it will copy the nwclientlog1.txt file.. to another file - named Vives_year_month_day_hours_minutes.
so the log wont get deleted each time you run nwn.

known problem -
if you run this and directly exit nwn - you get a new empty file named by the current time/date
not relaly a problem - cuz you can delete it.. just dont be surprised that if you keep runnign this script for your amusement - that it will create unneeded files =p

IMPORTENT!

when you will first try to run this.. your antivirus will try to block the script. why?
because .js files are primerly for websites.. and you dont want websites to mess with your comp's files without knowing right ? ;)

this is safe.. it is not a virus or anything..
so you should either 'run this script once' -> so it will run it once.. next time you will try to run it, it will try to block it again.
or you can 'authorized this script' so as long as you dont change the code - the antivirus wont have any problems with it.

(that " // made by Dens " part is not something you 'need' it's just a comment.. tho I like to add that to stuff I make.. duno why.. but I guess I will appreciate it if you will keep the last partWink)

Dens

P.s
how to make a .js file -

copy the bold text above (the code lines) into notepad.
click save as -> choose saves as type "all files" -> and rename the file to <desired_name>.js

then to run it - simply double click it.
maybe it wont run on unix/linuk and the like.. cuz it is .js (microsoft's)

any bugs / input is welcomeWink(especially the first)

P.s.s
that's it! I hope I didnt forget anything :)

You are more than welcome to ignore my spelling mistakes =p
Dens is not online. Last active: 4/22/2009 7:31:28 PM Dens
Top 25 Poster
Forum Moderator
Joined: 02 Jul 2003
Total Posts: 1221
Send PM
 
Re: NWN Dialogue Logging
Posted: 24 Mar 2004 12:30 PM
doh!
I think i forgot to mention that clicking the .Js file will connect you directly to vives.
(if you want it to just start NWN (and not join directly to vives [after asking for gamespy pass]))

you should change:

WshShell.Run('"nwmain.exe" +connect vives.dyndns.org', 0, true);

to ==>

WshShell.Run('"nwmain.exe" ', 0, true);

also .. if you want it to activate the DM client you could do:

WshShell.Run('"nwmain.exe" -dmc', 0, true);

or Vives trough the DM client :

WshShell.Run('"nwmain.exe" -dmc +connect vives.dyndns.org +password <vivespass>', 0, true);

(you could also change the:
fso.CopyFile ("logs\\nwclientlog1.txt", "logs\\Vives" + date_postfix +".txt")
to:
fso.CopyFile ("logs\\nwclientlog1.txt", "logs\\DM_Vives" + date_postfix +".txt")
so you will see when you were DMing)

Dens

You are more than welcome to ignore my spelling mistakes =p
Previous Thread :: Next Thread 
Page 1 of 1
 
Forums  > Essential Information  > Essential Information  > NWN Dialogue Logging