Getting the debug messages to print to the log or the screen can really help when trying to track down a problem in your module. Following up on some leads from jackyo123 and a few frustrating google searches, here's how I got it to work:
I'm not entirely sure this is needed or how this affects module, but it's also useful for using the ScriptDebuggerServer, so I have it on.
This one took me a while to find, partly because the documentation for DebugPostString() says you need to edit nwn.ini instead of nwnplayer.ini.
Add your PrettyDebug messages where you want them. You'll notice that you'll get a lot of messages from the regular scripts, as well. These are great when you trying to figure out why the script that seems to be saying it should do something, isn't doing what you want.
You can do this in the game or you can do this via the ini file.
In game:
In the nwnplayer.ini:
If you are sending debug information to your logs, they will appear at:
C:\Documents and Settings\Sean\Local Settings\Temp\NWN2\LOGS\nwclientLog1.txt
If you are sending debug information to the screen, they will appear up by the mini-map.
Thanks to jackyo123 for pointing this out. If you type in "logscriptrun" in the console while in debug mode, your log will fill up with all the scripts that are being called. It can be a bit much to wade through, but sometimes it's good to see if something was run.
Recent comments
15 weeks 6 hours ago
15 weeks 6 hours ago
15 weeks 16 hours ago
21 weeks 4 hours ago
21 weeks 2 days ago
37 weeks 5 days ago
38 weeks 1 day ago
42 weeks 1 day ago
42 weeks 3 days ago
45 weeks 3 days ago