zensunniwanderer Posted October 20, 2014 Posted October 20, 2014 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
b3lisario Posted October 20, 2014 Posted October 20, 2014 Maybe the OnInit is not firing? I'd debug.messagebox() to be sure.
zensunniwanderer Posted October 20, 2014 Author Posted October 20, 2014 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.
b3lisario Posted October 20, 2014 Posted October 20, 2014 If it's a quest script, that event fires only when the quest starts. There is OnPlayerLoadGame, but not for quest scripts. Here is an example http://www.creationkit.com/Complete_Example_Scripts
zensunniwanderer Posted October 20, 2014 Author Posted October 20, 2014 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.