Problems with XML editing

Tacomagic

Chieftain
Joined
Jun 18, 2006
Messages
4
Hey folks, I was recently trying to add a 4th speed to the game to add a sort of tech stagnation effect. However, when I tryed using it, any town I made went instantly to cultural legendary status. I have a feeling I'm missing something. I added an entry in the text file so that the TXT_KEY entry works. Below is my code:

- <GameSpeedInfos>
- <GameSpeedInfo>
<Type>GAMESPEED_EPICTECHSTAGNATION</Type>
<Description>TXT_KEY_GAMESPEED_EPICTECHSTAGNATION</Description>
<Help>TXT_KEY_GAMESPEED_EPIC_HELP</Help>
<iGrowthPercent>150</iGrowthPercent>
<iTrainPercent>150</iTrainPercent>
<iConstructPercent>150</iConstructPercent>
<iCreatePercent>150</iCreatePercent>
<iResearchPercent>450</iResearchPercent>
<iBuildPercent>150</iBuildPercent>
<iImprovementPercent>150</iImprovementPercent>
<iGreatPeoplePercent>150</iGreatPeoplePercent>
<iCulturePercent>150</iCulturePercent>
<iAnarchyPercent>150</iAnarchyPercent>
<iBarbPercent>150</iBarbPercent>
<iFeatureProductionPercent>150</iFeatureProductionPercent>
<iUnitDiscoverPercent>150</iUnitDiscoverPercent>
<iUnitHurryPercent>150</iUnitHurryPercent>
<iUnitTradePercent>150</iUnitTradePercent>
<iUnitGreatWorkPercent>150</iUnitGreatWorkPercent>
<iGoldenAgePercent>125</iGoldenAgePercent>
<iHurryPercent>67</iHurryPercent>
<iHurryConscriptAngerPercent>150</iHurryConscriptAngerPercent>
<iInflationPercent>20</iInflationPercent>
<iInflationOffset>-160</iInflationOffset>
- <GameTurnInfos>
- <GameTurnInfo>
<iYearIncrement>30</iYearIncrement>
<iTurnsPerIncrement>100</iTurnsPerIncrement>
</GameTurnInfo>
- <GameTurnInfo>
<iYearIncrement>15</iYearIncrement>
<iTurnsPerIncrement>140</iTurnsPerIncrement>
</GameTurnInfo>
- <GameTurnInfo>
<iYearIncrement>6</iYearIncrement>
<iTurnsPerIncrement>70</iTurnsPerIncrement>
</GameTurnInfo>
- <GameTurnInfo>
<iYearIncrement>3</iYearIncrement>
<iTurnsPerIncrement>70</iTurnsPerIncrement>
</GameTurnInfo>
- <GameTurnInfo>
<iYearIncrement>2</iYearIncrement>
<iTurnsPerIncrement>40</iTurnsPerIncrement>
</GameTurnInfo>
- <GameTurnInfo>
<iYearIncrement>1</iYearIncrement>
<iTurnsPerIncrement>240</iTurnsPerIncrement>
</GameTurnInfo>
</GameTurnInfos>
</GameSpeedInfo>


Any help at all figuring out what I'm doing wrong would be appreciated. I have a feeling I need to edit another XML file to reflect the addition of the 4the 4th speed. (Note, I don't plan to play online so I don't really want to have to worry about creating a seperate mod file, and I backed up the original XML file).

Thanks
Taco
 
I think you're right about editing another file. Since you say all of the cities are instantly at legendary, I'm going to guess you need to open up the CIV4CultureLevelInfo.xml file (in the GameInfo folder), and add in your new speed.

Let us know if it works out.
 
Seems as though that's the case, thought I'd cheked through all the files with the word 'culture' in it, but seems I missed that one. Gonna add the new speed now. I also think I'm going to move all the files over to a mod folder, just in case I break something.

EDIT: Yup, adding the new speed to the CIV4CultureLevelInfo.xml fixed the problem. Thanks much!
 
Back
Top Bottom