Edit-Post #4 has a partial solution!
Hi,
I was wondering how to change the unit capacity of the carrier in civ v to hold more planes and carry different types of units as to avoid embarking land units and enable basing for missiles.
I'm pretty sure I recall in Civ II that the carrier had this functionality and it held up to 12 units (planes and missiles only--land units used transport boats).
Anyway, there is no special value assigned under the carrier row in the units XML file:
(c:\program files\steam\steamapps\common\sid meier's civilization v\assets\gameplay\xml\Units\CIV5Units.xml)
<Row>
<Class>UNITCLASS_CARRIER</Class>
<Type>UNIT_CARRIER</Type>
<PrereqTech>TECH_FLIGHT</PrereqTech>
<Combat>30</Combat>
<Cost>520</Cost>
<Moves>5</Moves>
<CombatClass>UNITCOMBAT_NAVAL</CombatClass>
<Domain>DOMAIN_SEA</Domain>
<DefaultUnitAI>UNITAI_CARRIER_SEA</DefaultUnitAI>
<Description>TXT_KEY_UNIT_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>20</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>
I highlighted in blue the <SpecialCargo> line because I think that's a good starting point as the nuclear submarine row also contains the line:
<SpecialCargo>SPECIALUNIT_MISSILE</SpecialCargo>
What would the format be to combine these two lines under the carrier row? I think that would work. Would it look like this:
<SpecialCargo>SPECIALUNIT_MISSLE_AND_SPECIALUNIT_FIGHTER</SpecialCargo>
?
I just don't know the XML syntax can I combine those like that doing underscoreANDunderscore?
If we can combine those two then that takes care of adding missiles to the carrier but what about land units?
Back to the question of capacity: look at the XML row for the fighter:
<Row>
<Class>UNITCLASS_FIGHTER</Class>
<Type>UNIT_FIGHTER</Type>
<PrereqTech>TECH_FLIGHT</PrereqTech>
<RangedCombat>50</RangedCombat>
<Cost>420</Cost>
<Moves>2</Moves>
<Immobile>true</Immobile>
<Range>8</Range>
<Special>SPECIALUNIT_FIGHTER</Special>
<CombatClass>UNITCOMBAT_FIGHTER</CombatClass>
<Domain>DOMAIN_AIR</Domain>
<DefaultUnitAI>UNITAI_DEFENSE_AIR</DefaultUnitAI>
<Description>TXT_KEY_UNIT_FIGHTER</Description>
<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_FIGHTER_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_FIGHTER_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_FIGHTER</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
<Mechanized>true</Mechanized>
<AdvancedStartCost>50</AdvancedStartCost>
<AirUnitCap>1</AirUnitCap>
<RangedCombatLimit>100</RangedCombatLimit>
<CombatLimit>0</CombatLimit>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>2</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_FIGHTER</UnitArtInfo>
<UnitFlagIconOffset>62</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>17</PortraitIndex>
<MoveRate>AIR_REBASE</MoveRate>
</Row>
Again, I highlighted in blue a line of interest. I'm not sure if this is actually the capacity it takes up or I'm just wishful thinking on a false cognitive (I didn't set it to 0 either to see if I could put unlimited planes on the carrier, but I did look for integer values of 3 on the carrier (its unit capacity), but couldn't find anything associated with the AirUnitCap line.
So at this point I don't know what to do and am open to suggestions, or if the solution is out there please point me in the right direction. I'm hoping that someone has already done this and there is a quick and easy way to accomplish it.
Thanks in advance to those willing to teach.
-Dan
Hi,
I was wondering how to change the unit capacity of the carrier in civ v to hold more planes and carry different types of units as to avoid embarking land units and enable basing for missiles.
I'm pretty sure I recall in Civ II that the carrier had this functionality and it held up to 12 units (planes and missiles only--land units used transport boats).
Anyway, there is no special value assigned under the carrier row in the units XML file:
(c:\program files\steam\steamapps\common\sid meier's civilization v\assets\gameplay\xml\Units\CIV5Units.xml)
<Row>
<Class>UNITCLASS_CARRIER</Class>
<Type>UNIT_CARRIER</Type>
<PrereqTech>TECH_FLIGHT</PrereqTech>
<Combat>30</Combat>
<Cost>520</Cost>
<Moves>5</Moves>
<CombatClass>UNITCOMBAT_NAVAL</CombatClass>
<Domain>DOMAIN_SEA</Domain>
<DefaultUnitAI>UNITAI_CARRIER_SEA</DefaultUnitAI>
<Description>TXT_KEY_UNIT_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>20</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>
I highlighted in blue the <SpecialCargo> line because I think that's a good starting point as the nuclear submarine row also contains the line:
<SpecialCargo>SPECIALUNIT_MISSILE</SpecialCargo>
What would the format be to combine these two lines under the carrier row? I think that would work. Would it look like this:
<SpecialCargo>SPECIALUNIT_MISSLE_AND_SPECIALUNIT_FIGHTER</SpecialCargo>
?
I just don't know the XML syntax can I combine those like that doing underscoreANDunderscore?
If we can combine those two then that takes care of adding missiles to the carrier but what about land units?
Back to the question of capacity: look at the XML row for the fighter:
<Row>
<Class>UNITCLASS_FIGHTER</Class>
<Type>UNIT_FIGHTER</Type>
<PrereqTech>TECH_FLIGHT</PrereqTech>
<RangedCombat>50</RangedCombat>
<Cost>420</Cost>
<Moves>2</Moves>
<Immobile>true</Immobile>
<Range>8</Range>
<Special>SPECIALUNIT_FIGHTER</Special>
<CombatClass>UNITCOMBAT_FIGHTER</CombatClass>
<Domain>DOMAIN_AIR</Domain>
<DefaultUnitAI>UNITAI_DEFENSE_AIR</DefaultUnitAI>
<Description>TXT_KEY_UNIT_FIGHTER</Description>
<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_FIGHTER_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_FIGHTER_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_FIGHTER</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
<Mechanized>true</Mechanized>
<AdvancedStartCost>50</AdvancedStartCost>
<AirUnitCap>1</AirUnitCap>
<RangedCombatLimit>100</RangedCombatLimit>
<CombatLimit>0</CombatLimit>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>2</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_FIGHTER</UnitArtInfo>
<UnitFlagIconOffset>62</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>17</PortraitIndex>
<MoveRate>AIR_REBASE</MoveRate>
</Row>
Again, I highlighted in blue a line of interest. I'm not sure if this is actually the capacity it takes up or I'm just wishful thinking on a false cognitive (I didn't set it to 0 either to see if I could put unlimited planes on the carrier, but I did look for integer values of 3 on the carrier (its unit capacity), but couldn't find anything associated with the AirUnitCap line.
So at this point I don't know what to do and am open to suggestions, or if the solution is out there please point me in the right direction. I'm hoping that someone has already done this and there is a quick and easy way to accomplish it.
Thanks in advance to those willing to teach.
-Dan