In the mid of cleaning Civ5 from redundant data (which for my mod is almost everything) I've reached GameOptions.
The added code loads and works, sort-off:
Setting "Visible" to false hides the options. But to my bewilderment setting "Default" to true does not activate the option automatically.
Anyone got advice for me?
My code:
<GameData>
<GameOptions>
<!--No city razing-->
<Update>
<Where Type="GAMEOPTION_NO_CITY_RAZING" />
<Set Default="true" />
</Update>
<Update>
<Where Type="GAMEOPTION_NO_CITY_RAZING" />
<Set Visible="false" />
</Update>
<Update>
<Where Type="GAMEOPTION_RAGING_BARBARIANS" />
<Set Visible="false" />
</Update>
<!--No barbs-->
<Update>
<Where Type="GAMEOPTION_NO_BARBARIANS" />
<Set Default="true" />
</Update>
<Update>
<Where Type="GAMEOPTION_NO_BARBARIANS" />
<Set Visible="false" />
</Update>
<!--Locked seed-->
<Update>
<Where Type="GAMEOPTION_NEW_RANDOM_SEED" />
<Set Visible="false" />
</Update>
<!--No huts-->
<Update>
<Where Type="GAMEOPTION_NO_GOODY_HUTS" />
<Set Visible="false" />
</Update>
<!--No one-city challenge-->
<Update>
<Where Type="GAMEOPTION_ONE_CITY_CHALLENGE" />
<Set Visible="false" />
</Update>
</GameOptions>
</GameData>
The added code loads and works, sort-off:
Setting "Visible" to false hides the options. But to my bewilderment setting "Default" to true does not activate the option automatically.
Anyone got advice for me?
My code:
Spoiler :
<GameData>
<GameOptions>
<!--No city razing-->
<Update>
<Where Type="GAMEOPTION_NO_CITY_RAZING" />
<Set Default="true" />
</Update>
<Update>
<Where Type="GAMEOPTION_NO_CITY_RAZING" />
<Set Visible="false" />
</Update>
<Update>
<Where Type="GAMEOPTION_RAGING_BARBARIANS" />
<Set Visible="false" />
</Update>
<!--No barbs-->
<Update>
<Where Type="GAMEOPTION_NO_BARBARIANS" />
<Set Default="true" />
</Update>
<Update>
<Where Type="GAMEOPTION_NO_BARBARIANS" />
<Set Visible="false" />
</Update>
<!--Locked seed-->
<Update>
<Where Type="GAMEOPTION_NEW_RANDOM_SEED" />
<Set Visible="false" />
</Update>
<!--No huts-->
<Update>
<Where Type="GAMEOPTION_NO_GOODY_HUTS" />
<Set Visible="false" />
</Update>
<!--No one-city challenge-->
<Update>
<Where Type="GAMEOPTION_ONE_CITY_CHALLENGE" />
<Set Visible="false" />
</Update>
</GameOptions>
</GameData>