Help with XML and adding units...

JamesRoper1403

Chieftain
Joined
Mar 7, 2016
Messages
34
I am trying to add a few units to my game using the existing models in the game. e.g. using the Destroyer model with some stat changes to create a Cruiser.

I had managed to create the Cruiser... But then I went on to add some further units using some details from other mods to help. But now none of these changes show up in-game and I am lost as to where the problem lies.

Any help would be greatly appreciated!


Units.xml

Spoiler :

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 3/7/2016 10:28:58 AM -->
<GameData>
<Units>
<Row>
<Class>UNITCLASS_ARMORED_FRIGATE</Class>
<Type>UNIT_ARMORED_FRIGATE</Type>
<PrereqTech>TECH_STEAM_POWER</PrereqTech>
<Combat>50</Combat>
<RangedCombat>40</RangedCombat>
<Cost>250</Cost>
<Moves>3</Moves>
<Range>2</Range>
<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>
<Domain>DOMAIN_SEA</Domain>
<DefaultUnitAI>UNITAI_ATTACK_SEA</DefaultUnitAI>
<Description>TXT_KEY_UNIT_ARMORED_FRIGATE</Description>
<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_ARMORED_FRIGATE_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_ARMORED_FRIGATE_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_ARMORED_FRIGATE</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
<ObsoleteTech>TECH_COMBUSTION</ObsoleteTech>
<Mechanized>true</Mechanized>
<AdvancedStartCost>50</AdvancedStartCost>
<MinAreaSize>10</MinAreaSize>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_IRONCLAD</UnitArtInfo>
<UnitFlagIconOffset>53</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>10</PortraitIndex>
<MoveRate>BOAT</MoveRate>
</Row>
<Row>
<Class>UNITCLASS_PROTECTED_CRUISER</Class>
<Type>UNIT_PROTECTED_CRUISER</Type>
<PrereqTech>TECH_DYNAMITE</PrereqTech>
<Combat>45</Combat>
<RangedCombat>45</RangedCombat>
<Cost>240</Cost>
<Moves>4</Moves>
<Range>2</Range>
<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>
<Domain>DOMAIN_SEA</Domain>
<DefaultUnitAI>UNITAI_ATTACK_SEA</DefaultUnitAI>
<Description>TXT_KEY_UNIT_PROTECTED_CRUISER</Description>
<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_PROTECTED_CRUISER_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_PROTECTED_CRUISER_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_PROTECTED_CRUISER</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
<ObsoleteTech>TECH_COMBUSTION</ObsoleteTech>
<Mechanized>true</Mechanized>
<AdvancedStartCost>50</AdvancedStartCost>
<MinAreaSize>10</MinAreaSize>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_IRONCLAD</UnitArtInfo>
<UnitFlagIconOffset>53</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>10</PortraitIndex>
<MoveRate>BOAT</MoveRate>
</Row>
<Row>
<Class>UNITCLASS_FRIGATE</Class>
<Type>UNIT_FRIGATE</Type>
<PrereqTech>TECH_NAVIGATION</PrereqTech>
<Combat>35</Combat>
<RangedCombat>33</RangedCombat>
<Cost>185</Cost>
<Moves>5</Moves>
<HurryCostModifier>20</HurryCostModifier>
<Range>2</Range>
<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>
<Domain>DOMAIN_SEA</Domain>
<DefaultUnitAI>UNITAI_ASSAULT_SEA</DefaultUnitAI>
<Description>TXT_KEY_UNIT_FRIGATE</Description>
<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_FRIGATE_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_FRIGATE_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_FRIGATE</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<ObsoleteTech>TECH_ELECTRONICS</ObsoleteTech>
<Mechanized>true</Mechanized>
<AdvancedStartCost>50</AdvancedStartCost>
<MinAreaSize>10</MinAreaSize>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_FRIGATE</UnitArtInfo>
<UnitFlagIconOffset>51</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>8</PortraitIndex>
<MoveRate>WOODEN_BOAT</MoveRate>
</Row>
<Row>
<Class>UNITCLASS_FRIGATE</Class>
<Type>UNIT_ENGLISH_SHIPOFTHELINE</Type>
<PrereqTech>TECH_NAVIGATION</PrereqTech>
<Combat>40</Combat>
<RangedCombat>40</RangedCombat>
<Cost>170</Cost>
<Moves>5</Moves>
<HurryCostModifier>20</HurryCostModifier>
<Range>2</Range>
<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>
<Domain>DOMAIN_SEA</Domain>
<DefaultUnitAI>UNITAI_ASSAULT_SEA</DefaultUnitAI>
<Description>TXT_KEY_UNIT_ENGLISH_SHIPOFTHELINE</Description>
<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_SHIPOFTHELINE_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_ENGLISH_SHIPOFTHELINE_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_SHIPOFTHELINE</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<ObsoleteTech>TECH_ELECTRONICS</ObsoleteTech>
<Mechanized>true</Mechanized>
<AdvancedStartCost>50</AdvancedStartCost>
<MinAreaSize>10</MinAreaSize>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_U_ENGLISH_SHIPOFTHELINE</UnitArtInfo>
<UnitFlagIconOffset>52</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>9</PortraitIndex>
<MoveRate>WOODEN_BOAT</MoveRate>
</Row>
<Row>
<Class>UNITCLASS_CARAVEL</Class>
<Type>UNIT_CARAVEL</Type>
<PrereqTech>TECH_ASTRONOMY</PrereqTech>
<Combat>20</Combat>
<RangedCombat>20</RangedCombat>
<Cost>120</Cost>
<Moves>4</Moves>
<HurryCostModifier>30</HurryCostModifier>
<Range>1</Range>
<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>
<Domain>DOMAIN_SEA</Domain>
<DefaultUnitAI>UNITAI_EXPLORE_SEA</DefaultUnitAI>
<Description>TXT_KEY_UNIT_CARAVEL</Description>
<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_CARAVEL_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_CARAVEL_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_CARAVEL</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<Mechanized>true</Mechanized>
<ObsoleteTech>TECH_STEAM_POWER</ObsoleteTech>
<AdvancedStartCost>50</AdvancedStartCost>
<MinAreaSize>10</MinAreaSize>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_CARAVEL</UnitArtInfo>
<UnitFlagIconOffset>42</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_1</IconAtlas>
<PortraitIndex>43</PortraitIndex>
<MoveRate>BOAT</MoveRate>
</Row>
-<Row>

<Class>UNITCLASS_CUTTER</Class>

<Type>UNIT_CUTTER</Type>

<PrereqTech>TECH_PRINTING_PRESS</PrereqTech>

<Combat>30</Combat>

<RangedCombat>30</RangedCombat>

<Cost>90</Cost>

<Moves>6</Moves>

<HurryCostModifier>20</HurryCostModifier>

<Range>1</Range>

<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_PIRATE_SEA</DefaultUnitAI>

<Description>TXT_KEY_UNIT_CUTTER</Description>

<Civilopedia>TXT_KEY_CIV5_CUTTER_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_CUTTER_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_CUTTER</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<Mechanized>true</Mechanized>

<ObsoleteTech>TECH_STEAM_POWER</ObsoleteTech>

<AdvancedStartCost>50</AdvancedStartCost>

<MinAreaSize>20</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<UnitArtInfo>ART_DEF_UNIT_CARAVEL</UnitArtInfo>

<UnitFlagIconOffset>42</UnitFlagIconOffset>

<IconAtlas>UNIT_ATLAS_1</IconAtlas>

<PortraitIndex>43</PortraitIndex>

<MoveRate>BOAT</MoveRate>

</Row>


<Row>

<Class>UNITCLASS_GALLEON</Class>

<Type>UNIT_GALLEON</Type>

<PrereqTech>TECH_NAVIGATION</PrereqTech>

<Combat>40</Combat>

<RangedCombat>40</RangedCombat>

<Cost>250</Cost>

<Moves>4</Moves>

<HurryCostModifier>25</HurryCostModifier>

<Range>2</Range>

<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_ASSAULT_SEA</DefaultUnitAI>

<Description>TXT_KEY_UNIT_GALLEON</Description>

<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_GALLEON_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_GALLEON_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_GALLEON</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<Mechanized>true</Mechanized>

<ObsoleteTech>TECH_ELECTRONICS</ObsoleteTech>

<AdvancedStartCost>50</AdvancedStartCost>

<MinAreaSize>20</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<UnitArtInfo>ART_DEF_UNIT_MOD_GALLEON</UnitArtInfo>

<UnitFlagIconOffset>52</UnitFlagIconOffset>

<IconAtlas>UNIT_ATLAS_2</IconAtlas>

<PortraitIndex>9</PortraitIndex>

<MoveRate>WOODEN_BOAT</MoveRate>

</Row>
<Row>

<Class>UNITCLASS_CARRACK</Class>

<Type>UNIT_CARRACK</Type>

<PrereqTech>TECH_GUNPOWDER</PrereqTech>

<Combat>30</Combat>

<RangedCombat>30</RangedCombat>

<Cost>150</Cost>

<Moves>4</Moves>

<HurryCostModifier>20</HurryCostModifier>

<Range>2</Range>

<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_ASSAULT_SEA</DefaultUnitAI>

<Description>TXT_KEY_UNIT_CARRACK</Description>

<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_CARRACK_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_CARRACK_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_CARRACK</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<ObsoleteTech>TECH_ELECTRONICS</ObsoleteTech>

<Mechanized>true</Mechanized>

<AdvancedStartCost>50</AdvancedStartCost>

<MinAreaSize>20</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<UnitArtInfo>ART_DEF_UNIT_U_PORTUGUESE_CARRACK</UnitArtInfo>

<UnitFlagIconOffset>51</UnitFlagIconOffset>

<IconAtlas>UNIT_ATLAS_2</IconAtlas>

<PortraitIndex>8</PortraitIndex>

<MoveRate>WOODEN_BOAT</MoveRate>

</Row>
<Row>

<Class>UNITCLASS_GALLEON</Class>

<Type>UNIT_EAST_INDIAMAN</Type>

<PrereqTech>TECH_NAVIGATION</PrereqTech>

<Combat>35</Combat>

<RangedCombat>35</RangedCombat>

<Cost>225</Cost>

<Moves>6</Moves>

<HurryCostModifier>25</HurryCostModifier>

<Range>2</Range>

<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_ASSAULT_SEA</DefaultUnitAI>

<Description>TXT_KEY_UNIT_EAST_INDIAMAN</Description>

<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_EAST_INDIAMAN_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_EAST_INDIAMAN_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_EAST_INDIAMAN</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<Mechanized>true</Mechanized>

<ObsoleteTech>TECH_ELECTRONICS</ObsoleteTech>

<AdvancedStartCost>50</AdvancedStartCost>

<MinAreaSize>20</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<UnitArtInfo>ART_DEF_UNIT_MOD_GALLEON</UnitArtInfo>

<UnitFlagIconOffset>52</UnitFlagIconOffset>

<IconAtlas>UNIT_ATLAS_2</IconAtlas>

<PortraitIndex>9</PortraitIndex>

<MoveRate>WOODEN_BOAT</MoveRate>

</Row>
<Row>

<Class>UNITCLASS_CLIPPER</Class>

<Type>UNIT_CLIPPER</Type>

<PrereqTech>TECH_GUNPOWDER</PrereqTech>

<Combat>28</Combat>

<RangedCombat>30</RangedCombat>

<Cost>250</Cost>

<Moves>7</Moves>

<HurryCostModifier>20</HurryCostModifier>

<Range>2</Range>

<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_ASSAULT_SEA</DefaultUnitAI>

<Description>TXT_KEY_UNIT_CLIPPER</Description>

<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_CLIPPER_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_CLIPPER_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_CLIPPER</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<Mechanized>true</Mechanized>

<AdvancedStartCost>50</AdvancedStartCost>

<WorkRate>1</WorkRate>

<CombatLimit>0</CombatLimit>

<BaseGold>150</BaseGold>

<NumGoldPerEra>50</NumGoldPerEra>

<MinAreaSize>20</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<UnitArtInfo>ART_DEF_UNIT_FRIGATE</UnitArtInfo>

<UnitFlagIconOffset>51</UnitFlagIconOffset>

<IconAtlas>UNIT_ATLAS_2</IconAtlas>

<PortraitIndex>8</PortraitIndex>

<MoveRate>WOODEN_BOAT</MoveRate>

</Row>
-<Row>

<Class>UNITCLASS_BATTLESHIP</Class>

<Type>UNIT_BATTLESHIP</Type>

<PrereqTech>TECH_ELECTRONICS</PrereqTech>

<Combat>90</Combat>

<RangedCombat>90</RangedCombat>

<Cost>425</Cost>

<Moves>4</Moves>

<Range>3</Range>

<AirInterceptRange>1</AirInterceptRange>

<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_ASSAULT_SEA</DefaultUnitAI>

<Description>Battleship</Description>

<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_BATTLESHIP_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_BATTLESHIP_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_BATTLESHIP</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<IgnoreBuildingDefense>true</IgnoreBuildingDefense>

<Mechanized>true</Mechanized>

<AdvancedStartCost>60</AdvancedStartCost>

<MinAreaSize>10</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<UnitArtInfo>ART_DEF_UNIT_BATTLESHIP</UnitArtInfo>

<UnitFlagIconOffset>68</UnitFlagIconOffset>

<IconAtlas>UNIT_ATLAS_2</IconAtlas>

<PortraitIndex>21</PortraitIndex>

<MoveRate>BOAT</MoveRate>

</Row>
-<Row>

<Class>UNITCLASS_CARRIER</Class>

<Type>UNIT_CARRIER</Type>

<PrereqTech>TECH_ELECTRONICS</PrereqTech>

<Combat>55</Combat>

<Cost>425</Cost>

<Moves>5</Moves>

<CombatClass>UNITCOMBAT_CARRIER</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_CARRIER_SEA</DefaultUnitAI>

<Description>Carrier</Description>

<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_CARRIER_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_CARRIER_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_CARRIER</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<IgnoreBuildingDefense>true</IgnoreBuildingDefense>

<Mechanized>true</Mechanized>

<AdvancedStartCost>60</AdvancedStartCost>

<MinAreaSize>10</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<SpecialCargo>SPECIALUNIT_FIGHTER</SpecialCargo>

<DomainCargo>DOMAIN_AIR</DomainCargo>

<UnitArtInfo>ART_DEF_UNIT_CARRIER</UnitArtInfo>

<UnitFlagIconOffset>70</UnitFlagIconOffset>

<IconAtlas>UNIT_ATLAS_2</IconAtlas>

<PortraitIndex>23</PortraitIndex>

<MoveRate>BOAT</MoveRate>

</Row>
-<Row>

<Class>UNITCLASS_DESTROYER</Class>

<Type>UNIT_DESTROYER</Type>

<PrereqTech>TECH_ELECTRONICS</PrereqTech>

<Combat>50</Combat>

<RangedCombat>50</RangedCombat>

<Cost>320</Cost>

<Moves>7</Moves>

<Range>2</Range>

<AirInterceptRange>2</AirInterceptRange>

<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_ATTACK_SEA</DefaultUnitAI>

<Description>TXT_KEY_UNIT_DESTROYER</Description>

<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_DESTROYER_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_DESTROYER_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_DESTROYER</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<IgnoreBuildingDefense>true</IgnoreBuildingDefense>

<Mechanized>true</Mechanized>

<AdvancedStartCost>60</AdvancedStartCost>

<MinAreaSize>10</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<UnitArtInfo>ART_DEF_UNIT_DESTROYER</UnitArtInfo>

<UnitFlagIconOffset>67</UnitFlagIconOffset>

<IconAtlas>UNIT_ATLAS_2</IconAtlas>

<PortraitIndex>20</PortraitIndex>

<MoveRate>BOAT</MoveRate>

</Row>
-<Row>

<Class>UNITCLASS_DESTROYER</Class>

<Type>UNIT_CORVETTE</Type>

<PrereqTech>TECH_REPLACEABLE_PARTS</PrereqTech>

<Combat>40</Combat>

<RangedCombat>40</RangedCombat>

<Cost>280</Cost>

<Moves>6</Moves>

<Range>1</Range>

<AirInterceptRange>1</AirInterceptRange>

<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_ATTACK_SEA</DefaultUnitAI>

<Description>TXT_KEY_UNIT_CORVETTE</Description>

<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_CORVETTE_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_CORVETTE_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_CORVETTE</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<IgnoreBuildingDefense>true</IgnoreBuildingDefense>

<Mechanized>true</Mechanized>

<AdvancedStartCost>60</AdvancedStartCost>

<MinAreaSize>10</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<UnitArtInfo>ART_DEF_UNIT_DESTROYER</UnitArtInfo>

<UnitFlagIconOffset>67</UnitFlagIconOffset>

<IconAtlas>UNIT_ATLAS_2</IconAtlas>

<PortraitIndex>20</PortraitIndex>

<MoveRate>BOAT</MoveRate>

</Row>

<Row>

<Class>UNITCLASS_MODERN_FRIGATE</Class>

<Type>UNIT_MODERN_FRIGATE</Type>

<PrereqTech>TECH_COMPUTERS</PrereqTech>

<Combat>50</Combat>

<RangedCombat>50</RangedCombat>

<Cost>290</Cost>

<Moves>6</Moves>

<Range>2</Range>

<AirInterceptRange>2</AirInterceptRange>

<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_ATTACK_SEA</DefaultUnitAI>

<Description>TXT_KEY_UNIT_MODERN_FRIGATE</Description>

<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_MODERN_FRIGATE_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_ATOMIC_FRIGATE_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_MODERN_FRIGATE</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<IgnoreBuildingDefense>true</IgnoreBuildingDefense>

<Mechanized>true</Mechanized>

<AdvancedStartCost>60</AdvancedStartCost>

<MinAreaSize>10</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<UnitArtInfo>ART_DEF_UNIT_DESTROYER</UnitArtInfo>
<UnitFlagIconOffset>80</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>33</PortraitIndex>

<MoveRate>BOAT</MoveRate>

</Row>

-<Row>

<Class>UNITCLASS_BATTLESHIP</Class>

<Type>UNIT_DREADNOUGHT</Type>

<PrereqTech>TECH_REFRIGERATION</PrereqTech>

<Combat>70</Combat>

<RangedCombat>80</RangedCombat>

<Cost>400</Cost>

<Moves>4</Moves>

<Range>3</Range>

<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_ASSAULT_SEA</DefaultUnitAI>

<Description>TXT_KEY_UNIT_DREADNOUGHT</Description>

<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_DREADNOUGHT_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_DREADNOUGHT_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_DREADNOUGHT</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<IgnoreBuildingDefense>true</IgnoreBuildingDefense>

<Mechanized>true</Mechanized>

<AdvancedStartCost>60</AdvancedStartCost>

<MinAreaSize>10</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<UnitArtInfo>ART_DEF_UNIT_BATTLESHIP</UnitArtInfo>

<UnitFlagIconOffset>68</UnitFlagIconOffset>

<IconAtlas>UNIT_ATLAS_2</IconAtlas>

<PortraitIndex>21</PortraitIndex>

<MoveRate>BOAT</MoveRate>

</Row>
-<Row>

<Class>UNITCLASS_BATTLESHIP</Class>

<Type>UNIT_PRE-DREADNOUGHT_BATTLESHIP</Type>

<PrereqTech>TECH_BIOLOGY</PrereqTech>

<Combat>65</Combat>

<RangedCombat>65</RangedCombat>

<Cost>375</Cost>

<Moves>4</Moves>

<Range>3</Range>

<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>

<Domain>DOMAIN_SEA</Domain>

<DefaultUnitAI>UNITAI_ASSAULT_SEA</DefaultUnitAI>

<Description>TXT_KEY_UNIT_PRE-DREADNOUGHT_BATTLESHIP</Description>

<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_PRE-DREADNOUGHT_BATTLESHIP_TEXT</Civilopedia>

<Strategy>TXT_KEY_UNIT_PRE-DREADNOUGHT_BATTLESHIP_STRATEGY</Strategy>

<Help>TXT_KEY_UNIT_HELP_PRE-DREADNOUGHT_BATTLESHIP</Help>

<MilitarySupport>true</MilitarySupport>

<MilitaryProduction>true</MilitaryProduction>

<Pillage>true</Pillage>

<IgnoreBuildingDefense>true</IgnoreBuildingDefense>

<Mechanized>true</Mechanized>

<AdvancedStartCost>60</AdvancedStartCost>

<MinAreaSize>10</MinAreaSize>

<XPValueAttack>3</XPValueAttack>

<XPValueDefense>3</XPValueDefense>

<UnitArtInfo>ART_DEF_UNIT_BATTLESHIP</UnitArtInfo>

<UnitFlagIconOffset>68</UnitFlagIconOffset>

<IconAtlas>UNIT_ATLAS_2</IconAtlas>

<PortraitIndex>21</PortraitIndex>

<MoveRate>BOAT</MoveRate>

</Row>
<Row>
<Class>UNITCLASS_CRUISER</Class>
<Type>UNIT_CRUISER</Type>
<PrereqTech>TECH_RADIO</PrereqTech>
<Combat>65</Combat>
<RangedCombat>75</RangedCombat>
<Cost>390</Cost>
<Moves>6</Moves>
<Range>2</Range>
<AirInterceptRange>2</AirInterceptRange>
<HurryCostModifier>20</HurryCostModifier>
<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>
<Domain>DOMAIN_SEA</Domain>
<DefaultUnitAI>UNITAI_ATTACK_SEA</DefaultUnitAI>
<Description>TXT_KEY_UNIT_CRUISER</Description>
<Civilopedia>TXT_KEY_UNIT_CRUISER_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_CRUISER_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_CRUISER_HELP</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<Mechanized>true</Mechanized>
<ObsoleteTech>TECH_ROBOTICS</ObsoleteTech>
<AdvancedStartCost>60</AdvancedStartCost>
<MinAreaSize>20</MinAreaSize>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_DESTROYER</UnitArtInfo>
<UnitFlagIconOffset>80</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>33</PortraitIndex>
<MoveRate>BOAT</MoveRate>
</Row>
</Units>

</GameData>


Unit Classes.xml

Spoiler :

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 3/7/2016 7:36:13 PM -->
<GameData>
<UnitClasses>
<Row>
<Type>UNITCLASS_ARMORED_CRUISER</Type>
<Description>TXT_KEY_ARMORED_CRUISER</Description>
<DefaultUnit>UNIT_ARMORED_CRUISER</DefaultUnit>
</Row>
<Row>
<Type>UNITCLASS_CUTTER</Type>
<Description>TXT_KEY_UNIT_CUTTER</Description>
<DefaultUnit>UNIT_CUTTER</DefaultUnit>
</Row>
<Row>
<Type>UNITCLASS_GALLEON</Type>
<Description>TXT_KEY_UNIT_GALLEON</Description>
<DefaultUnit>UNIT_GALLEON</DefaultUnit>
</Row>
<Row>
<Type>UNITCLASS_CARRACK</Type>
<Description>TXT_KEY_UNIT_CARRACK</Description>
<DefaultUnit>UNIT_CARRACK</DefaultUnit>
</Row>
<Row>
<Type>UNITCLASS_CLIPPER</Type>
<Description>TXT_KEY_UNIT_CLIPPER</Description>
<DefaultUnit>UNIT_CLIPPER</DefaultUnit>
</Row>
<Row>
<Type>UNITCLASS_CORVETTE</Type>
<Description>TXT_KEY_UNIT_CORVETTE</Description>
<DefaultUnit>UNIT_CORVETTE</DefaultUnit>
</Row>
<Row>
<Type>UNITCLASS_DREADNOUGHT</Type>
<Description>TXT_KEY_UNIT_DREADNOUGHT</Description>
<DefaultUnit>UNIT_DREADNOUGHT</DefaultUnit>
</Row>
<Row>
<Type>UNITCLASS_PRE-DREADNOUGHT_BATTLESHIP</Type>
<Description>TXT_KEY_UNIT_PRE-DREADNOUGHT_BATTLESHIP</Description>
<DefaultUnit>UNIT_PRE-DREADNOUGHT_BATTLESHIP</DefaultUnit>
</Row>
<Row>
<Type>UNITCLASS_CRUISER</Type>
<Description>TXT_KEY_UNIT_CRUISER</Description>
<DefaultUnit>UNIT_CRUISER</DefaultUnit>
</Row>
<Row>
<Type>UNITCLASS_PROTECTED_CRUISER</Type>
<Description>TXT_KEY_UNIT_PROTECTED_CRUISER</Description>
<DefaultUnit>UNIT_PROTECTED_CRUISER</DefaultUnit>
</Row>
<Row>
<Type>UNITCLASS_MODERN_FRIGATE</Type>
<Description>TXT_KEY_UNIT_MODERN_FRIGATE</Description>
<DefaultUnit>UNIT_MODERN_FRIGATE</DefaultUnit>
</Row>
</UnitClasses>
</GameData>
 
Unit AI.xml

Spoiler :

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 3/7/2016 7:32:55 PM -->
<GameData>
<Unit_AITypes>
<Row>
<UnitType>UNIT_CRUISER</UnitType>
<UnitAIType>UNITAI_ATTACK_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CRUISER</UnitType>
<UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CRUISER</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CRUISER</UnitType>
<UnitAIType>UNITAI_EXPLORE_SEA</UnitAIType>
</Row>


-<Row>

<UnitType>UNIT_ARMORED_FRIGATE</UnitType>

<UnitAIType>UNITAI_ATTACK_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_ARMORED_FRIGATE</UnitType>
<UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_ARMORED_FRIGATE</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>

-<Row>

<UnitType>UNIT_CUTTER</UnitType>

<UnitAIType>UNITAI_ATTACK_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CUTTER</UnitType>
<UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CUTTER</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CUTTER</UnitType>
<UnitAIType>UNITAI_EXPLORE_SEA</UnitAIType>
</Row>


-<Row>

<UnitType>UNIT_MODERN_FRIGATE</UnitType>

<UnitAIType>UNITAI_ATTACK_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_MODERN_FRIGATE</UnitType>
<UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_MODERN_FRIGATE</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_MODERN_FRIGATE</UnitType>
<UnitAIType>UNITAI_EXPLORE_SEA</UnitAIType>
</Row>

-<Row>

<UnitType>UNIT_GALLEON</UnitType>

<UnitAIType>UNITAI_ATTACK_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_GALLEON</UnitType>
<UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_GALLEON</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>

-<Row>

<UnitType>UNIT_CARRACK</UnitType>

<UnitAIType>UNITAI_ATTACK_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CARRACK</UnitType>
<UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CARRACK</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CARRACK</UnitType>
<UnitAIType>UNITAI_EXPLORE_SEA</UnitAIType>
</Row>


-<Row>

<UnitType>UNIT_CLIPPER</UnitType>

<UnitAIType>UNITAI_ATTACK_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CLIPPER</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CLIPPER</UnitType>
<UnitAIType>UNITAI_EXPLORE_SEA</UnitAIType>
</Row>


-<Row>

<UnitType>UNIT_CORVETTE</UnitType>

<UnitAIType>UNITAI_ATTACK_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CORVETTE</UnitType>
<UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_CORVETTE</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>

-<Row>

<UnitType>UNIT_DREADNOUGHT</UnitType>

<UnitAIType>UNITAI_ATTACK_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_DREADNOUGHT</UnitType>
<UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_DREADNOUGHT</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>

-<Row>

<UnitType>UNIT_PRE-DREADNOUGHT_BATTLESHIP</UnitType>

<UnitAIType>UNITAI_ATTACK_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_PRE-DREADNOUGHT_BATTLESHIP</UnitType>
<UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_PRE-DREADNOUGHT_BATTLESHIP</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>

</Unit_AITypes>

</GameData>


Unit Flavors.xml

Spoiler :

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 3/7/2016 7:34:24 PM -->
<GameData>
<Unit_Flavors>
<Row>
<UnitType>UNIT_ARMORED_FRIGATE</UnitType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_ARMORED_FRIGATE</UnitType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>6</Flavor>
</Row>

<Row>
<UnitType>UNIT_CUTTER</UnitType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_CUTTER</UnitType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>6</Flavor>
</Row>

<Row>
<UnitType>UNIT_GALLEON</UnitType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_GALLEON</UnitType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>6</Flavor>
</Row>

<Row>
<UnitType>UNIT_CARRACK</UnitType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_CARRACK</UnitType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>6</Flavor>
</Row>

<Row>
<UnitType>UNIT_CLIPPER</UnitType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_CLIPPER</UnitType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>6</Flavor>
</Row>

<Row>
<UnitType>UNIT_PROTECTED_CRUISER</UnitType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_PROTECTED_CRUISER</UnitType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>6</Flavor>
</Row>

<Row>
<UnitType>UNIT_PRE-DREADNOUGHT_BATTLESHIP</UnitType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_PRE-DREADNOUGHT_BATTLESHIP</UnitType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>6</Flavor>
</Row>

<Row>
<UnitType>UNIT_CORVETTE</UnitType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_CORVETTE</UnitType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>6</Flavor>
</Row>

<Row>
<UnitType>UNIT_DREADNOUGHT</UnitType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_DREADNOUGHT</UnitType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>6</Flavor>
</Row>


</Unit_Flavors>
</GameData>


Unit Class Upgrades.xml

Spoiler :

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 3/7/2016 7:33:43 PM -->
<GameData>
-<Unit_ClassUpgrades>


-<Row>

<UnitType>UNIT_FRIGATE</UnitType>

<UnitClassType>UNITCLASS_PROTECTED_CRUISER</UnitClassType>

</Row>

-<Row>

<UnitType>UNIT_CARAVEL</UnitType>

<UnitClassType>UNITCLASS_ARMORED_FRIGATE</UnitClassType>

</Row>

-<Row>

<UnitType>UNIT_CUTTER</UnitType>

<UnitClassType>UNITCLASS_ARMORED_FRIGATE</UnitClassType>

</Row>

-<Row>

<UnitType>UNIT_GALLEON</UnitType>

<UnitClassType>UNITCLASS_PROTECTED_CRUISER</UnitClassType>

</Row>

-<Row>

<UnitType>UNIT_CARRACK</UnitType>

<UnitClassType>UNITCLASS_ARMORED_FRIGATE</UnitClassType>

</Row>

-<Row>

<UnitType>UNIT_CLIPPER</UnitType>

<UnitClassType>UNITCLASS_ARMORED_FRIGATE</UnitClassType>

</Row>

-<Row>

<UnitType>UNIT_ENGLISH_SHIPOFTHELINE</UnitType>

<UnitClassType>UNITCLASS_PROTECTED_CRUISER</UnitClassType>

</Row>

-<Row>

<UnitType>UNIT_ARMORED_FRIGATE</UnitType>

<UnitClassType>UNITCLASS_CORVETTE</UnitClassType>

</Row>

-<Row>

<UnitType>UNIT_PROTECTED_CRUISER</UnitType>

<UnitClassType>UNITCLASS_CRUISER</UnitClassType>

</Row>

-<Row>

<UnitType>UNIT_PRE-DREADNOUGHT_BATTLESHIP</UnitType>

<UnitClassType>UNITCLASS_DREADNOUGHT</UnitClassType>

</Row>

-<Row>

<UnitType>UNIT_DREADNOUGHT</UnitType>

<UnitClassType>UNITCLASS_BATTLESHIP</UnitClassType>

</Row>

-<Row>

<UnitType>UNIT_CORVETTE</UnitType>

<UnitClassType>UNITCLASS_MODERN_FRIGATE</UnitClassType>

</Row>


</Unit_ClassUpgrades>
</GameData>


Unit Free Promotions.xml

Spoiler :

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 3/7/2016 7:35:10 PM -->
<GameData>
-<Unit_FreePromotions>


-<Row>

<UnitType>UNIT_CUTTER</UnitType>

<PromotionType>PROMOTION_COASTAL_RAIDER_1</PromotionType>

</Row>


-<Row>

<UnitType>UNIT_CUTTER</UnitType>

<PromotionType>PROMOTION_PRIZE_SHIPS</PromotionType>




-<Row>

<UnitType>UNIT_CUTTER</UnitType>

<PromotionType>PROMOTION_OCEAN_IMPASSABLE</PromotionType>

</Row>


<UnitType>UNIT_CRUISER</UnitType>

<PromotionType>PROMOTION_ONLY_DEFENSIVE</PromotionType>

</Row>

<Row>

<UnitType>UNIT_CRUISER</UnitType>

<PromotionType>PROMOTION_INDIRECT_FIRE</PromotionType>

</Row>


-<Row>

<UnitType>UNIT_CRUISER</UnitType>

<PromotionType>PROMOTION_INTERCEPTION_II</PromotionType>

</Row>

-<Row>

<UnitType>UNIT_CRUISER</UnitType>

<PromotionType>PROMOTION_SEE_INVISIBLE_SUBMARINE</PromotionType>

</Row>

-<Row>

<UnitType>UNIT_MODERN_FRIGATE</UnitType>

<PromotionType>PROMOTION_INTERCEPTION_II</PromotionType>

</Row>

-<Row>

<UnitType>UNIT_MODERN_FRIGATE</UnitType>

<PromotionType>PROMOTION_SEE_INVISIBLE_SUBMARINE</PromotionType>

</Row>


-<Row>

<UnitType>UNIT_DREADNOUGHT</UnitType>

<PromotionType>PROMOTION_INDIRECT_FIRE</PromotionType>

</Row>


-<Row>

<UnitType>UNIT_DREADNOUGHT</UnitType>

<PromotionType>PROMOTION_ONLY_DEFENSIVE</PromotionType>

</Row>

-<Row>

<UnitType>UNIT_PRE-DREADNOUGHT_BATTLESHIP</UnitType>

<PromotionType>PROMOTION_INDIRECT_FIRE</PromotionType>

</Row>


-<Row>

<UnitType>UNIT_PRE-DREADNOUGHT_BATTLESHIP</UnitType>

<PromotionType>PROMOTION_ONLY_DEFENSIVE</PromotionType>

</Row>

-<Row>

<UnitType>UNIT_PROTECTED_CRUISER</UnitType>

<PromotionType>PROMOTION_INDIRECT_FIRE</PromotionType>

</Row>


-<Row>

<UnitType>UNIT_PROTECTED_CRUISER</UnitType>

<PromotionType>PROMOTION_ONLY_DEFENSIVE</PromotionType>

</Row>

-<Row>

<UnitType>UNIT_CORVETTE</UnitType>

<PromotionType>PROMOTION_SEE_INVISIBLE_SUBMARINE</PromotionType>

</Row>

</Unit_FreePromotions>
</GameData>


Text.xml

Spoiler :

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 3/7/2016 10:34:16 AM -->
<GameData>
<Language_en_US>

-<Row Tag="TXT_KEY_UNIT_CRUISER">

<Text>Cruiser</Text>

</Row>


-<Row Tag="TXT_KEY_UNIT_HELP_CRUISER">

<Text>A versatile ship capable of any duty. Larger then a destroyer, smaller then a battleship, it is a good blend of speed and power.</Text>

</Row>


-<Row Tag="TXT_KEY_CIV5_INDUSTRIAL_CRUISER_TEXT">

<Text> A cruiser is a type of warship. The term has been in use for several hundred years, and has had different meanings throughout this period. During the Age of Sail, the term cruising referred to certain kinds of missions – independent scouting, raiding or commerce protection – fulfilled by a frigate or sloop, which were the cruising warships of a fleet. From the middle of the 19th century, cruiser came to be a classification for the ships intended for this kind of role, though cruisers came in a wide variety of sizes, from the small protected cruiser to armored cruisers which were as large (though not as powerful) as a battleship. By the early 20th century, cruisers could be placed on a consistent scale of warship size, smaller than a battleship but larger than a destroyer. In 1922, the Washington Naval Treaty placed a formal limit on cruisers, which were defined as warships of up to 10,000 tons displacement carrying guns no larger than 8 inches in calibre. These limits shaped cruisers up until the end of World War II. The very large battlecruisers of the World War I era were now classified, along with battleships, as capital ships. </Text>

</Row>


-<Row Tag="TXT_KEY_UNIT_CRUISER_STRATEGY">

<Text>Cruisers are cheaper to produce then battleships, faster as well, which makes them a great support to any fleet action.</Text>

</Row>


<Row Tag="TXT_KEY_UNIT_CUTTER">
<Text>Cutter</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_CUTTER_HELP">
<Text>This fast and agile ship was used for patrolling coasts. Due to it's lightweight materials it can not enter deep waters.</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_CUTTER_STRATEGY">
<Text>The Cutter is useful for patrolling your coastal cities. Protecting them along with your fishing boats and cargo ships. </Text>
</Row>
<Row Tag="TXT_KEY_UNIT_CUTTER_TEXT">
<Text>Cutters were widely used by several navies in the 17th and 18th centuries and were usually the smallest commissioned ships in the fleet. As with cutters in general they were distinguished by their large fore-aft sail plans with multiple headsails, usually carried on a very long bowsprit, which was sometimes as long as half the length of the boat's hull. The rig gave the cutter excellent maneuverability and they were much better at sailing to windward than a larger square rigged ship. Larger naval cutters often had the ability to hoist two or three square-rigged sails from their mast to improve their downwind sailing performance as well. Navies used cutters for coastal patrol, customs duties, escort, carrying personnel and dispatches and for small 'cutting out' raids. As befitted their size and intended role naval cutters were lightly armed, often with between six and twelve small cannon (or carronades in the Royal Navy). In the rating system of the Royal Navy 'cutter' was the lowest classification, coming below the sloop-of-war as an 'unrated' vessel. Whilst the classification included true sailing cutters the rating was given to any ship of suitable size and/or importance. Under the system a 'cutter' was commanded by a lieutenant who would be the only commissioned officer on board. HMS Bounty was classed as a cutter under the command of Lieutenant William Bligh despite being a true ship with three square rigged masts. </Text>
</Row>

<Row Tag="TXT_KEY_UNIT_GALLEON">
<Text>Galleon</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_GALLEON_HELP">
<Text>The mainstay of all fleets, this ship is stronger and more powerful than a Frigate.</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_GALLEON_STRATEGY">
<Text>Galleons are hardier vessels with far more cannons then a Frigate or Carrack. Very useful for mounting real naval assaults on coastal cities, firing on coastal units or just plain controlling the sea.</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_GALLEON_TEXT">
<Text>The galleon was an ocean going ship type which evolved from the carrack in the second half of 16th century. A lowering of the forecastle and elongation of the hull gave galleons an unprecedented level of stability in the water, and reduced wind resistance at the front, leading to a faster, more maneuverable vessel. The galleon differed from the older types primarily by being longer, lower and narrower, with a square tuck stern instead of a round tuck, and by having a snout or head projecting forward from the bows below the level of the forecastle. In Portugal at least, carracks were usually very large ships for their time (often over 1000 tons), while galleons were mostly under 500 tons, although the Manila galleons were to reach up to 2000 tons. With the introduction of the galleon in Portuguese India Armadas during the first quarter of the 16th century, carracks gradually began to be less armed and became almost exclusively cargo ships (which is why the Portuguese Carracks were pushed to such large sizes), leaving any fighting to be done to the galleons. One of the largest and most famous of Portuguese galleons was the São João Baptista (nicknamed Botafogo, 'spitfire'), a 1,000-ton galleon built in 1534, said to have carried 366 guns. Carracks also tended to be lightly armed and used for transporting cargo in all the fleets of other Western European states, while galleons were purpose-built warships, and were stronger, more heavily armed, and also cheaper to build (5 galleons could cost around the same as 3 carracks) and were therefore a much better investment for use as warships or transports. There are disputes about its origins and development but each Atlantic sea power built types suited to its needs, while constantly learning from their rivals. It was the captains of the Spanish navy Pedro Menéndez de Avilés and Álvaro de Bazán who designed the definitive long and relatively narrow hulled galleon in the 1550s. The galleon was powered entirely by wind, using sails carried on three or four masts, with a lateen sail continuing to be used on the last (usually third and fourth) masts. They were used in both military and trade applications, most famously in the Spanish treasure fleet, and the Manila Galleons. While carracks played the leading role in early global explorations, galleons also played a part in the 16th and 17th centuries. In fact, galleons were so versatile that a single vessel may have been refitted for wartime and peacetime roles several times during its lifespan. The galleon was the prototype of all square rigged ships with three or more masts for over two and a half centuries, including the later full rigged ship. The principal warships of the opposing English and Spanish fleets in the 1588 confrontation of the Spanish Armada were galleons, with the modified English "race built" galleons developed by John Hawkins proving decisive, while the capacious Spanish galleons, designed primarily as transports, showed great endurance in the battles and in the great storms on the voyage home; most survived the ordeal. </Text>
</Row>


-<Row Tag="TXT_KEY_UNIT_CARRACK">

<Text>Carrack</Text>

</Row>


-<Row Tag="TXT_KEY_UNIT_HELP_CARRACK">

<Text>The forerunner of all the great ships of the age of sail. Easily produced ship designed for ranged combat.</Text>

</Row>


-<Row Tag="TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_CARRACK_TEXT">

<Text> A carrack or nau was a three- or four-masted sailing ship developed in the 15th century by the Portuguese for use in the Atlantic Ocean and became widely used by Europe's maritime powers. It had a high rounded stern with large aftcastle, forecastle and bowsprit at the stem. It was first used by the Portuguese, and later by the Spanish, to explore and map the world. It was usually square-rigged on the foremast and mainmast and lateen-rigged on the mizzenmast. Carracks were ocean-going ships: large enough to be stable in heavy seas, and roomy enough to carry provisions for long voyages. They were the ships in which the Portuguese and the Spanish explored the world in the 15th and 16th centuries. In Portuguese this type was called a nau, while in Spanish it is called a carraca or nao. In French it was called a caraque or nef. As the forerunner of the great ships of the age of sail, the carrack was one of the most influential ship designs in history; while ships became more specialized, the basic design remained unchanged throughout the Age of Sail. </Text>

</Row>


-<Row Tag="TXT_KEY_UNIT_CARRACK_STRATEGY">

<Text>Carracks are the first naval ranged vessel. Providing much needed fire support versus pirates and other enemies.</Text>

</Row>

-<Row Tag="TXT_KEY_UNIT_CLIPPER">

<Text>Clipper</Text>

</Row>


-<Row Tag="TXT_KEY_UNIT_HELP_CLIPPER">

<Text>A very fast ship designed for trading and exploration.</Text>

</Row>


-<Row Tag="TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_CLIPPER_TEXT">

<Text> A clipper was a very fast sailing ship of the 19th century that had three or more masts and a square rig. They were generally narrow for their length, could carry limited bulk freight, small by later 19th century standards, and had a large total sail area. Clipper ships were mostly constructed in British and American shipyards, though France, the Netherlands and other nations also produced some. Clippers sailed all over the world, primarily on the trade routes between the United Kingdom and its colonies in the east, in trans-Atlantic trade, and the New York-to-San Francisco route round Cape Horn during the California Gold Rush. Dutch clippers were built beginning in 1850s for the tea trade and passenger service to Java. The boom years of the Clipper Ship Era began in 1843 as a result of the growing demand for a more rapid delivery of tea from China. It continued under the stimulating influence of the discovery of gold in California and Australia in 1848 and 1851, and ended with the opening of the Suez Canal in 1869. </Text>

</Row>


-<Row Tag="TXT_KEY_UNIT_CLIPPER_STRATEGY">

<Text>Clipper ships make excellent naval exploration vessels as well as having the ability to perform trade missions with City-States</Text>

</Row>


-<Row Tag="TXT_KEY_UNIT_DREADNOUGHT">

<Text>Dreadnought</Text>

</Row>


-<Row Tag="TXT_KEY_CIV5_INDUSTRIAL_DREADNOUGHT_TEXT">

<Text>The dreadnought was the predominant type of battleship in the early 20th century. The first of the kind, the Royal Navy's Dreadnought, had such an impact when launched in 1906 that similar battleships built after her were referred to as "dreadnoughts," and earlier battleships became known as pre-dreadnoughts. Her design had two revolutionary features: an "all-big-gun" armament scheme, with an unprecedented number of heavy-calibre guns, and steam turbine propulsion</Text>

</Row>


-<Row Tag="TXT_KEY_UNIT_DREADNOUGHT_STRATEGY">

<Text>Ideal for breaking down enemy defenses from far away, while still capable of handling large amounts of damage.</Text>

</Row>


-<Row Tag="TXT_KEY_UNIT_HELP_DREADNOUGHT">

<Text>Dreadnoughts are expensive but powerful ships with longer gunnery range then standard battleships</Text>

</Row>


<Row Tag="TXT_KEY_UNIT_ARMORED_FRIGATE">
<Text>Armored Frigate</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_ARMORED_FRIGATE_HELP">
<Text>TBC...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_ARMORED_FRIGATE_STRATEGY">
<Text>TBC...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_ARMORED_FRIGATE_TEXT">
<Text>TBC...</Text>
</Row>

<Row Tag="TXT_KEY_UNIT_CORVETTE">
<Text>Corvette</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_CORVETTE_HELP">
<Text>TBC...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_CORVETTE_STRATEGY">
<Text>TBC...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_CORVETTE_TEXT">
<Text>TBC...</Text>
</Row>

<Row Tag="TXT_KEY_UNIT_PRE-DREADNOUGHT_BATTLESHIP">
<Text>Pre-Dreadnought Battleship</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_PRE-DREADNOUGHT_BATTLESHIP_HELP">
<Text>TBC...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_PRE-DREADNOUGHT_BATTLESHIP_STRATEGY">
<Text>TBC...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_PRE-DREADNOUGHT_BATTLESHIP_TEXT">
<Text>TBC...</Text>
</Row>

<Row Tag="TXT_KEY_UNIT_PROTECTED_CRUISER">
<Text>Protected Cruiser</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_PROTECTED_CRUISER_HELP">
<Text>TBC...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_PROTECTED_CRUISER_STRATEGY">
<Text>TBC...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_PROTECTED_CRUISER_TEXT">
<Text>TBC...</Text>
</Row>


<Row Tag="TXT_KEY_UNIT_MODERN_FRIGATE">
<Text>Modern Frigate</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_MODERN_FRIGATE_HELP">
<Text>TBC...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_MODERN_FRIGATE_STRATEGY">
<Text>TBC...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_MODERN_FRIGATE_TEXT">
<Text>TBC...</Text>
</Row>

</Language_en_US>
</GameData>
 
You have multiple repeats of <Type> for designations the game already has. Here is the first I spotted:
Code:
<Class>UNITCLASS_FRIGATE</Class>
<Type>[COLOR="Red"]UNIT_FRIGATE[/COLOR]</Type>
<PrereqTech>TECH_NAVIGATION</PrereqTech>
The game does not allow you to re-state a designation of <Type> that it already has, and discards the entire contents of any XML-file in a mod where this occurs. Since the base game already has a <Type> of unit called UNIT_FRIGATE you can not repeat that within your mod.

While there are a few special-case exceptions, you need to operate under the rule that you can not repeat any designation of <Type> in any table that has <Type>. This means all the designations for <Type> within that table from the base game, its expansions, any DLC content, and the content of any mod that is active and which loads before your mod loads into the game cannot be repeated.

The no repeats rule also applies to any use of
Code:
<Row Tag="TXT_KEY_SOMETHING" >
within the <Language_en_US> table or the language-tables for other user-languages.

---------------------------------------------------------------------------------------------

Also, as a general rule, post the mod itself as an attachment (whoward69's zip your mods and attach tutorial), or provide a link to where it can be downloaded. edit -- which I see you did while I was making my response.
 
Ok, the first thing to understand is that any error in an XML file will cause that entire file to be rejected, including any correct code it contains.

If you enable logging, you should see an error message at the bottom of your database.log, telling you what problem exactly is causing your mod's xml file to be rejected, which will be very helpful.

From glancing at your code so far, it seems you're trying to create new rows for UNIT_FRIGATE, UNIT_ENGLISH_SHIPOFTHELINE and UNIT_CARAVEL, but since rows already exist in the vanilla game with those values for Type, that will cause an error. If you want to change the existing units you'll need to use an Update statement instead of a Row statement, and if you want to create new units in addition to the existing ones, you'll need to give them unique values for Type.
 
Thank you for the quick reply. How would I change the stats for the Frigate without repeating <Type>?

Ok, the first thing to understand is that any error in an XML file will cause that entire file to be rejected, including any correct code it contains.

If you enable logging, you should see an error message at the bottom of your database.log, telling you what problem exactly is causing your mod's xml file to be rejected, which will be very helpful.

From glancing at your code so far, it seems you're trying to create new rows for UNIT_FRIGATE, UNIT_ENGLISH_SHIPOFTHELINE and UNIT_CARAVEL, but since rows already exist in the vanilla game with those values for Type, that will cause an error. If you want to change the existing units you'll need to use an Update statement instead of a Row statement, and if you want to create new units in addition to the existing ones, you'll need to give them unique values for Type.
As HandyVac, says, you can do an <Update> to existing data within the game. So, if I want to change the Frigate to have a Range of 3 instead of the usual 2, I can make an <Update> to table <Units> like this
Code:
<GameData>
	<Units>
		<Update>
			<Where Type="UNIT_FRIGATE" />
			<Set Range="3" />
		</Update>
	</Units>
</GameData>
Or I can place the code for the update right where you had the <Row> where the Frigate info was 'repeated'
Spoiler :
Code:
........snipped out lines

			<Row>
				<Class>UNITCLASS_PROTECTED_CRUISER</Class>
				<Type>UNIT_PROTECTED_CRUISER</Type>
				<PrereqTech>TECH_DYNAMITE</PrereqTech>
				<Combat>45</Combat>
				<RangedCombat>45</RangedCombat>
				<Cost>240</Cost>
				<Moves>4</Moves>
				<Range>2</Range>
				<CombatClass>UNITCOMBAT_NAVALRANGED</CombatClass>
				<Domain>DOMAIN_SEA</Domain>
				<DefaultUnitAI>UNITAI_ATTACK_SEA</DefaultUnitAI>
				<Description>TXT_KEY_UNIT_PROTECTED_CRUISER</Description>
				<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_PROTECTED_CRUISER_TEXT</Civilopedia>
				<Strategy>TXT_KEY_UNIT_PROTECTED_CRUISER_STRATEGY</Strategy>
				<Help>TXT_KEY_UNIT_HELP_PROTECTED_CRUISER</Help>
				<MilitarySupport>true</MilitarySupport>
				<MilitaryProduction>true</MilitaryProduction>
				<Pillage>true</Pillage>
				<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
				<ObsoleteTech>TECH_COMBUSTION</ObsoleteTech>
				<Mechanized>true</Mechanized>
				<AdvancedStartCost>50</AdvancedStartCost>
				<MinAreaSize>10</MinAreaSize>
				<XPValueAttack>3</XPValueAttack>
				<XPValueDefense>3</XPValueDefense>
				<UnitArtInfo>ART_DEF_UNIT_IRONCLAD</UnitArtInfo>
				<UnitFlagIconOffset>53</UnitFlagIconOffset>
				<IconAtlas>UNIT_ATLAS_2</IconAtlas>
				<PortraitIndex>10</PortraitIndex>
				<MoveRate>BOAT</MoveRate>
			</Row>
			<Update>
				<Where Type="UNIT_FRIGATE" />
				<Set Range="3" />
			</Update>
			<Row>
				<Class>UNITCLASS_FRIGATE</Class>
				<Type>UNIT_ENGLISH_SHIPOFTHELINE</Type>
				<PrereqTech>TECH_NAVIGATION</PrereqTech>
				<Combat>40</Combat>
				<RangedCombat>40</RangedCombat>


			....... snipped out lines .........
Although as HandyVac mentioned, there is still another repeat there with the UNIT_ENGLISH_SHIPOFTHELINE so you would want to use another update instead of row to change its info
You can change multiple bits of information for the same <Row> within a given table at the same time, as in
Code:
<GameData>
	<Units>
		<Update>
			<Where Type="UNIT_FRIGATE" />
			<Set Moves="5" Range="3" />
		</Update>
	</Units>
</GameData>
I think if you look at some of your other files, there are other places where you are using a new <Row> where what you really want is an <Update> to change the info already existing within that specific game-table. I'm pretty sure this applies to the Unit-Upgrade you have for the Caravel.
 
Back
Top Bottom