Edit Galley to enter ocean

globe17

Chieftain
Joined
Feb 9, 2010
Messages
7
Hello Everyone

I just turned on Civ4 BTS after 6 years and am itching to play again. I would like to edit the Galley, to allow the unit to enter the ocean. Where in the CIV4UnitInfos xml would I make this change? Any help and/or screenshots would greatly help.
 
The following makes oceans impassable:

Code:
			<TerrainImpassables>
				<TerrainImpassable>
					<TerrainType>TERRAIN_OCEAN</TerrainType>
					<bTerrainImpassable>1</bTerrainImpassable>
				</TerrainImpassable>
			</TerrainImpassables>

You could remove that. You could also do something like this:

Code:
			<TerrainPassableTechs>
				<TerrainPassableTech>
					<TerrainType>TERRAIN_OCEAN</TerrainType>
					<PassableTech>TECH_ASTRONOMY</PassableTech>
				</TerrainPassableTech>
			</TerrainPassableTechs>

That would make Galleys able to enter the ocean after you have discovered Astronomy.
 
Important caveat: you cannot just delete an entry in the XML to remove it, the game will complain that it is missing. Instead you have to replace the
Code:
			<TerrainImpassables>
				<TerrainImpassable>
					<TerrainType>TERRAIN_OCEAN</TerrainType>
					<bTerrainImpassable>1</bTerrainImpassable>
				</TerrainImpassable>
			</TerrainImpassables>
block with
Code:
			<TerrainImpassables/>
 
Also, you probably already know this, but make absolutely sure you copy the CIV4UnitInfos.xml file to Mods/"your mod"/Assets/XML/Units before you edit it. Made that mistake way too many times to not warn people about it ;)

Welcome to CFC!
 
Back
Top Bottom