[V3.0] misc.xml Changes — hold_type→hold and the carry Attribute

misc.xml received a structural element rename.

Key Changes

  • Element rename: All <hold_type ... /><hold ... /> (over 80 entries)
  • Attribute replacement: newmodel="false" was removed from each hold and replaced with carry="N". N is the Weapon Carry Type:
    • 0 Unarmed / 1 1HMelee / 2 2HWideMelee / 3 2HNarrowMelee / 4 1HPistol / 5 2HPistol / 6 2HRifle / 7 2HBow / 8 RocketLauncher / 9 1HGeneric / 10 2HGeneric
    • Examples: id=2 (clubs)→carry=1, id=5 (shotgun)→carry=6, id=27 (wooden bow)→carry=7
  • New hold added: <hold id="88" carry="10" ... /> (the comment reads “88 chicken” — a hold type for carrying chickens, new in V3.0)
  • Numeric values such as ray_cast remain unchanged. Trigger effects (controller vibration) only had their comments reformatted; the values are unchanged

Impact on MODs

  • If you override or append via xpath using the hold_type element name, it will no longer match and will be silently disabled because the element name has changed to hold. You’ll need to fix your xpath from hold_type to hold, and follow the removal of newmodel and the addition of carry.
  • If your items merely reference the ID, as in <property name="HoldType" value="N"/>, there is no impact since the ID numbers are preserved (there’s no problem as long as you haven’t edited misc.xml itself).

Reference: Example Diff

-   <hold_type id="2" newmodel="false" ray_cast="0.40" ... two_handed="true" />   <!-- 2 clubs -->
+   <hold id="2" carry="1" ray_cast="0.40" ... two_handed="true" />              <!-- 2 clubs -->
+   <hold id="88" carry="10" ray_cast="0" ... two_handed="true" />               <!-- 88 chicken -->

* Based on investigation immediately after applying the experimental version (equivalent to B252).


Related: List of MOD-making articles

コメントする

お名前(ニックネーム)だけで投稿できます。ログイン・メール登録は不要です。お気軽にどうぞ。

※ AIの回答は管理者の確認後に表示されます。内容は不正確な場合があります。