Jump to content

Understanding user log output


zensunniwanderer

Recommended Posts

Posted

Hi everyone

 

I've been experimenting with really simple scripting and have run into an odd problem that I'm hoping some of the scripters can help out with.

 

With gooser's help I figured out how Apropos outputs some comments to a user log. I then added the same function to the SexLabControllerRumble.psc script (I hope you don't mind me using it to experiment, Mr. private).

Function ToUserLog(String mess) Global

    Debug.TraceUser("Rumble", mess)

EndFunction

I also added the following to create the log:

event OnInit()

    Debug.OpenUserLog("Rumble")

    ToUserLog("Ok, started.")

    RegisterForSingleUpdate(0.1)

    RegModEvents()

endEvent

Thereafter I changed each of the Debug.Trace messages to instead output to ToUserLog, e.g.:

Original:

Debug.Trace("JN01 StartDevice NAME=DDPlug1, TYPE=Up, TIME=3, STRENGTH=100, INTERVAL=0, STARTDELAY=0, AMOUNT=1;")

Changed:

ToUserLog("JN01 StartDevice NAME=DDPlug1, TYPE=Up, TIME=3, STRENGTH=100, INTERVAL=0, STARTDELAY=0, AMOUNT=1;")

However, the 'Rumble' log has only been created once in the Scripts\User folder and even then it only recorded some of the events. I deleted the rumble.0.log and ran the game again, the log was not recreated.

 

I reverted the changes and the events are outputted to Papyrus.0.log as expected.

 

Can anyone tell me why this is happening?

 

Thank you all. <3

Posted

Maybe the OnInit is not firing?

I'd debug.messagebox() to be sure.

 

Thank you, b3lisario.

 

I added Debug.Messagebox("Started") to OnInit. My understanding is that it would fire off as soon as the game is loaded.

 

If so, I've not seen the message which suggests that OnInit is not firing.  :(

Posted

Oddly I sem to have solved the issue but I've yet to understand why.

 

Even though mod organiser says that Xbox Rumble for devious devices overwrites all of the files of Xbox Rumble Sexlab addon only having the latter activated in Mod Organiser results in no output. With both activated the logs are created and, as far as I can tell, all events are being output to them.

 

My best guess is that the Devious Devices addon for the mod doesn't have a properly configured quest in the plugin.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...