tist02 Posted March 4, 2021 Share Posted March 4, 2021 Hello, I am producing a mode that supports MCM. MCM options can be added through mode update, so I'd like to remove the MCM menu that was already running and apply the new MCM menu. I have used functions such as stop(), reset() for the quest to add MCM, but MCM has not been stopped. If there is a good way, please give me your opinion. Thank you. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted March 4, 2021 Share Posted March 4, 2021 Did you edit the existing MCM menu? Or did you create a whole new MCM menu? Link to comment Share on other sites More sharing options...
tist02 Posted March 5, 2021 Author Share Posted March 5, 2021 @IsharaMeradin I created a new MCM menu and would like to add another option to it later. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted March 5, 2021 Share Posted March 5, 2021 If you have an existing MCM menu, you can just add the new options. They should appear. At least they usually do for me. I some times have problems with it updating the translation text, but the options have always shown up. I use a version check and make it re-run the OnConfigInit event so that the new options will get set up with their starting values correctly. Int function GetVersion() return 2 ; Default version endFunction Event OnVersionUpdate(int version) If version > 1 OnConfigInit() EndIf EndEvent If you have already made a new MCM and need to get rid of the old MCM, the quest for the old MCM needs to be stopped. The game then needs to be save and reloaded, possibly even exited between saving and reloading. Link to comment Share on other sites More sharing options...
Recommended Posts