Changing Calendar types

j_mie6

Deity
Joined
Dec 20, 2009
Messages
2,963
Location
Bristol (uni)/Swindon (home)
Is there anyway to change calendar type?

After a certain turn I want it so that after a certain turn (320) the game's calendar is changed from NORMAL to MONTHS

in the xml there is CalendarTypes (I think) and they contain types of calendar such as:

MONTHS - every turn goes up 1 month
YEARS - every turn goes up 1 year
NORMAL - uses the GameSpeedInfos calendars
WEEKS - every turn is a week
SEASONS? - every turn is a new season
I know I could do this in the GameSpeedInfos but I am having problems with that I need to change the type.

Any ideas?

preferably python
 
well I had set one of the turns/increments to
27 months for 208 turns.

When it gets to that the game gives back exceptions

I belive that it is because it isn't divisible by 12 or 6 or something

but that would mean the last increment wouldn't work either and that is 180 turns of 1 month

Spoiler :

Code:
<?xml version="1.0"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Alex Mantzaris (Firaxis Games) -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Game Speed -->
<!-- NOTE: If you remove any of these you need to update GameInfo/CultureLevelInfos.xml. Also you will need to update the GlobalDefines.xml if you remove GAMESPEED_STANDARD -->
<Civ4GameSpeedInfo xmlns="x-schema:CIV4GameInfoSchema.xml">
	<GameSpeedInfos>
		<GameSpeedInfo>
			<Type>GAMESPEED_NORMAL</Type>
			<Description>TXT_KEY_GAMESPEED_NORMAL</Description>
			<Help>TXT_KEY_GAMESPEED_NORMAL_HELP</Help>
			<iGrowthPercent>100</iGrowthPercent>
			<iTrainPercent>100</iTrainPercent>
			<iConstructPercent>100</iConstructPercent>
			<iCreatePercent>100</iCreatePercent>
			<iResearchPercent>100</iResearchPercent>
			<iBuildPercent>100</iBuildPercent>
			<iImprovementPercent>100</iImprovementPercent>
			<iGreatPeoplePercent>100</iGreatPeoplePercent>
			<iCulturePercent>100</iCulturePercent>
			<iAnarchyPercent>100</iAnarchyPercent>
			<iBarbPercent>100</iBarbPercent>
			<iFeatureProductionPercent>100</iFeatureProductionPercent>
			<iUnitDiscoverPercent>100</iUnitDiscoverPercent>
			<iUnitHurryPercent>100</iUnitHurryPercent>
			<iUnitTradePercent>100</iUnitTradePercent>
			<iUnitGreatWorkPercent>100</iUnitGreatWorkPercent>
			<iGoldenAgePercent>100</iGoldenAgePercent>
			<iHurryPercent>100</iHurryPercent>
			<iHurryConscriptAngerPercent>100</iHurryConscriptAngerPercent>
			<iInflationPercent>30</iInflationPercent>
			<iInflationOffset>-90</iInflationOffset>
			<iVictoryDelayPercent>100</iVictoryDelayPercent>
			<GameTurnInfos>
				<GameTurnInfo>
					<iMonthIncrement>84</iMonthIncrement>
					<iTurnsPerIncrement>1</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>72</iMonthIncrement>
					<iTurnsPerIncrement>10</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>24</iMonthIncrement>
					<iTurnsPerIncrement>100</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>12</iMonthIncrement>
					<iTurnsPerIncrement>1</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>27</iMonthIncrement>
					<iTurnsPerIncrement>208</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>1</iMonthIncrement>
					<iTurnsPerIncrement>180</iTurnsPerIncrement>
				</GameTurnInfo>
			</GameTurnInfos>
		</GameSpeedInfo>
	</GameSpeedInfos>
</Civ4GameSpeedInfo>


that is the setup that doesn't work, I changed the 208 * 27 to this:
Code:
				<GameTurnInfo>
					<iMonthIncrement>180</iMonthIncrement>
					<iTurnsPerIncrement>4</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>24</iMonthIncrement>
					<iTurnsPerIncrement>204</iTurnsPerIncrement>
				</GameTurnInfo>

this should work and I am just testing it now
 
:yup: should work.
Everything bigger than 12 has to be divisible by 12, because with increments bigger than one year, the game can only deal with whole years.
For increments lower than 12, they have to be either months (1), seasons (3) or half years (6), else it will probably break too.
 
so would 9 months work? 3 seasons? I guess not... Well atleast it all works now! thanks
I guess there is no need for this thread anymore! :)
 
Back
Top Bottom