Lucas Matias
Chieftain
- Joined
- Apr 5, 2018
- Messages
- 1
Hello, I'm creating a mod myself, and trying to add some new units. (Units that I've taken from others mods).
That's the problem in the image below, the units are upside down.
That's my unit code below.
[/QUOTE]
That's the problem in the image below, the units are upside down.

That's my unit code below.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<GameData>
<UnitClasses>
<Row>
<Type>UNITCLASS_ARKROYAL888</Type>
<Description>Ark Royal Carrier</Description>
<DefaultUnit>NONE</DefaultUnit>
</Row>
</UnitClasses>
<Units>
<Row>
<Type>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</Type>
<Description>TXT_KEY_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</Description>
<CombatClass>UNITCOMBAT_CARRIER</CombatClass>
<Domain>DOMAIN_SEA</Domain>
<Class>UNITCLASS_ARKROYAL888</Class>
<Cost>350</Cost>
<AdvancedStartCost>55</AdvancedStartCost>
<Combat>37</Combat>
<Moves>5</Moves>
<SpecialCargo>SPECIALUNIT_FIGHTER</SpecialCargo>
<Strategy>TXT_KEY_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_HELP</Help>
<Civilopedia>TXT_KEY_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_PEDIA</Civilopedia>
<PrereqTech>TECH_REPLACEABLE_PARTS</PrereqTech>
<ObsoleteTech>TECH_ROBOTICS</ObsoleteTech>
<MoveRate>BOAT</MoveRate>
<Mechanized>true</Mechanized>
<UnitArtInfo>ART_DEF_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitArtInfo>
<IconAtlas>ATLAS_ICON_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</IconAtlas>
<PortraitIndex>0</PortraitIndex>
<UnitFlagAtlas>UNIT_FLAG_ATLAS</UnitFlagAtlas>
<UnitFlagIconOffset>70</UnitFlagIconOffset>
<CombatLimit>100</CombatLimit>
<DomainCargo>DOMAIN_AIR</DomainCargo>
<MilitaryProduction>true</MilitaryProduction>
<MilitarySupport>true</MilitarySupport>
<DefaultUnitAI>UNITAI_CARRIER_SEA</DefaultUnitAI>
</Row>
</Units>
<Unit_AITypes>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<UnitAIType>UNITAI_CARRIER_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<UnitAIType>UNITAI_EXPLORE</UnitAIType>
</Row>
</Unit_AITypes>
<Unit_Flavors>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<FlavorType>FLAVOR_AIR_CARRIER</FlavorType>
<Flavor>36</Flavor>
</Row>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<FlavorType>FLAVOR_RECON</FlavorType>
<Flavor>4</Flavor>
</Row>
</Unit_Flavors>
<Civilization_UnitClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_ENGLAND</CivilizationType>
<UnitClassType>UNITCLASS_ARKROYAL888</UnitClassType>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
</Row>
</Civilization_UnitClassOverrides>
<Unit_ClassUpgrades>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<UnitClassType>UNITCLASS_MODERNCARRIER</UnitClassType>
</Row>
</Unit_ClassUpgrades>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<PromotionType>PROMOTION_CARGO_II</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<PromotionType>PROMOTION_EXTRA_SIGHT_I</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<PromotionType>PROMOTION_EXTRA_SIGHT_II</PromotionType>
</Row>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<PromotionType>PROMOTION_ONLY_DEFENSIVE</PromotionType>
</Row>
</Unit_FreePromotions>
<Unit_ResourceQuantityRequirements>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<ResourceType>RESOURCE_COAL</ResourceType>
</Row>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<ResourceType>RESOURCE_IRON</ResourceType>
</Row>
</Unit_ResourceQuantityRequirements>
<ArtDefine_UnitInfos>
<Row>
<Type>ART_DEF_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</Type>
<DamageStates>1</DamageStates>
</Row>
</ArtDefine_UnitInfos>
<ArtDefine_UnitInfoMemberInfos>
<Row>
<UnitInfoType>ART_DEF_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitInfoType>
<UnitMemberInfoType>ART_DEF_UNIT_MEMBER_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitMemberInfoType>
<NumMembers>1</NumMembers>
</Row>
</ArtDefine_UnitInfoMemberInfos>
<ArtDefine_UnitMemberInfos>
<Row>
<Type>ART_DEF_UNIT_MEMBER_ARK_ROYAL_AIRCRAFT_CARRIER888</Type>
<Scale>0.1</Scale>
<Domain>Sea</Domain>
<Model>SURFACE/CARRIERS/ART/Ark_Royal_Class.fxsxml</Model>
<MaterialTypeTag>METAL</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>METALLRG</MaterialTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberInfos>
<ArtDefine_UnitMemberCombats>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitMemberType>
<EnableActions>Idle Attack RunCharge AttackCity Bombard Death BombardDefend Run Fortify CombatReady AttackSurfaceToAir</EnableActions>
<HasShortRangedAttack>1</HasShortRangedAttack>
<HasLeftRightAttack>1</HasLeftRightAttack>
<HasRefaceAfterCombat>0</HasRefaceAfterCombat>
<HasIndependentWeaponFacing>1</HasIndependentWeaponFacing>
</Row>
</ArtDefine_UnitMemberCombats>
<ArtDefine_UnitMemberCombatWeapons>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitMemberType>
<Index>0</Index>
<SubIndex>0</SubIndex>
<VisKillStrengthMin>25.0</VisKillStrengthMin>
<VisKillStrengthMax>50.0</VisKillStrengthMax>
<HitEffect>ART_DEF_VEFFECT_ARTILLERY_IMPACT_$(TERRAIN)</HitEffect>
<WeaponTypeTag>EXPLOSIVE</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>EXPLOSION200POUND</WeaponTypeSoundOverrideTag>
</Row>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitMemberType>
<Index>1</Index>
<SubIndex>0</SubIndex>
<VisKillStrengthMin>25.0</VisKillStrengthMin>
<VisKillStrengthMax>50.0</VisKillStrengthMax>
<HitEffect>ART_DEF_VEFFECT_ARTILLERY_IMPACT_$(TERRAIN)</HitEffect>
<WeaponTypeTag>BULLETHC</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>BULLETHC</WeaponTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberCombatWeapons>
<UnitGameplay2DScripts>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<SelectionSound>AS2D_SELECT_BATTLESHIP</SelectionSound>
<FirstSelectionSound>AS2D_BIRTH_BATTLESHIP</FirstSelectionSound>
</Row>
</UnitGameplay2DScripts>
<IconTextureAtlases>
<Row>
<Atlas>ATLAS_ICON_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</Atlas>
<IconSize>256</IconSize>
<Filename>ICON_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_256.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>ATLAS_ICON_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</Atlas>
<IconSize>128</IconSize>
<Filename>ICON_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_128.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>ATLAS_ICON_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</Atlas>
<IconSize>80</IconSize>
<Filename>ICON_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_80.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>ATLAS_ICON_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</Atlas>
<IconSize>64</IconSize>
<Filename>ICON_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_64.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
<Row>
<Atlas>ATLAS_ICON_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</Atlas>
<IconSize>45</IconSize>
<Filename>ICON_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_45.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
</IconTextureAtlases>
<ArtDefine_StrategicView>
<Row>
<StrategicViewType>ART_DEF_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</StrategicViewType>
<TileType>Unit</TileType>
<Asset>sv_carrier.dds</Asset>
</Row>
</ArtDefine_StrategicView>
<Language_en_US>
<Row Tag="TXT_KEY_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888">
<Text>Ark Royal Carrier</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_STRATEGY">
<Text>The Carrier is a specialized vessel which carries fighter airplanes, bombers (but not stealth bombers), and atomic bombs. The Carrier itself is unable to attack, but the aircraft it carries make it the most powerful offensive weapon afloat. Defensively, however, the Carrier is weak and should be escorted by destroyers and submarines.</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_HELP">
<Text>Carries up to 3 Aircraft.</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_PEDIA">
<Text>Designed in 1934 to fit the restrictions of the Washington Naval Treaty, Ark Royal was built by Cammell Laird and Company Ltd. at Birkenhead, England, and completed in November 1938. Her design differed from previous aircraft carriers. Ark Royal was the first ship on which the hangars and flight deck were an integral part of the hull, instead of an add-on or part of the superstructure. Designed to carry a large number of aircraft, she had two hangar deck levels. She served during a period that first saw the extensive use of naval air power; a number of carrier tactics were developed and refined aboard Ark Royal.[NEWLINE]Ark Royal served in some of the most active naval theatres of the Second World War. She was involved in the first aerial and U-boat kills of the war, operations off Norway, the search for the German battleship Bismarck, and the Malta Convoys. Ark Royal survived several near misses and gained a reputation as a 'lucky ship'. The Germans incorrectly reported her as sunk on multiple occasions.[NEWLINE]She was torpedoed on 13 November 1941 by the German submarine U-81 and sank the following day. Her sinking was the subject of several inquiries; investigators were keen to know how the carrier was lost, in spite of efforts to save the ship and tow her to the naval base at Gibraltar. They found that several design flaws contributed to the loss, which were rectified in new British carriers. -- Wikipedia</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_ARK_ROYAL">
<Text>HMS Ark Royal</Text>
</Row>
</Language_en_US>
<Unit_UniqueNames>
<Row>
<UnitType>UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888</UnitType>
<UniqueName>TXT_KEY_UNIT_ARK_ROYAL_AIRCRAFT_CARRIER888_ARK_ROYAL</UniqueName>
</Row>
</Unit_UniqueNames>
</GameData>