Desert movement mod

spearchucker

Chieftain
Joined
Sep 17, 2006
Messages
9
Does one exist? have looked around alot and cant seem to find one, or maybe there is a easy way of doing it myself. And to be more precise I think deserts should be a bigger barrier than what we currently have. Should be off limits to all foot units untill modern times IMO, anyway does one exist and where? Thanks in advance for the help and or any comments about this :goodjob:
 
Well maybe a random event a % chance that the unit/units will be lost in the desert like that ancient army? maybe somebody knows which one that was, lost and archealogy is still looking for it. And the chance goes down with more techs like compass ect,ect, just a idea anyway but would be nice if somebody would pick it up and mod it in
 
There are a few things you can do. The simplest would be to go into CIV4TerrainInfos.xml and simply change the movement rate to 2 instead of 1. You could also go into CIV4UnitInfos.xml and add somthing to one or both of these lines:

<TerrainPassableTechs/>
<FeaturePassableTechs/>

This will make it so that the terrain or feature type you select is impassable until a certain tech for a particular unit. It would be the same thing as Galleys not being able to enter Oceans until Astronomy.
 
<TerrainPassableTechs/>
<FeaturePassableTechs/>

This will make it so that the terrain or feature type you select is impassable until a certain tech for a particular unit. It would be the same thing as Galleys not being able to enter Oceans until Astronomy.

Willem could you please give more info im kind of clueless as to what to add and thanks for the info
 
Ok I changed the movment cost in the CIV4TerrainInfos.xml but I am getting no change in game what am I missing?
 
The minimum move cost is 1. So if a unit had a move of 1 before, it still has a move of 1. All changing move cost does is make mounted units also move 1.

I made a tiny little mod that makes Warrior unable to pass Desert until Biology tech. You can change the tech and copy the same block into the same place in as many units as you like. I put warrior on top so its easy to find and highlighted the relevant block by bracketing it with these
Code:
<!-- tHIS PART -->
			<TerrainImpassables>
				<TerrainImpassable>
					<TerrainType>TERRAIN_DESERT</TerrainType>
					<bTerrainImpassable>1</bTerrainImpassable>
				</TerrainImpassable>
			</TerrainImpassables>
			<FeatureImpassables/>
			<TerrainPassableTechs>
				<TerrainPassableTech>
					<TerrainType>TERRAIN_DESERT</TerrainType>
					<PassableTech>TECH_BIOLOGY</PassableTech>
				</TerrainPassableTech>
			</TerrainPassableTechs>
<!-- THIS PART -->
 

Attachments

Inserting all that seems repetitive; and i heard that the Computer doesn't consider any units with terrain impassables good scouting units, so there may be problems there. There is a utility program in the db that inserts strings after other pre-entered strings.
 
Ok got the XML editor and took me about 5min to fix it up got all foot units blocked untill compass and mounted units only have 1 mp so thats about what I wanted to see. Thanks for walking me through this and for your help
 
I find that WordPad's "Replace" function works good for inserting strings.
For instance in the modcomp I am trying to make, I had to add a tag to every building for the XML part.

<iHotKeyPriority>0</iHotKeyPriority>
<bCityConnected>0</bCityConnected>

What I did was
Replace All: </iHotKeyPriority>
With:</iHotKeyPriority> <bCityConnected>0</bCityConnected>

Sure, it can only do stuff that ends up with one line, but XML doesn't care. Technique at using this can be developed.
 
There is also a utility program in the db that does that, but on two lines. Oooh shiny!
 
Back
Top Bottom