Logging - OpenUserLog and TraceUser

Post » Mon Jun 18, 2012 6:04 am

Hi guys,

Sorry if this has been asked before but I'm trying to get some decent debugging from my scripts. Now in OBSE and FOSE you could printC to the console but I can't see any equivalent of that in papyrus. I know you can output variables in messageboxes now but thats a bit awkward when you have lots of data constantly coming out.

I cannot get the user logging functions to work.

OpenUserLog - Says it creates a file of the name specified in "Documents\My Games\Skyrim\Logs\Script\User"

- I never had this folder it speaks of and it along with the log file were never created after I ran the command
- When I run it, the command returns "true" so I assume it is working

TraceUser - This is supposed to write to the log file you specified in the above command
- However when I run it the command returns "false"

Has anyone been able to get these two to work and where the does the log file go?

http://www.creationkit.com/OpenUserLog_-_Debug
http://www.creationkit.com/TraceUser_-_Debug

Debug.OpenUserLog("rliLog")Debug.TraceUser("rliLog", "testing...")
User avatar
Robyn Lena
 
Posts: 3338
Joined: Mon Jan 01, 2007 6:17 am

Post » Mon Jun 18, 2012 9:10 am

Havent tried either of those, but Debug.Trace() works fine for me.
User avatar
Robert Devlin
 
Posts: 3521
Joined: Mon Jul 23, 2007 2:19 pm

Post » Mon Jun 18, 2012 9:09 am

Do you have

[Papyrus]
bEnableLogging=1
bEnableTrace=1


in your My Documents\My Games\Skyrim\Skyrim.ini?
User avatar
Cameron Wood
 
Posts: 3384
Joined: Wed Oct 31, 2007 3:01 pm


Return to V - Skyrim