Mofakin Posted January 2, 2015 Share Posted January 2, 2015 I just recently experienced a weird issue I couldn't fix with programing MCM menus. You know how you're supposed to implement "maintenance" code in order to transport changes to ActorValues, GameSettings or .iniSettings? I usually do this by adding a function call to OnConfigInit() and OnGameReload(). The issue started from one day to another just out of the blue. What happens, is, once I enter the game I figure AV's for my followers aren't restored, despite the fact it was working brilliantly for month. Not being able to find a solution I've even gone so far to completely un- and reinstall the CK and Skyrim, but the problem persistet. Using Debug.Trace/Debug.Notification I then figured that the corresponding MCM script does not get fired OnGameReload(). It does also happen when I start a complete new game, configure my Mods, save, exit and then load this save. Everything else works fine, the menu gets properly initiated, the functions are working, hotkeys responding, no lag, no delay, no problem whatsoever that would indicate something's broken. It's only about the maintenance function does not get fired when entering the game. I was able to fix the problem by adding the RestoreActorValue() OnPageReset(), but then I get some minor delay inside the menu, because the maintenace function runs its code. It also happens for one Mod only, as I'm using the same MCM structure on all of my Mods. Could it be that when using MCM code and widget code on one and the same quest, the SKI_PlayerLoadGameAlias script has problems to find the MCM script? I'm just gambling here, because I don't even remotely have a clue why this is happening. Could it be that when using to many lines of maintenance code in one script, the script will get ignored? What about if the MCM scripts of my other Mods are equally huge? I think this is happening because my MCM scripts are all real monsters in size, and given the fact I'm using ~20 Mods utilizing MCM menus, maybe something gets neglected during load of the game? Code Structure: 1. PlayerAlias on Quest, priority 60, start game enabled, run once with SKI_PlayerLoadGameAlias attached2. 8 scripts attached to the quest, MCM script, Widget Update Script and 6 individual widget scripts I've never experienced problems with to large scripts. I've never experienced problems with having numerous scripts attached. Doing this since ages working fine. I also did a lot trying to fix this problem, so trivial fixes like turn off RunOnce on the quest won't make any difference. I need experienced advise from someone able to track down the issue, OR someone who had the same exprience and can share a fix. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts