Double movement on ocean

faremoutgames

Chieftain
Joined
Oct 20, 2014
Messages
59
Location
Montpellier, France
Hello,

I am looking for a mod to allows naval and embarked units to move at double speed on ocean (not coast, only ocean).
Do you know a mod which allows that ? Else which code should I to add on a mod ?

Fare
 
Naval units are one problem, embarked movement is a different one

The Ironclad gets double movement on coastal tiles from PROMOTION_STEAM_POWERED

Following that design, you'll need to create a new promotion (eg PROMOTION_OCEAN_CRUISING), give it to all relevant naval units and give it double movement on oceans with
Code:
<UnitPromotions_Terrains>
	<Row>
		<PromotionType>PROMOTION_OCEAN_CRUISING</PromotionType>
		<TerrainType>TERRAIN_OCEAN</TerrainType>
		<DoubleMove>true</DoubleMove>
	</Row>
</UnitPromotions_Terrains>

Embarked movement does not differentiate coastal vs ocean, so without a DLL mod it's going to be very difficult if not impossible
 
Naval units are one problem, embarked movement is a different one

The Ironclad gets double movement on coastal tiles from PROMOTION_STEAM_POWERED

Following that design, you'll need to create a new promotion (eg PROMOTION_OCEAN_CRUISING), give it to all relevant naval units and give it double movement on oceans with
Code:
<UnitPromotions_Terrains>
	<Row>
		<PromotionType>PROMOTION_OCEAN_CRUISING</PromotionType>
		<TerrainType>TERRAIN_OCEAN</TerrainType>
		<DoubleMove>true</DoubleMove>
	</Row>
</UnitPromotions_Terrains>

Embarked movement does not differentiate coastal vs ocean, so without a DLL mod it's going to be very difficult if not impossible

Thnaks, but I am not a very good modder, I can do basic codes, but no more, and so, I would not know how create a promotions for all naval units.
And for the embarked unit, if it is impossible to double its movement only on ocean, I would like that their move were always doubled on coast and ocean.

In fact, I play on a firaxis map of Oceania (of the Polynesian scenario), but the map is very giant, and the trajects are too long enter cities



P.S.: Is this code inspired of Mount Kilimandjaro is correct ?

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 15/04/2016 17:42:34 -->
<GameData>
  <!-- TODO: Insert table creation example here. -->
 
  <!-- TODO: Insert table data example here.-->
  
  <!-- Enter your Game Data here. -->
	<Features>
		<Row>
			<TerrainType>TERRAIN_OCEAN</TerrainType>
			<AdjacentUnitFreePromotion>PROMOTION_OCEAN_CRUISING</AdjacentUnitFreePromotion>
		</Row>
		<Row>
			<TerrainType>TERRAIN_COAST</TerrainType>
			<AdjacentUnitFreePromotion>PROMOTION_OCEAN_CRUISING</AdjacentUnitFreePromotion>
		</Row>
	</Features>
	<UnitPromotions_Terrains>
		<Row>
			<PromotionType>PROMOTION_OCEAN_CRUISING</PromotionType>
			<TerrainType>TERRAIN_OCEAN</TerrainType>
			<DoubleMove>true</DoubleMove>
		</Row>
	</UnitPromotions_Terrains>
</GameData>
 
The first part of your code is incorrect, terrains are not features and can't have an AdjacentUnitFreePromotion. Whoward's code is of course correct, assuming that PROMOTION_OCEAN_CRUISING exists. So you need not only a row in the UnitPromotions_Terrains table, but also to define the promotion itself in the UnitPromotions table.

To give a promotion to all naval units, you can use this SQL code:
Code:
INSERT INTO Unit_FreePromotions (UnitType, PromotionType)
SELECT Type, 'PROMOTION_OCEAN_CRUISING' from Units
WHERE Domain = 'DOMAIN_SEA';
 
Back
Top Bottom