Skaz881
History Major
I know this has been answered before, but it was a long time ago and I can't remember. Why would a unit show up as a Spearman instead of the model? I made sure VFS was set to true and everything!
Code:
<UnitClasses>
<Row>
<Type>UNITCLASS_CHARIOT</Type>
<Description>TXT_KEY_UNIT_CHARIOT</Description>
<DefaultUnit>UNIT_CHARIOT</DefaultUnit>
</Row>
</UnitClasses>
<Units>
<Row>
<Class>UNITCLASS_CHARIOT</Class>
<Type>UNIT_CHARIOT</Type>
<PrereqTech>TECH_THE_WHEEL</PrereqTech>
<Combat>8</Combat>
<Cost>70</Cost>
<FaithCost>100</FaithCost>
<RequiresFaithPurchaseEnabled>true</RequiresFaithPurchaseEnabled>
<Moves>4</Moves>
<CombatClass>UNITCOMBAT_MELEE</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Description>TXT_KEY_UNIT_CHARIOT</Description>
<Civilopedia>TXT_KEY_CIV5_CHARIOT_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_CHARIOT_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_CHARIOT_HELP</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<ObsoleteTech>TECH_MACHINERY</ObsoleteTech>
<GoodyHutUpgradeUnitClass>UNITCLASS_HORSEMAN</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>15</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_CHARIOT</UnitArtInfo>
<UnitFlagAtlas>WONDER_UNIT_FLAG_ATLAS</UnitFlagAtlas>
<UnitFlagIconOffset>1</UnitFlagIconOffset>
<IconAtlas>WONDER_UNIT_ATLAS</IconAtlas>
<PortraitIndex>1</PortraitIndex>
<MoveRate>WHEELED</MoveRate>
</Row>
</Units>
Code:
---CHARIOT----------------------------------------------------------------------------------------------------------------
INSERT INTO "ArtDefine_UnitInfos" ('Type','DamageStates','Formation')
SELECT ("ART_DEF_UNIT_CHARIOT"), "DamageStates", ("TwoBigGuns")
FROM "ArtDefine_UnitInfos" WHERE (Type = "ART_DEF_UNIT_U_HITTITE_WARCHARIOT");
INSERT INTO "ArtDefine_UnitInfoMemberInfos" ('UnitInfoType','UnitMemberInfoType','NumMembers')
VALUES ("ART_DEF_UNIT_CHARIOT", "ART_DEF_UNIT_MEMBER_CHARIOT", "2");
INSERT INTO "ArtDefine_UnitMemberCombats" ('UnitMemberType', 'EnableActions', 'DisableActions', 'MoveRadius', 'ShortMoveRadius', 'ChargeRadius', 'AttackRadius', 'RangedAttackRadius', 'MoveRate', 'ShortMoveRate', 'TurnRateMin', 'TurnRateMax', 'TurnFacingRateMin', 'TurnFacingRateMax', 'RollRateMin', 'RollRateMax', 'PitchRateMin', 'PitchRateMax', 'LOSRadiusScale', 'TargetRadius', 'TargetHeight', 'HasShortRangedAttack', 'HasLongRangedAttack', 'HasLeftRightAttack', 'HasStationaryMelee', 'HasStationaryRangedAttack', 'HasRefaceAfterCombat', 'ReformBeforeCombat', 'HasIndependentWeaponFacing', 'HasOpponentTracking', 'HasCollisionAttack', 'AttackAltitude', 'AltitudeDecelerationDistance', 'OnlyTurnInMovementActions', 'RushAttackFormation')
SELECT ("ART_DEF_UNIT_MEMBER_CHARIOT"), "EnableActions", "DisableActions", "MoveRadius", "ShortMoveRadius", "ChargeRadius", "AttackRadius", "RangedAttackRadius",
"MoveRate", "ShortMoveRate", "TurnRateMin", "TurnRateMax", "TurnFacingRateMin", "TurnFacingRateMax", "RollRateMin", "RollRateMax", "PitchRateMin", "PitchRateMax", "LOSRadiusScale", "TargetRadius", "TargetHeight", "HasShortRangedAttack", "HasLongRangedAttack", "HasLeftRightAttack", "HasStationaryMelee", "HasStationaryRangedAttack", "HasRefaceAfterCombat", "ReformBeforeCombat", "HasIndependentWeaponFacing", "HasOpponentTracking", "HasCollisionAttack", "AttackAltitude", "AltitudeDecelerationDistance", "OnlyTurnInMovementActions", "RushAttackFormation"
FROM "ArtDefine_UnitMemberCombats" WHERE (UnitMemberType = "ART_DEF_UNIT_MEMBER_U_HITTITE_WARCHARIOT");
INSERT INTO "ArtDefine_UnitMemberCombatWeapons" ('UnitMemberType', 'Index', 'SubIndex', 'ID', 'VisKillStrengthMin', 'VisKillStrengthMax', 'ProjectileSpeed', 'ProjectileTurnRateMin', 'ProjectileTurnRateMax', 'HitEffect', 'HitEffectScale', 'HitRadius', 'ProjectileChildEffectScale', 'AreaDamageDelay', 'ContinuousFire', 'WaitForEffectCompletion', 'TargetGround', 'IsDropped', 'WeaponTypeTag', 'WeaponTypeSoundOverrideTag')
SELECT ("ART_DEF_UNIT_MEMBER_CHARIOT"), "Index", "SubIndex", "ID", "VisKillStrengthMin", "VisKillStrengthMax", "ProjectileSpeed", "ProjectileTurnRateMin", "ProjectileTurnRateMax", "HitEffect", "HitEffectScale", "HitRadius", "ProjectileChildEffectScale", "AreaDamageDelay", "ContinuousFire", "WaitForEffectCompletion", "TargetGround", "IsDropped", "WeaponTypeTag", "WeaponTypeSoundOverrideTag"
FROM "ArtDefine_UnitMemberCombatWeapons" WHERE (UnitMemberType = "ART_DEF_UNIT_MEMBER_U_HITTITE_WARCHARIOT");
INSERT INTO "ArtDefine_UnitMemberInfos" ("Type", "Scale", "ZOffset", "Domain", "Model", "MaterialTypeTag", "MaterialTypeSoundOverrideTag")
SELECT ("ART_DEF_UNIT_MEMBER_CHARIOT"), "Scale", "ZOffset", "Domain",
("Chariot_Macedon.fxsxml"), "MaterialTypeTag", "MaterialTypeSoundOverrideTag"
FROM "ArtDefine_UnitMemberInfos" WHERE (Type = "ART_DEF_UNIT_MEMBER_U_HITTITE_WARCHARIOT");
INSERT INTO "ArtDefine_StrategicView" ('StrategicViewType','TileType','Asset')
SELECT ("ART_DEF_UNIT_CHARIOT"), "StrategicViewType", "TileType", "Asset")
FROM "ArtDefine_UnitInfos" WHERE (Type = "ART_DEF_UNIT_U_HITTITE_WARCHARIOT");