Wolfpack49 Posted September 15, 2020 Share Posted September 15, 2020 So general question, and sorry if it is dumb, but I am looking at some scripts and noticed that one is using OnConfigInit, which does not seem to be documented in the CK Papyrus online reference (though OnInit is). What would be the use of OnConfigInit vs OnInit, and why would one prefer one over the other? Thanks and apologies for a noob question. EDIT: Nvm, I see now it is in the SkyUI api. Sorry! Link to comment Share on other sites More sharing options...
IsharaMeradin Posted September 16, 2020 Share Posted September 16, 2020 Answering so others do not have to go digging for the info... OnConfigInit is an event associated with SkyUI's MCM menu system. It allows a mod's MCM script to do some work (i.e. setting local variables, etc) prior to using such data within the various pages for that mod. OnInit is a stock event that can be used on any script. It will run when the object holding the script is first loaded to the game. OnInit should not be used within a mod's MCM script. Link to comment Share on other sites More sharing options...
Wolfpack49 Posted September 16, 2020 Author Share Posted September 16, 2020 Thanks Ishara, also discovering some stuff about Scriptname, in that using the wrong setting can result in registering the MCM twice if other scripts are using a different setting. Also, not holding the mod's initialization properly. Interesting stuff, and reading more about these. Link to comment Share on other sites More sharing options...
Recommended Posts