Editting Terrain ability-settings

MrCrush

Chieftain
Joined
Nov 11, 2005
Messages
11
Okay, I'm pretty new at this modding stuff here, still used to Civ3, now lets get to the point, I would like to disable city-building (movement and upgrades would still be possible however) on tundra-terrain on a map, in Civ3 this was rather easy, but it seems a whole diffrent story on civ4, can someone give me some help on how to do this?

Many thanks
MrCrush
 
I'm sorry, but I don't know how to do it.
I tried some things, but without success.

This is what I did, maybe it'll help you

I found this line in 'CIV4FeaturesInfo.xml':
<bNoCity>0</bNoCity>

If you change the 0 to a 1 you can't build a city on that feature.
I tried this line in 'CIV4TerainInfo.xml', but without success.

So maybe you have to create a new feature with only this setting and put it on every tundra-terrain.

But I am new at modding Civ4, too.
If you find a way, please tell me, cause I'm interested in this thing, too.
 
okay, I got something.

check
civ4/assets/xml/terrain.xml

then go to
<Type>FEATURE_ICE</Type>
...
<bImpassable>0</bImpassable>
<bNoCity>1</bNoCity>
<bNoImprovement>0</bNoImprovement>

This will enable movement and upgrades on ice-spots but, prevents cities being built on them... kinda sad I have to mod this but well... this is how things go :)
 
Go to CIV4TerrainInfos.xml, go to;

Code:
<Type>TERRAIN_TUNDRA</Type>

OR

<Type>TERRAIN_PLAINS</Type>

OR

Any other terrain type-tag
Then about 12-13 lines down you have this line;
Code:
<bFound>1</bFound>
I haven't tried it myself, but they use this tag for founding cities in other .xml files as well. You could give it a whirl by setting it to '0' ;)
 
@Tremo:

That was the first thing i tried without success (so i thought it has nothing to do with it).
But maybe i did something wrong.

But the terain 'hill' has <bFound>0</bFound> and as far as i know you can build cities on hills. So it might be something different.
 
Setting the bFound tag to 0 did work for me: I was unable to found a city on tundra. For the record, I also tried the same with Grassland and it worked fine with it as well.

The strangeness with the Hill entry is because a Hill isn't a terrain all by itself, but rather an overlay. All hills you encounter in the game have another terrain type attributed to them, so they are Plains/Hills, Grassland/Hills etc., and the bFound tag of the underlying terrain is what defines whether a city can be built on the hill.
 
Back
Top Bottom