Ocean travel

Micadi

Chieftain
Joined
Oct 1, 2018
Messages
11
Quick question - is there an easy way to enable certain civs to travel across shallow water from the start of the game (similarly to Polynesia)? I am playing campaigns only on Ynaemp giant earth map and because of it certain civs end up far behind others. It is also important for me to make it compatible with Vox Populi. I've never modded civ5 myself before so I hope there is a simple solution to this.
 
The simplest solution is probably to add the Embarkation promotion as a free promotion to everyone's trait. Create an SQL file and input a table formatted like this:

Spoiler :

Code:
INSERT INTO Trait_FreePromotions
    (TraitType,        PromotionType)
VALUES    ('TRAIT_ART_OF_WAR',        'PROMOTION_EMBARKATION'),
    ('TRAIT_POPULATION_GROWTH',    'PROMOTION_EMBARKATION'),
    ('TRAIT_CITY_STATE_FRIENDSHIP',    'PROMOTION_EMBARKATION');


I used a few vanilla traits as examples, but you'll want to replace those with the traits of whichever civs you're playing with. Then, to make this code affect the game: insert that SQL file into a Modbuddy project, and set the project to UpdateDatabase with your file at the OnModActivated trigger. Compile the project, put it in your MODS folder, and you should be good to go!

I haven't used Vox Populi so I can't guarantee compatibility, but this just adds a small update to one of the base game's tables, so I can't imagine there'd be any problems.
 
If you Build Solution or Build NameOfTheMod in Modbuddy there will be no need to copy/paste the mod to the game's Mods folder. Both of these Modbuddy "Build" processes send a usable version of the mod to the game's Mods folder.
 
I had difficulties getting it to work for my Phoenicians but here is what ended up working:
Spoiler :

From the Trait file:
<!-- Phoenicians - Hiram -->
<Row>
<Type>TRAIT_LEADER_HIRAM</Type>
<Description>TXT_KEY_TRAIT_LEADER_HIRAM</Description>
<ShortDescription>TXT_KEY_TRAIT_LEADER_HIRAM_SHORT</ShortDescription>
<FreeBuilding>BUILDING_PHOENICIANTRAITBUILDING</FreeBuilding>
</Row>

From the Buildings file:
<Row>
<Type>BUILDING_PHOENICIANTRAITBUILDINGa</Type>
<BuildingClass>BUILDINGCLASS_TRAITBUILDING6a</BuildingClass>
<Capital>true</Capital><Cost>0</Cost>
<ObsoleteTech>TECH_AGRICULTURE</ObsoleteTech>
<Description>Trait Building</Description>
<MinAreaSize>-1</MinAreaSize>
<NeverCapture>true</NeverCapture>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<HurryCostModifier>25</HurryCostModifier>
<PortraitIndex>19</PortraitIndex>
<NukeImmune>true</NukeImmune>
</Row>
<Row>
<Type>BUILDING_PHOENICIANTRAITBUILDING</Type>
<BuildingClass>BUILDINGCLASS_TRAITBUILDING6</BuildingClass>
<Capital>true</Capital>
<Cost>0</Cost>
<Description>Trait Building</Description>
<MinAreaSize>-1</MinAreaSize>
<NeverCapture>true</NeverCapture>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<PortraitIndex>19</PortraitIndex>
<HurryCostModifier>25</HurryCostModifier>
<NukeImmune>true</NukeImmune>
<FreePromotion>PROMOTION_EMBARKATION2</FreePromotion>
</Row>

<BuildingClasses><Row>
<Type>BUILDINGCLASS_TRAITBUILDING6</Type>
<DefaultBuilding>BUILDING_PHOENICIANTRAITBUILDING</DefaultBuilding>
<Description>Trait Building</Description>
</Row>
<Row>
<Type>BUILDINGCLASS_TRAITBUILDING6a</Type>
<DefaultBuilding>BUILDING_PHOENICIANTRAITBUILDINGa</DefaultBuilding>
<Description>Trait Building</Description>
<MaxPlayerInstances>1</MaxPlayerInstances>
</Row>
</BuildingClasses>

<Building_ClassesNeededInCity>
<Row>
<BuildingType>BUILDING_PHOENICIANTRAITBUILDING</BuildingType>
<BuildingClassType>BUILDINGCLASS_TRAITBUILDING6a</BuildingClassType>
</Row>
</Building_ClassesNeededInCity>

From the Promotions file:
<Row>
<Type>PROMOTION_EMBARKATION2</Type>
<Description>EMBARKATION</Description>
<Help>EMBARKATION</Help>
<Sound>AS2D_IF_LEVELUP</Sound>
<CannotBeChosen>true</CannotBeChosen>
<AllowsEmbarkation>true</AllowsEmbarkation>
<PortraitIndex>22</PortraitIndex>
<IconAtlas>PROMOTION_ATLAS</IconAtlas>
<PediaType>PEDIA_ATTRIBUTES</PediaType>
<PediaEntry>EMBARKATION</PediaEntry>
</Row>

<UnitPromotions_UnitCombats>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
</Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
</Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitCombatType>UNITCOMBAT_RECON</UnitCombatType>
</Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitCombatType>UNITCOMBAT_ARCHER</UnitCombatType></Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType></Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitCombatType>UNITCOMBAT_SIEGE</UnitCombatType></Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitCombatType>UNITCOMBAT_ARMOR</UnitCombatType>
</Row>
</UnitPromotions_UnitCombats>
<UnitPromotions_CivilianUnitType>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitType>UNIT_GREAT_GENERAL</UnitType>
</Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitType>UNIT_ENGINEER</UnitType>
</Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitType>UNIT_MERCHANT</UnitType>
</Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitType>UNIT_SCIENTIST</UnitType>
</Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitType>UNIT_ARTIST</UnitType>
</Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitType>UNIT_WORKER</UnitType>
</Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitType>UNIT_SETTLER</UnitType>
</Row>
<Row>
<PromotionType>PROMOTION_EMBARKATION2</PromotionType>
<UnitType>UNIT_SUPERSETTLER</UnitType>
</Row>
</UnitPromotions_CivilianUnitType>

 
Back
Top Bottom