Adjusting Resource Seeds

Galactic Milk

Chieftain
Joined
Nov 28, 2005
Messages
4
Hello!

Does anyone know how I can adjust the resource seeds like you could in Civ 3? Specifically, I want to modify the oil resource so it is more rare. I liked playing Civ 3 with oil being available in only 3 or 4 locations for 12 nations to fight over, because it feels more realistic that way. Thanks in advance!

- Joe
 
The following is from the Assets/xml/terrain.Civ4MonusInfos.xml file. The variables you will want to play with to adjust the rarity are in bold:

I believe (but Im not sure by any means) that the 150 in iPlayer means you will have approx 1.5 occurances per player, and the 512 in iTilesPer means you will have an additional 1 per 512 tiles. Play with them and you should be able to get the frequency you want. Let me know how it works, Im curious to understand these bonus settings better too.

<BonusInfo>
<Type>BONUS_OIL</Type>
<Description>TXT_KEY_BONUS_OIL</Description>
<Civilopedia>TXT_KEY_BONUS_OIL_PEDIA</Civilopedia>
<BonusClassType>BONUSCLASS_MODERN</BonusClassType>
<ArtDefineTag>ART_DEF_BONUS_OIL</ArtDefineTag>
<TechReveal>TECH_SCIENTIFIC_METHOD</TechReveal>
<TechCityTrade>TECH_COMBUSTION</TechCityTrade>
<TechObsolete>NONE</TechObsolete>
<YieldChanges>
<iYieldChange>0</iYieldChange>
<iYieldChange>1</iYieldChange>
<iYieldChange>0</iYieldChange>
</YieldChanges>
<iAITradeModifier>20</iAITradeModifier>
<iHealth>0</iHealth>
<iHappiness>0</iHappiness>
<iPlacementOrder>0</iPlacementOrder>
<iConstAppearance>100</iConstAppearance>
<iMinAreaSize>3</iMinAreaSize>
<iMinLatitude>0</iMinLatitude>
<iMaxLatitude>90</iMaxLatitude>
<Rands>
<iRandApp1>10</iRandApp1>
<iRandApp2>10</iRandApp2>
<iRandApp3>0</iRandApp3>
<iRandApp4>0</iRandApp4>
</Rands>
<iPlayer>150</iPlayer>
<iTilesPer>512</iTilesPer>

<iMinLandPercent>70</iMinLandPercent>
<iUnique>7</iUnique>
<iGroupRange>0</iGroupRange>
<iGroupRand>0</iGroupRand>
<bArea>0</bArea>
<bHills>0</bHills>
<bFlatlands>1</bFlatlands>
<bNoRiverSide>1</bNoRiverSide>
<bNormalize>0</bNormalize>
<TerrainBooleans>
<TerrainBoolean>
<TerrainType>TERRAIN_DESERT</TerrainType>
<bTerrain>1</bTerrain>
</TerrainBoolean>
<TerrainBoolean>
<TerrainType>TERRAIN_TUNDRA</TerrainType>
<bTerrain>1</bTerrain>
</TerrainBoolean>
<TerrainBoolean>
<TerrainType>TERRAIN_SNOW</TerrainType>
<bTerrain>1</bTerrain>
</TerrainBoolean>
<TerrainBoolean>
<TerrainType>TERRAIN_OCEAN</TerrainType>
<bTerrain>1</bTerrain>
</TerrainBoolean>
</TerrainBooleans>
<FeatureBooleans>
<FeatureBoolean>
<FeatureType>FEATURE_JUNGLE</FeatureType>
<bFeature>1</bFeature>
</FeatureBoolean>
</FeatureBooleans>
<FeatureTerrainBooleans>
<FeatureTerrainBoolean>
<TerrainType>TERRAIN_GRASS</TerrainType>
<bFeatureTerrain>1</bFeatureTerrain>
</FeatureTerrainBoolean>
</FeatureTerrainBooleans>
</BonusInfo>
 
Thanks for the advice Kael. I'll give it a try, but obviously it's not quite what I was looking for. I'm surprised one can't change the resource seeds individually, just the overall settings for all resources. I did try looking for an xml file that has each resource listed, but haven't been able to find anything, which also surprises me. I'll let you know what I find out by changing these settings, but it may take me a while.

Anybody else have luck with this? I can't be the only slob who wants to change these settings!

- Joe
 
Galactic Milk said:
Thanks for the advice Kael. I'll give it a try, but obviously it's not quite what I was looking for. I'm surprised one can't change the resource seeds individually, just the overall settings for all resources. I did try looking for an xml file that has each resource listed, but haven't been able to find anything, which also surprises me. I'll let you know what I find out by changing these settings, but it may take me a while.

Anybody else have luck with this? I can't be the only slob who wants to change these settings!

- Joe

The part I cut out of the file was only for Oil. They are set per bonus.
 
Kael said:
The part I cut out of the file was only for Oil. They are set per bonus.

Oh, wow! Duh! :blush: I didn't look closely at the snippet you provided, so I guess it is what I was looking for.

Now all I need a smiley that kicks itself in the rear.

- Joe
 
Back
Top Bottom