Question on Making Oceans Passable...

michaelmozart86

Chieftain
Joined
Jul 15, 2012
Messages
4
Can someone please explain how to mod ancient era sea units (triremes, quinquiremes, and embarked units) so that they can cross ocean squares?

Thank you for your assistance.
 
SQL code (tested in SQLite Manager, should work in the game too):
Code:
DELETE FROM Unit_FreePromotions WHERE PromotionType IN ("PROMOTION_OCEAN_IMPASSABLE","PROMOTION_OCEAN_IMPASSABLE_UNTIL_ASTRONOMY");
UPDATE Technologies SET EmbarkedAllWaterPassage = 0;
UPDATE Technologies SET EmbarkedAllWaterPassage = 1 WHERE Type = "TECH_OPTICS";
 
No, but you can check the Airships in the Smoky Skies scenario to see how it can be done.
 
No, but you can check the Airships in the Smoky Skies scenario to see how it can be done.

Code:
<UnitPromotions>
		<Row>
			<Type>PROMOTION_MOVE_ALL_TERRAIN</Type>
			<Description>TXT_KEY_PROMOTION_MOVE_ALL_TERRAIN</Description>
			<Help>TXT_KEY_PROMOTION_MOVE_ALL_TERRAIN_HELP</Help>
			<Sound>AS2D_IF_LEVELUP</Sound>
			<IconAtlas>ABILITY_ATLAS</IconAtlas>
			<PediaType>PEDIA_ATTRIBUTES</PediaType>
			<PortraitIndex>58</PortraitIndex>
			<PediaEntry>TXT_KEY_PROMOTION_MOVE_ALL_TERRAIN</PediaEntry>
			<CanMoveAllTerrain>true</CanMoveAllTerrain>
			<LostWithUpgrade>1</LostWithUpgrade>
		</Row>
	</UnitPromotions>

Give a unit PROMOTION_MOVE_ALL_TERRAIN after adding this into your mod and you will be able to cross ocean without embarkation.
 
Give a unit PROMOTION_MOVE_ALL_TERRAIN after adding this into your mod and you will be able to cross ocean without embarkation.

If you want a "land" unit to be able to cross oceans as well, without ever embarking, it takes a little more work in my experience; simply adding an all-terrain promotion to a land unit didn't prevent embarkation when I tried it. My own mods added a half-dozen or so units (usually anti-grav ones) that could cross oceans like this, but in the end the only way I found that worked was to start with a domain_sea (but NOT naval combat class) unit and then give it an all-terrain promotion. This had a few unfortunate side effects: since they counted as sea units, these wouldn't get bonus XP from buildings that boosted only land units, they could only be built in coastal cities, they'd be vulnerable to submarines, they'd stack with land units (but not with naval units), and so on. Some of these ended up being useful bonuses, but it's something to keep in mind if you're adding similar units to your own mods.
 
I think it's a good idea to use DOMAIN_HOVER, which was introduced in G&K...
 
Oh yeah I just copied that from the Steampunk scenario. :P
 
If you want a "land" unit to be able to cross oceans as well, without ever embarking, it takes a little more work in my experience; simply adding an all-terrain promotion to a land unit didn't prevent embarkation when I tried it. My own mods added a half-dozen or so units (usually anti-grav ones) that could cross oceans like this, but in the end the only way I found that worked was to start with a domain_sea (but NOT naval combat class) unit and then give it an all-terrain promotion. This had a few unfortunate side effects: since they counted as sea units, these wouldn't get bonus XP from buildings that boosted only land units, they could only be built in coastal cities, they'd be vulnerable to submarines, they'd stack with land units (but not with naval units), and so on. Some of these ended up being useful bonuses, but it's something to keep in mind if you're adding similar units to your own mods.

My goal is to just have heli's not have to emabark, but they can't end their turn on a water tile. either.
 
Back
Top Bottom