Art Defines code not working (take a look)

CivWarGamer

Warlord
Joined
Oct 16, 2011
Messages
130
I can make new units easy, but when I attempt to create a new Art Define I have problems. I'm trying to make a Scout Ship which will use the Trireme art but smaller in scale. Unfortunately, its image in the game is a Spearman :) Ha! So I'm screwing up somewhere. I do have the Reload Unit System checked. I've added the files in the ACTIONS under properties.

I'm using <UnitArtInfo>ART_DEF_UNIT_SCOUTSHIP</UnitArtInfo> in the new unit code (I'm not including that entire section of code here in this post)

I believe the problem could be somewhere found below. I pretty much copied and pasted. I've underlined anything that I changed from the copied vanilla code.

FILE #1

<UnitArtInfos>
<UnitArtInfo>
<Type>ART_DEF_UNIT_SCOUTSHIP</Type>
<DamageStates>3</DamageStates>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_SCOUTSHIP</MemberType>
<MemberCount>1</MemberCount>
</UnitMemberArt>
</UnitArtInfo>
</UnitArtInfos>



FILE #2


<UnitMemberArtInfos>
<UnitMemberArtInfo>
<Type>ART_DEF_UNIT_MEMBER_SCOUTSHIP</Type>
<fScale>0.03</fScale>
<Granny>Assets/Units/Trireme/Trireme.fxsxml</Granny>
<Domain>Sea</Domain>
<Combat>
<Defaults>ART_DEF_TEMPLATE_SHIP</Defaults>
<bHasShortRangedAttack>1</bHasShortRangedAttack>
<bHasLongRangedAttack>1</bHasLongRangedAttack>
<bHasLeftRightAttack>1</bHasLeftRightAttack>
<bHasIndependentWeaponFacing>1</bHasIndependentWeaponFacing>
<Weapon>
<fVisKillStrengthMin>0.0</fVisKillStrengthMin>
<fVisKillStrengthMax>0.0</fVisKillStrengthMax>
<WeaponTypeTag>ARROW</WeaponTypeTag>
<WeaponTypeSoundOverrideTag>ARROW</WeaponTypeSoundOverrideTag>
</Weapon>
</Combat>
<MaterialTypeTag>WOOD</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>WOODLRG</MaterialTypeSoundOverrideTag>
</UnitMemberArtInfo>
</UnitMemberArtInfos>
 
Yes, the advice in that link worked.
 
Top Bottom