Got entangled with GameOptions

Nov4

Chieftain
Joined
Oct 10, 2010
Messages
7
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:
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>
 
some of them probably aren't functional yet. Sadly many of the defines, post defines, and game options are still this way and none of it is documented.
 
this doesn't work?

<Update>
<Where Type="GAMEOPTION_NO_BARBARIANS" />
<Set Default="true" />
<Set Visible="false" />
</Update>
 
I don't think that code would work anyways,

try

<Update>
<Where Type="GAMEOPTION_NO_BARBARIANS" />
<Set Default="true" Visible="false" />
</Update>

but still, like I said, some of these are just blanks, they don't even do anything yet, so you can try but it still might not work.
 
Like I said, the parts with "Visible" works and the parts with "Default" doesn't. I think I'd buy into Shiggs' explanation, for now.
 
Ok, so I lied, I didn't actually buy that explanation and figured that instead I did something wrong - and probably just silly. Which, as it turns out, I have:

I used "true" and "false" instead of "1" and "0" - what a dolt I am....

Now it works.
I thank to all who tried to help.
 
well some of them are for sure blanks (specifically in the post defines), turns out this one wasn't, all that matters is you got your problem solved.
 
Back
Top Bottom