phungus420
Deity
- Joined
- Mar 1, 2003
- Messages
- 6,296
So I've hidden some useless options in LoR that either come from RevDCM or BtS itself (such as lock modified assets). I figured everything was dandy with this, makes the Gameoptions list less cluttered, and keeps users from enabling options that can cause issues. However I have just discovered that even though I have the options set to false in the XML and have them invisible, the stupid game loads up the hidden options from the ini file. Now if the user has played a different mod and selected a different gameoptions it will set the invisible game options to what is in the Civ4 config file, and not by the XML, this has the effect of locking some game options into settings exactly the opposite of what I'd like them to be in, and the user has no way to toggle them, since they are hidden.
So anyone know where these options are loaded from, specifically where it's set to load them from the ini file? I'd like to add a simple function that if the XML sets the gameoption to be invisible, that the game ignores the config setting and loads directly from the XML. Anyone have any idea where such a function could be set, and where the function that loads the gameoptions from the config is located?
So anyone know where these options are loaded from, specifically where it's set to load them from the ini file? I'd like to add a simple function that if the XML sets the gameoption to be invisible, that the game ignores the config setting and loads directly from the XML. Anyone have any idea where such a function could be set, and where the function that loads the gameoptions from the config is located?