Ok so I've posted this question in a couple of in a couple of other posts but I'm putting this here as a public service announcement. I've got a mod I'm working on that for the most part is working as designed but I'm trying to edit a couple of values in GlobalParameters and the .xml looks like this:
<GameInfo>
<GlobalParameters>
<Update>
<Where Name="SCIENCE_PERCENTAGE_YIELD_PER_POP"/> <Set Value="50"/> <!-- Original 70 -->
</Update>
<Update>
<Where Name="CULTURE_COST_FIRST_PLOT" /> <Set Value="7" /> <!-- Original 10 -->
</Update>
<Update>
<Where Name="CULTURE_COST_LATER_PLOT_EXPONENT" /> <Set Value="1.2" /> <!-- Used to be 1.3 -->
</Update>
<Update>
<Where Name="CULTURE_COST_LATER_PLOT_MULTIPLIER" /> <Set Value="3" /> <!-- Used to be 6 -->
</Update>
............ continues
here is the weird thing if I put :
<Update>
<Where Name="SCIENCE_PERCENTAGE_YIELD_PER_POP"/> <Set Value="50"/> <!-- Original 70 -->
</Update>
At the top of the list of changes every thing works the way I expect it to. If I put that line ANYWHERE else it doesn't work. I've tried putting it at the bottom, I've tried putting it in the exact same order as it appears in the GlobalParameters.xml file in game data, I've put it as the last item on my list. I have been over this backwards and forwards and it's not a spelling or typo thing I'm literally just cutting and pasting those 3 lines and if I paste them anywhere but at the top of the list then it breaks... can anyone shed a little light on why this might be happening?
I've been testing this with no other mods installed just this.
Here's where it gets weirder, I'm working with another mod :
8 Ages of Pace by Lord Olleus
If I paste those 3 lines into his .xml (which incedentally looks identical to mine I just have a few extra lines that I'm editing, it doesn't seem like the order matters. I am SO confused.
<GameInfo>
<GlobalParameters>
<Update>
<Where Name="SCIENCE_PERCENTAGE_YIELD_PER_POP"/> <Set Value="50"/> <!-- Original 70 -->
</Update>
<Update>
<Where Name="CULTURE_COST_FIRST_PLOT" /> <Set Value="7" /> <!-- Original 10 -->
</Update>
<Update>
<Where Name="CULTURE_COST_LATER_PLOT_EXPONENT" /> <Set Value="1.2" /> <!-- Used to be 1.3 -->
</Update>
<Update>
<Where Name="CULTURE_COST_LATER_PLOT_MULTIPLIER" /> <Set Value="3" /> <!-- Used to be 6 -->
</Update>
............ continues
here is the weird thing if I put :
<Update>
<Where Name="SCIENCE_PERCENTAGE_YIELD_PER_POP"/> <Set Value="50"/> <!-- Original 70 -->
</Update>
At the top of the list of changes every thing works the way I expect it to. If I put that line ANYWHERE else it doesn't work. I've tried putting it at the bottom, I've tried putting it in the exact same order as it appears in the GlobalParameters.xml file in game data, I've put it as the last item on my list. I have been over this backwards and forwards and it's not a spelling or typo thing I'm literally just cutting and pasting those 3 lines and if I paste them anywhere but at the top of the list then it breaks... can anyone shed a little light on why this might be happening?
I've been testing this with no other mods installed just this.
Here's where it gets weirder, I'm working with another mod :
8 Ages of Pace by Lord Olleus
If I paste those 3 lines into his .xml (which incedentally looks identical to mine I just have a few extra lines that I'm editing, it doesn't seem like the order matters. I am SO confused.