[#modding] Somewhere over the past 2-3 months `ModManager.cs` was shuffled around in such a...
Marked for crossposting by: exsanguination microtubules
Message (jump):
<exsanguination microtubules> Somewhere over the past 2-3 months
ModManager.cs
was shuffled around in such a way thatOptions.LoadModOptions()
is no longer called until after Harmony Patches are applied. It used to be in the reverse order, and QudUX relies on several of its configurable mod options to determine whether or not to apply certain patches. Now, only the base game options are loaded before Harmony Patches are applied.Specifically, no mod options are loaded until the mod sensitive cache is reset:
cs Loading.LoadTask("Building script mods", DoBuildScriptMods); Loading.LoadTask("Resetting static caches", ResetModSensitiveStaticCaches);
Comments (3)
-
-
- changed milestone to moddability
-
assigned issue to
- edited description
-
- changed status to on hold
Examine user controlled patching
- Log in to comment
The game loads PlayerOptions.xml, but that contains only the mod options the player has manually changed at some point. Default values are not included, since they need to be read from the mod’s Options.xml.