City culture problem.

Joined
Jan 7, 2009
Messages
644
Location
Central Europe
I think I messed it up again. I wanted to increase time needed to increase culture level. So I increased proper value in gamespeedinfo.xml and changed values in CultureLevelInfo.xml. But right now my newly founded city has "none" culture and doesn't have influence over neighbouring 8 tiles.

I changed values AFTER I built second city and BEFORE I built third one. That's how my second city looks like:

Civ4ScreenShot0004_zps52e5f61a.jpg


0 culture so far, "poor" level, 480 needed to advance.

My third city (founded after changes in xml file):

Civ4ScreenShot0003_zps7e153008.jpg


0 culture, "none" level and... 1 needed to advance to next level.


Now, that's how my files look like (I'm playing Realism Invictus, but problem is not related to this specific mod IMO):

Code:
<GameSpeedInfo>
			<Type>GAMESPEED_EPIC</Type>
			<Description>TXT_KEY_GAMESPEED_EPIC</Description>
			<Help>TXT_KEY_GAMESPEED_REALISM_HELP</Help>
			<iGrowthPercent>7000</iGrowthPercent>
			<iTrainPercent>200</iTrainPercent>
			<iConstructPercent>300</iConstructPercent>
			<iCreatePercent>200</iCreatePercent>
			<iResearchPercent>1000</iResearchPercent>
			<iBuildPercent>200</iBuildPercent>
			<iImprovementPercent>200</iImprovementPercent>
			<iGreatPeoplePercent>500</iGreatPeoplePercent>
			<iCulturePercent>600</iCulturePercent>
			<iAnarchyPercent>200</iAnarchyPercent>
			<iBarbPercent>660</iBarbPercent>
			<iFeatureProductionPercent>200</iFeatureProductionPercent>
			<iUnitDiscoverPercent>200</iUnitDiscoverPercent>
			<iUnitHurryPercent>200</iUnitHurryPercent>
			<iUnitTradePercent>200</iUnitTradePercent>
			<iUnitGreatWorkPercent>200</iUnitGreatWorkPercent>
			<iGoldenAgePercent>300</iGoldenAgePercent>
			<iHurryPercent>100</iHurryPercent>
			<iHurryConscriptAngerPercent>200</iHurryConscriptAngerPercent>
			<iInflationPercent>12</iInflationPercent>
			<iInflationOffset>-200</iInflationOffset>
			<iVictoryDelayPercent>400</iVictoryDelayPercent>
			<GameTurnInfos>
				<GameTurnInfo>
					<iMonthIncrement>96</iMonthIncrement>
					<iTurnsPerIncrement>200</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>72</iMonthIncrement>
					<iTurnsPerIncrement>300</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>48</iMonthIncrement>
					<iTurnsPerIncrement>250</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>36</iMonthIncrement>
					<iTurnsPerIncrement>200</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>24</iMonthIncrement>
					<iTurnsPerIncrement>225</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>12</iMonthIncrement>
					<iTurnsPerIncrement>250</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>6</iMonthIncrement>
					<iTurnsPerIncrement>200</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>6</iMonthIncrement>
					<iTurnsPerIncrement>200</iTurnsPerIncrement>
				</GameTurnInfo>
				<GameTurnInfo>
					<iMonthIncrement>3</iMonthIncrement>
					<iTurnsPerIncrement>460</iTurnsPerIncrement>
				</GameTurnInfo>
			</GameTurnInfos>
		</GameSpeedInfo>

Code:
<CultureLevelInfos>
		<CultureLevelInfo>
			<Type>CULTURELEVEL_NONE</Type>
			<Description>TXT_KEY_CULTURELEVEL_NONE</Description>
			<iCityDefenseModifier>0</iCityDefenseModifier>
			<SpeedThresholds>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_EPIC</GameSpeedType>
					<iThreshold>0</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_REALISM</GameSpeedType>
					<iThreshold>0</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_SEMI</GameSpeedType>
					<iThreshold>0</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_DOUBLE</GameSpeedType>
					<iThreshold>0</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_RC</GameSpeedType>
					<iThreshold>0</iThreshold>
				</SpeedThreshold>
			</SpeedThresholds>
		</CultureLevelInfo>
		<CultureLevelInfo>
			<Type>CULTURELEVEL_POOR</Type>
			<Description>TXT_KEY_CULTURELEVEL_POOR</Description>
			<iCityDefenseModifier>0</iCityDefenseModifier>
			<SpeedThresholds>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_EPIC</GameSpeedType>
					<iThreshold>0</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_REALISM</GameSpeedType>
					<iThreshold>0</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_SEMI</GameSpeedType>
					<iThreshold>0</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_DOUBLE</GameSpeedType>
					<iThreshold>0</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_RC</GameSpeedType>
					<iThreshold>0</iThreshold>
				</SpeedThreshold>
			</SpeedThresholds>
		</CultureLevelInfo>
		<CultureLevelInfo>
			<Type>CULTURELEVEL_FLEDGLING</Type>
			<Description>TXT_KEY_CULTURELEVEL_FLEDGLING</Description>
			<iCityDefenseModifier>15</iCityDefenseModifier>
			<SpeedThresholds>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_EPIC</GameSpeedType>
					<iThreshold>240</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_REALISM</GameSpeedType>
					<iThreshold>40</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_SEMI</GameSpeedType>
					<iThreshold>30</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_DOUBLE</GameSpeedType>
					<iThreshold>20</iThreshold>
				</SpeedThreshold>
				<SpeedThreshold>
					<GameSpeedType>GAMESPEED_RC</GameSpeedType>
					<iThreshold>8</iThreshold>
				</SpeedThreshold>
			</SpeedThresholds>
		</CultureLevelInfo>

This second file looks exactly like other, unmodded files. Both none and poor have 0. Yet game decides that newly built city has to have "none" culture level than "poor". Any advice?
 
This second file looks exactly like other, unmodded files. Both none and poor have 0. Yet game decides that newly built city has to have "none" culture level than "poor". Any advice?

Change the value for poor to 1 and see what difference that makes. It seems strange that two different culture levels should have the same value.
 
They are normally both 0, so you don't need to change Poor.

Did you change the definition of FREE_CITY_CULTURE in GlobalDefines.xml? It is normally 2. On the other hand if it is starting at 0 it would still match that, so this might not be a problem unless it is set to a negative number. On the other other hand, it might be considered to be -1 if it is not defined at all in your mod's GlobalDefines.xml file since the game uses the value -1 to mean "there is no such thing", and similar things, in a bunch of places internally.
 
Back
Top Bottom