Example of XML file for ArtDefines and unit stats based on whoward69' Units - Galleon (GK) v.2
edit: thanks to him, you can now found XML template for all existing units here.
Art defines:
And unit statistics:
Note that whoward69's galleon use specific icons and texts that are defined here while the BIPLAN unit from my SQL example re-use the fighter icons and texts.
edit: thanks to him, you can now found XML template for all existing units here.
Art defines:
Code:
<GameData>
<ArtDefine_UnitInfos>
<Row>
<Type>ART_DEF_UNIT_MOD_GALLEON</Type>
<DamageStates>1</DamageStates>
<Formation>TwoBigGuns</Formation>
</Row>
</ArtDefine_UnitInfos>
<ArtDefine_UnitInfoMemberInfos>
<Row>
<UnitInfoType>ART_DEF_UNIT_MOD_GALLEON</UnitInfoType>
<UnitMemberInfoType>ART_DEF_UNIT_MEMBER_MOD_GALLEON</UnitMemberInfoType>
<NumMembers>1</NumMembers>
</Row>
</ArtDefine_UnitInfoMemberInfos>
<ArtDefine_UnitMemberInfos>
<Row>
<Type>ART_DEF_UNIT_MEMBER_MOD_GALLEON</Type>
<Scale>0.14</Scale>
<Domain>Sea</Domain>
<Model>Assets/Units/Galleon/Galleon.fxsxml</Model>
<MaterialTypeTag>WOOD</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>WOODLRG</MaterialTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberInfos>
<ArtDefine_UnitMemberCombats>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_MOD_GALLEON</UnitMemberType>
<EnableActions>Idle Attack RunCharge AttackCity Bombard Death BombardDefend Run Fortify CombatReady AttackSurfaceToAir</EnableActions>
<DisableActions></DisableActions>
<HasShortRangedAttack>1</HasShortRangedAttack>
<HasLeftRightAttack>1</HasLeftRightAttack>
<HasRefaceAfterCombat>0</HasRefaceAfterCombat>
<HasIndependentWeaponFacing>1</HasIndependentWeaponFacing>
</Row>
</ArtDefine_UnitMemberCombats>
<ArtDefine_UnitMemberCombatWeapons>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_MOD_GALLEON</UnitMemberType>
<Index>0</Index>
<SubIndex>0</SubIndex>
<VisKillStrengthMin>10</VisKillStrengthMin>
<VisKillStrengthMax>20</VisKillStrengthMax>
<HitEffect>ART_DEF_VEFFECT_CANNON_IMPACT_$(TERRAIN)</HitEffect>
<WeaponTypeTag>EXPLOSIVE</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>EXPLOSION6POUND</WeaponTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberCombatWeapons>
<ArtDefine_StrategicView>
<Row>
<StrategicViewType>ART_DEF_UNIT_MOD_GALLEON</StrategicViewType>
<TileType>Unit</TileType>
<Asset>SV_ModGalleon.dds</Asset>
</Row>
</ArtDefine_StrategicView>
</GameData>
And unit statistics:
Code:
<GameData>
<UnitClasses>
<Row>
<Type>UNITCLASS_GALLEON</Type>
<Description>TXT_KEY_UNIT_GALLEON</Description>
<DefaultUnit>UNIT_GALLEON</DefaultUnit>
</Row>
</UnitClasses>
<Units>
<Row>
<Class>UNITCLASS_GALLEON</Class>
<Type>UNIT_GALLEON</Type>
<PrereqTech>TECH_STEAM_POWER</PrereqTech>
<Combat>40</Combat>
<Cost>250</Cost>
<Moves>4</Moves>
<HurryCostModifier>20</HurryCostModifier>
<CombatClass>UNITCOMBAT_NAVALMELEE</CombatClass>
<Domain>DOMAIN_SEA</Domain>
<DefaultUnitAI>UNITAI_ATTACK_SEA</DefaultUnitAI>
<Description>TXT_KEY_UNIT_GALLEON</Description>
<Civilopedia>TXT_KEY_UNIT_GALLEON_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_GALLEON_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_GALLEON_HELP</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<Mechanized>true</Mechanized>
<ObsoleteTech>TECH_COMBUSTION</ObsoleteTech>
<AdvancedStartCost>50</AdvancedStartCost>
<MinAreaSize>20</MinAreaSize>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_MOD_GALLEON</UnitArtInfo>
<UnitFlagAtlas>UNITS_GALLEON_FLAG_ATLAS</UnitFlagAtlas>
<UnitFlagIconOffset>0</UnitFlagIconOffset>
<IconAtlas>UNITS_GALLEON_ICON_ATLAS</IconAtlas>
<PortraitIndex>0</PortraitIndex>
<MoveRate>BOAT</MoveRate>
</Row>
</Units>
<Unit_AITypes>
<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_GALLEON</UnitType>
<UnitAIType>UNITAI_EXPLORE_SEA</UnitAIType>
</Row>
</Unit_AITypes>
<Unit_Flavors>
<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>
</Unit_Flavors>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_GALLEON</UnitType>
<PromotionType>PROMOTION_EXTRA_SIGHT_I</PromotionType>
</Row>
</Unit_FreePromotions>
<Unit_ClassUpgrades>
<Row>
<UnitType>UNIT_GALLEON</UnitType>
<UnitClassType>UNITCLASS_DESTROYER</UnitClassType>
</Row>
<Update>
<Where UnitType="UNIT_CARAVEL"/>
<Set UnitClassType="UNITCLASS_GALLEON"/>
</Update>
<Update>
<Where UnitType="UNIT_KOREAN_TURTLE_SHIP"/>
<Set UnitClassType="UNITCLASS_GALLEON"/>
</Update>
</Unit_ClassUpgrades>
<Unit_ResourceQuantityRequirements>
<Row>
<UnitType>UNIT_GALLEON</UnitType>
<ResourceType>RESOURCE_IRON</ResourceType>
</Row>
</Unit_ResourceQuantityRequirements>
<Language_en_US>
<Row Tag="TXT_KEY_UNIT_GALLEON">
<Text>Galleon</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_GALLEON_HELP">
<Text>Fast Renaissance exploration Unit with a large sight radius.</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_GALLEON_STRATEGY">
<Text>The Galleon is a major upgrade to a civilization's naval power. A Ranged unit, it is stronger and faster than a Caravel, and it can enter Deep Ocean hexes. The Galleon has a large sight radius, making it the eyes and ears of the mid-game navy.</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_GALLEON_TEXT">
<Text>The gallen was a mid-size, seagoing vessel used in the 17th century to exploit the world, being an upgrade of the earlier Caravel.</Text>
</Row>
</Language_en_US>
</GameData>
<GameData>
<IconTextureAtlases>
<Row>
<Atlas>UNITS_GALLEON_ICON_ATLAS</Atlas>
<IconSize>256</IconSize>
<Filename>ART/Galleon256.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>6</IconsPerColumn>
</Row>
<Row>
<Atlas>UNITS_GALLEON_ICON_ATLAS</Atlas>
<IconSize>128</IconSize>
<Filename>ART/Galleon128.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>6</IconsPerColumn>
</Row>
<Row>
<Atlas>UNITS_GALLEON_ICON_ATLAS</Atlas>
<IconSize>80</IconSize>
<Filename>ART/Galleon80.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>6</IconsPerColumn>
</Row>
<Row>
<Atlas>UNITS_GALLEON_ICON_ATLAS</Atlas>
<IconSize>64</IconSize>
<Filename>ART/Galleon64.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>6</IconsPerColumn>
</Row>
<Row>
<Atlas>UNITS_GALLEON_ICON_ATLAS</Atlas>
<IconSize>45</IconSize>
<Filename>ART/Galleon45.dds</Filename>
<IconsPerRow>8</IconsPerRow>
<IconsPerColumn>6</IconsPerColumn>
</Row>
<Row>
<Atlas>UNITS_GALLEON_FLAG_ATLAS</Atlas>
<IconSize>32</IconSize>
<Filename>ART/GalleonFlag.dds</Filename>
<IconsPerRow>1</IconsPerRow>
<IconsPerColumn>1</IconsPerColumn>
</Row>
</IconTextureAtlases>
</GameData>
Note that whoward69's galleon use specific icons and texts that are defined here while the BIPLAN unit from my SQL example re-use the fighter icons and texts.