Wikia

NWN2Wiki

Logs

Talk0
3,785pages on
this wiki

How to turn on Script loggingEdit

This page describes the process for turning on script logging.

Current as of 29 Nov 2014: NwN2 1.23.1765

Setup nwn2player.iniEdit

Edit the file "My Documents\Neverwinter Nights 2\nwn2player.ini" and check you have:

[Game Options]
Debug Text=1

[Server Options]
Scripts Print To Log=1
Scripts Print To Screen=1

Be sure NOT to change the files in "Program Files\Atari\Neverwinter Nights 2" as these get overridden by the setting in the "My Documents" directory.

Generate a logEdit

Run the game, anyway you like (server, local game, or from the Toolset).

Enable LogRunScriptEdit

And, to output the filenames of scripts that run, to your logfile, enable LogRunScript while in game, from the console. (DebugMode 1 must be entered first, as for all console commands. But don't forget to deactivate the console later, by entering DebugMode 0. The console is accessed by pressing the apostrophe key: ` aka The ~tilde~ key on English keyboards.)

Show hidden foldersEdit

The log files normally get put in a hidden folder. Turn on viewing hidden folders (if you haven't already): Open Windows Explorer (or My Computer, not Internet Explorer). From the menu select Tools>Folder Options. On the View tab, check the box "Show hidden files and folders".

Find the LogEdit

By default the file is "C:\Documents and Settings\<Your User Name>\Local Settings\Temp\NWN2\LOGS\nwclientLog1.txt"

In Windows Vista, this will be: "C:\Users\<Your User Name>\AppData\Local\Temp\NWN2\LOGS\nwclientLog1.txt"

If you can't find it there, you might have moved your %temp% directory like me. Right click My Computer and select search. Select "All files and folders" and enter the file name "nwclientLog1.txt". It may take a while to search your computer, depending on how many files you have on your hard drive(s). When it appears in the list, double click to open.

The logfile will be overwritten every time the game is loaded. So if you want to save a particular log, it needs to be copied to someplace safe, before you reload the game again.

If all else failsEdit

If the above doesn't work for you, you might get more help at the forums Once you find a solution to your problem come back here and update these instructions!

Around Wikia's network

Random Wiki