- problems with correct unit graphics -

taube87

duck and cover!
Joined
Jun 12, 2005
Messages
357
Location
between 37 and 38%
hello everybody,
i'm a newb in civ5 modding and i've got a problem with my mod.

i use this two .xml files

Spoiler :
<GameData>

<UnitClasses>
<Row>
<Type>UNITCLASS_LECLERC</Type>
<Description>TXT_KEY_UNIT_LECLERC</Description>
<DefaultUnit>UNIT_LECLERC</DefaultUnit>
</Row>
</UnitClasses>

<Units>
<Row>
<Class>UNITCLASS_LECLERC</Class>
<Type>UNIT_LECLERC</Type>
<PrereqTech>TECH_AGRICULTURE</PrereqTech>
<Combat>99</Combat>
<RangedCombat>13</RangedCombat>
<Cost>5</Cost>
<FaithCost>1</FaithCost>
<RequiresFaithPurchaseEnabled>true</RequiresFaithPurchaseEnabled>
<Moves>2</Moves>
<Range>1</Range>
<CombatClass>UNITCOMBAT_ARCHER</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_RANGED</DefaultUnitAI>
<Description>TXT_KEY_UNIT_LECLERC</Description>
<Strategy>TXT_KEY_UNIT_LECLERC_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_LECLERC</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<ObsoleteTech>TECH_MACHINERY</ObsoleteTech>
<GoodyHutUpgradeUnitClass>UNITCLASS_CROSSBOWMAN</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>20</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_LECLERC</UnitArtInfo>
<UnitFlagAtlas>EXPANSION2_UNIT_FLAG_ATLAS</UnitFlagAtlas>
<UnitFlagIconOffset>9</UnitFlagIconOffset>
<IconAtlas>EXPANSION2_UNIT_ATLAS</IconAtlas>
<PortraitIndex>9</PortraitIndex>
</Row>
</Units>

<Unit_AITypes>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<UnitAIType>UNITAI_RANGED</UnitAIType>
</Row>
</Unit_AITypes>

<Unit_ClassUpgrades>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<UnitClassType>UNITCLASS_CROSSBOWMAN</UnitClassType>
</Row>
</Unit_ClassUpgrades>

<Unit_Flavors>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>2</Flavor>
</Row>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>2</Flavor>
</Row>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<FlavorType>FLAVOR_RANGED</FlavorType>
<Flavor>4</Flavor>
</Row>
</Unit_Flavors>

<Unit_FreePromotions>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<PromotionType>PROMOTION_ONLY_DEFENSIVE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<PromotionType>PROMOTION_COVERcom_1</PromotionType>
</Row>
</Unit_FreePromotions>

<Language_en_US>
<Row Tag="TXT_KEY_UNIT_LECLERC">
<Text>LECLERC</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_LECLERC_STRATEGY">
<Text>a</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_LECLERC">
<Text>b</Text>
</Row>
</Language_en_US>

</GameData>


Spoiler :
<GameData>
<ArtDefine_UnitInfos>
<Row>
<Type>ART_DEF_UNIT_LECLERC</Type>
<Formation>Vehicle</Formation>
<DamageStates>1</DamageStates>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_LECLERC</MemberType>
<MemberCount>3</MemberCount>
</UnitMemberArt>
</Row>
</ArtDefine_UnitInfos>

<ArtDefine_UnitInfoMemberInfos>
<Row>
<UnitInfoType>ART_DEF_UNIT_LECLERC</UnitInfoType>
<UnitMemberInfoType>ART_DEF_UNIT_MEMBER_LECLERC</UnitMemberInfoType>
<NumMembers>1</NumMembers>
</Row>
</ArtDefine_UnitInfoMemberInfos>

<ArtDefine_UnitMemberInfos>
<Row>
<Type>ART_DEF_UNIT_MEMBER_LECLERC</Type>
<fScale>0.1</fScale>
<Granny>Assets/Units/leclerc/leclerc.fxsxml</Granny>
<Combat>
<Defaults>ART_DEF_TEMPLATE_BASE</Defaults>
<bReformBeforeCombat>1</bReformBeforeCombat>
<bHasShortRangedAttack>1</bHasShortRangedAttack>
<bHasStationaryMelee>1</bHasStationaryMelee>
<bHasIndependentWeaponFacing>1</bHasIndependentWeaponFacing>
<bHasRefaceAfterCombat>0</bHasRefaceAfterCombat>
<Weapon>
<fVisKillStrengthMin>25.0</fVisKillStrengthMin>
<fVisKillStrengthMax>50.0</fVisKillStrengthMax>
<HitEffect>ART_DEF_VEFFECT_TANK_IMPACT_$(TERRAIN)</HitEffect>
<WeaponTypeTag>EXPLOSIVE</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>EXPLOSION20POUND</WeaponTypeSoundOverrideTag>
</Weapon>
</Combat>
<MaterialTypeTag>METAL</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>METALSM</MaterialTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberInfos>

</GameData>


the new unit works correctly, but there's a spearman shown ingame?!

attachment.php


can anyone please help me :D
 
Also make sure you have reload unit system box checked.
<Granny>Assets/Units/leclerc/leclerc.fxsxml</Granny>
Also is this the correct file path? It looks default. Normally you can just get away with <Granny>leclerc.fxsxml</Granny>
 
Because you're operating within the virtual file system (VFS), paths don't matter.

Not strictly true. Files are found in the VFS by case-sensitive pattern matching on the full path name, not the usual "is there a file called X in sub-directory Y". So long as "leclerc" is unique everything is fine, but if you call your new file "le" and referred to it as such, don't be surprised if you get a whole load of stuff from Legions or Galleass! That's when "paths" come in useful as they add more to the pattern - "art/le.fxsxml" is going to be unique (probably!)
 
I'm getting the exact same thing while following the Gedemon SQL tutorial. Instead of danrell's Biplan, I am getting a spearman...
 
haha, the templates helped!

but now i've got a new problem. die tanks are looking in the ground and i've got no sound?!

attachment.php


btw: what effects "StrategicViewType"?

Spoiler :
<GameData>

<UnitClasses>
<Row>
<Type>UNITCLASS_LECLERC</Type>
<Description>TXT_KEY_UNIT_LECLERC</Description>
<DefaultUnit>UNIT_LECLERC</DefaultUnit>
</Row>
</UnitClasses>

<Units>
<Row>
<Class>UNITCLASS_LECLERC</Class>
<Type>UNIT_LECLERC</Type>
<PrereqTech>TECH_AGRICULTURE</PrereqTech>
<Combat>9</Combat>
<RangedCombat>13</RangedCombat>
<Cost>1</Cost>
<FaithCost>1</FaithCost>
<RequiresFaithPurchaseEnabled>true</RequiresFaithPurchaseEnabled>
<Moves>2</Moves>
<Range>1</Range>
<CombatClass>UNITCOMBAT_ARCHER</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_RANGED</DefaultUnitAI>
<Description>TXT_KEY_UNIT_LECLERC</Description>
<Strategy>TXT_KEY_UNIT_LECLERC_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_LECLERC</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<ObsoleteTech>TECH_MACHINERY</ObsoleteTech>
<GoodyHutUpgradeUnitClass>UNITCLASS_CROSSBOWMAN</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>20</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_LECLERC</UnitArtInfo>
<UnitFlagAtlas>EXPANSION2_UNIT_FLAG_ATLAS</UnitFlagAtlas>
<UnitFlagIconOffset>9</UnitFlagIconOffset>
<IconAtlas>EXPANSION2_UNIT_ATLAS</IconAtlas>
<PortraitIndex>9</PortraitIndex>
</Row>
</Units>

<Unit_AITypes>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<UnitAIType>UNITAI_RANGED</UnitAIType>
</Row>
</Unit_AITypes>

<Unit_ClassUpgrades>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<UnitClassType>UNITCLASS_CROSSBOWMAN</UnitClassType>
</Row>
</Unit_ClassUpgrades>

<Unit_Flavors>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>2</Flavor>
</Row>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>2</Flavor>
</Row>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<FlavorType>FLAVOR_RANGED</FlavorType>
<Flavor>4</Flavor>
</Row>
</Unit_Flavors>

<Unit_FreePromotions>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<PromotionType>PROMOTION_ONLY_DEFENSIVE</PromotionType>
</Row>
<Row>
<UnitType>UNIT_LECLERC</UnitType>
<PromotionType>PROMOTION_COVERcom_1</PromotionType>
</Row>
</Unit_FreePromotions>

<Language_en_US>
<Row Tag="TXT_KEY_UNIT_LECLERC">
<Text>LECLERC</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_LECLERC_STRATEGY">
<Text>a</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_LECLERC">
<Text>b</Text>
</Row>
</Language_en_US>

<ArtDefine_UnitInfos>
<Row>
<Type>ART_DEF_UNIT_LECLERC</Type>
<DamageStates>1</DamageStates>
<Formation>Vehicle</Formation>
</Row>
</ArtDefine_UnitInfos>
<ArtDefine_UnitInfoMemberInfos>
<Row>
<UnitInfoType>ART_DEF_UNIT_LECLERC</UnitInfoType>
<UnitMemberInfoType>ART_DEF_UNIT_MEMBER_LECLERC</UnitMemberInfoType>
<NumMembers>4</NumMembers>
</Row>
</ArtDefine_UnitInfoMemberInfos>
<ArtDefine_UnitMemberInfos>
<Row>
<Type>ART_DEF_UNIT_MEMBER_LECLERC</Type>
<Scale>0.119999997317791</Scale>
<Model>Assets/Units/Leclerc/Leclerc.fxsxml</Model>
<MaterialTypeTag>METAL</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>METALSM</MaterialTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberInfos>
<ArtDefine_UnitMemberCombats>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_LECLERC</UnitMemberType>
<EnableActions>Idle Attack RunCharge AttackCity Bombard Death BombardDefend Run Fortify CombatReady</EnableActions>
<HasShortRangedAttack>1</HasShortRangedAttack>
<HasStationaryMelee>1</HasStationaryMelee>
<HasRefaceAfterCombat>0</HasRefaceAfterCombat>
<ReformBeforeCombat>1</ReformBeforeCombat>
<HasIndependentWeaponFacing>1</HasIndependentWeaponFacing>
</Row>
</ArtDefine_UnitMemberCombats>
<ArtDefine_UnitMemberCombatWeapons>
<Row>
<UnitMemberType>ART_DEF_UNIT_MEMBER_LECLERC</UnitMemberType>
<Index>0</Index>
<SubIndex>0</SubIndex>
<VisKillStrengthMin>25.0</VisKillStrengthMin>
<VisKillStrengthMax>50.0</VisKillStrengthMax>
<HitEffect>ART_DEF_VEFFECT_TANK_IMPACT_$(TERRAIN)</HitEffect>
<WeaponTypeTag>EXPLOSIVE</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>EXPLOSION6POUND</WeaponTypeSoundOverrideTag>
</Row>
</ArtDefine_UnitMemberCombatWeapons>
<ArtDefine_StrategicView>
<Row>
<StrategicViewType>ART_DEF_UNIT_LECLERC</StrategicViewType>
<TileType>Unit</TileType>
<Asset>SV_Tank.dds</Asset>
</Row>
</ArtDefine_StrategicView>
</GameData>
 

Attachments

  • 2013-10-29_00001.jpg
    2013-10-29_00001.jpg
    183.2 KB · Views: 149
Back
Top Bottom