Jump to content

Question) Trying to add customize weapon


minho935821

Recommended Posts

I'm trying to add a customized weapon(spear), but fail at the end having this error below:

 

Error: The element 'CraftingPiece' has invalid child element 'PieceUsages'. List of possible elements expected: 'BladeData, BuildData, Materials, StatContribution, Flags'. Node: PieceUsages Value: Line 4 XML Path: ~~~~

 

This is the code I used:

 

<CraftingPiece id="shirohige_blade" name="{=*}Shirohige Blade" tier="5" piece_type="Blade" mesh="shirohige_blade" culture="Culture.empire" length="100" weight="0.05" excluded_item_usage_features="shield:thrust">
<PieceUsages unavailable_usages="OneHandedPolearm" />
<BladeData sharpness="12" physics_material="metal_weapon" body_name="bo_spear_b">
<Swing damage_type="Cut" damage_factor="35.8" />
</BladeData>
<Flags Civilian="true"/>
<Materials>
<Material id="Iron4" count="1" />
</Materials>
</CraftingPiece>
<CraftingPiece id="shirohige_grip" name="{=*}Shirohige grip" tier="4" piece_type="Handle" mesh="shirohige_grip" length="170" weight="0.1">
<PieceUsages unavailable_usages="OneHandedPolearm:TwoHandedPolearm_Couchable:Javelin" />
<BuildData move_diff="22.9" />
<Materials>
<Material id="Wood" count="1" />
</Materials>
</CraftingPiece>
<CraftingPiece id="shirohige_pommel" name="{=*}Shirohige Pommel" tier="5" piece_type="Pommel" mesh="shirohige_pommel" culture="Culture.empire" length="2.9" weight="0">
<PieceUsages unavailable_usages="" />
<Materials>
<Material id="wood" count="1" />
</Materials>
</CraftingPiece>
All the files are in the new module created from Modding Kit. Have a Tpac file containing Blade, Grip and Pommel.
I've tried to delete pieceusage part, but there's another error coming up. I've also deleted the new error part, but another error keeps showing up.
Any idea?
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...