Altering GameSpeed properties

Zen Blade

Warlord
Joined
Oct 31, 2008
Messages
247
Hey folks,

Has anyone had success with altering game speed properties?
I have a mod where I have already altered the time increment (per turn), but I am trying to also change a number of other factors with regards to buildings/units/improvements, etc...

If anyone has some code that they know works, I would love to see it. For some reason my code does not seem to override the default Marathon settings.

Here is the current version of the code [earlier I had a bunch of "update" lines, but that did not work either.

Spoiler :
<GameSpeeds>
<Delete TYPE="GAMESPEED_MARATHON"/>
<Row>
<ID>0</ID>
<Type>GAMESPEED_MARATHON</Type>
<Description>TXT_KEY_GAMESPEED_MARATHON</Description>
<Help>TXT_KEY_GAMESPEED_MARATHON_HELP</Help>
<DealDuration>36</DealDuration>
<GrowthPercent>200</GrowthPercent>
<TrainPercent>100</TrainPercent>
<ConstructPercent>100</ConstructPercent>
<CreatePercent>200</CreatePercent>
<ResearchPercent>300</ResearchPercent>
<GoldPercent>100</GoldPercent>
<GoldGiftMod>100</GoldGiftMod>
<BuildPercent>100</BuildPercent>
<ImprovementPercent>150</ImprovementPercent>
<GreatPeoplePercent>300</GreatPeoplePercent>
<CulturePercent>200</CulturePercent>
<BarbPercent>400</BarbPercent>
<FeatureProductionPercent>300</FeatureProductionPercent>
<UnitDiscoverPercent>300</UnitDiscoverPercent>
<UnitHurryPercent>100</UnitHurryPercent>
<UnitTradePercent>100</UnitTradePercent>
<GoldenAgePercent>200</GoldenAgePercent>
<HurryPercent>100</HurryPercent>
<InflationPercent>20</InflationPercent>
<InflationOffset>-180</InflationOffset>
<VictoryDelayPercent>300</VictoryDelayPercent>
<IconAtlas>GAMESPEED_ATLAS</IconAtlas>
<PortraitIndex>0</PortraitIndex>
</Row>
</GameSpeeds>

<GameSpeed_Turns>
<Delete GameSpeedType="GAMESPEED_MARATHON" />

<Row>
<GameSpeedType>GAMESPEED_MARATHON</GameSpeedType>
<MonthIncrement>1</MonthIncrement>
<!-- Number of months per turn -->
<TurnsPerIncrement>500</TurnsPerIncrement>
<!-- Number of turns using this increment -->
</Row>
</GameSpeed_Turns>


[and yes, I do have Gamedata at the beginning and end of the xml file.]
I should point out that the GameSpeed_Turns portion has previously worked (and presumably still does).

Thanks,
-Zen Blade
 
Why are you deleting Marathon and then re-inserting it? From what I've heard (not tested personally) this will cause crashes when trying to load it up.

Just update whatever you're trying to update. (what are you trying to update?)
 
Ok,

I think I got it to work. If anyone else has issues with this, this is what worked for me:

Creating a completely new game speed (without an "ID"). To use it, you have to go to advanced setup, select the gamespeed. Then, click "back" to go to the standard setup and your novel gamespeed will be selected.

However, I can't get the alterations to work with the worldbuilder scenario enabled.
 
Back
Top Bottom