ClarkWasHere Posted August 2, 2016 Share Posted August 2, 2016 (edited) Hey guys. Right now I'm trying to update one of my mods, but I am being hit with a roadblock. Here's what the mod should look like: That's what the mod's Version 1 currently is, but I've been replacing all the strings with $variables so that translation is easier, and I added new pages. The issue is that when I try to update the mod from a savegame that has the previous version, the second page of the menu doesn't appear and the first menu is completely blank. The source files for version 1 and version 2 are attached to the post. The scripts themselves retain the same "immersivecehatmenuconfig.pex" when compiled to properly update. Here's the errors I get when I compile in the CK, if they are relevant SCRIPTS: error: Failed to find variable ::CurrentVersion_var used in ImmersiveCheatMenuConfig.OnVersionUpdate() SCRIPTS: error: Failed to find variable ::Pages_var used in ImmersiveCheatMenuConfig.OnConfigInit() SCRIPTS: error: Failed to find variable ::Pages_var used in ImmersiveCheatMenuConfig.OnConfigInit() I get those errors when I compile the first and second version of the mod's script, but compile succeeds and the menu works perfectly fine in-game if the save hasn't had the mod installed yet. I feel I have erred in the implementation of either the updating or the way I stored variables that causes updates to have a critical error. I am trying to use the incremental update method that schlangster documented here. Can anyone help me please? Oh, and the quest is set to run once only, so I guess that might be a problem? Nope just tested it, it appears that the quest running once doesn't really change much. :/ Edited August 2, 2016 by ClarkWasHere Link to comment Share on other sites More sharing options...
cdcooley Posted August 2, 2016 Share Posted August 2, 2016 It looks like you don't have the SkyUI SDK installed properly to get those errors. But the version not updating would be because your GetVersion function in the updated version is still returning a 1 instead of a 2. Just changing that value to match the comment might make things work. All too often it's the little things that get you. P.S. If I were designing that I would have put the accept and reset buttons on the right side so they are bold and with the action options instead of on the left as a label. _acceptPlayerLevelChangeOID_T = AddTextOption("", "$ICM_Accept") Link to comment Share on other sites More sharing options...
ClarkWasHere Posted August 2, 2016 Author Share Posted August 2, 2016 (edited) It looks like you don't have the SkyUI SDK installed properly to get those errors. But the version not updating would be because your GetVersion function in the updated version is still returning a 1 instead of a 2. Just changing that value to match the comment might make things work. All too often it's the little things that get you. P.S. If I were designing that I would have put the accept and reset buttons on the right side so they are bold and with the action options instead of on the left as a label. _acceptPlayerLevelChangeOID_T = AddTextOption("", "$ICM_Accept") Hey thanks! I think my issue was that I forgot to setup a player alias so that the menu loads properly when the player loads the game again. I feel really dumb now. Also I forgot to reedit that version number back to 2 because I was testing around to see what the problem was with the MCM menu not properly updating before making this post. I forgot to change it back when I uploaded the file. Thanks for pointing it out! I'm a bit new to MCM modding, but this stuff is really powerful! Yeah Mods lock the thread I got this fixed! Thanks cdcooley! Edited August 2, 2016 by ClarkWasHere Link to comment Share on other sites More sharing options...
Recommended Posts