Weapons - GReinoso96/XXModding GitHub Wiki
Weapon IDs
ID | Weapon |
---|---|
00 | Greatsword |
01 | Sword and Shield |
02 | Hammer |
03 | Lance |
04 | Heavy Bowgun |
06 | Light Bowgun |
07 | Long Sword |
08 | Switch Axe |
09 | Gunlance |
10 | Bow |
11 | Dual Blades |
12 | Hunting Horn |
13 | Incest Glaive |
14 | Charge Blade |
15 | Cat |
Thanks to Jeck95 for helping document those.
Weapon Files Locations
Weapon Models, Textures, and sounds can be found in nativeNX\arc\weapon
, with each weapon type having its own folder. Kiranico MHXX and MHGU can be used to identify the number of each model by inspecting the page's elements and clicking on the weapon's model in the page.
Weapon base stats can be found in a folder called table inside resident.arc inside NativeNX\loc\arc for MHGU, and NativeNX\arc for MHXX Switch ver.
Weapon Base Data file structure
Like most files in MHXX, weapon base data files have an 8 byte header, the first four bytes of which are 9A 99 99 3F
and the remaining bytes are an entry count, so adjust the entry count if you add or remove entries (not recommended).
Each weapon type has its own slightly different structure after that, and they are:
GreatSword, Sword and Shield, Hammer, Lance, Long Sword, Bow, Hunting Horn
The file is weapon??BaseData, and it has 33 bytes per entry after the 8 bytes header
Offset | Length | Description |
---|---|---|
+0 | int32 | ID\counter |
+4 | int16 | Model |
+6 | int16 | Sound? |
+8 | byte | unknown |
+9 | byte | Number of LR\HR levels? |
+10 | byte | Number of G rank levels? |
+11 | byte | Rarity (starts from 00=rare1 and ends with 0A=rareX/deviant rarity) |
+12 | int32 | Cost |
+16 | byte | unknown |
+17 | byte | element/status |
+18 | byte | unknown |
+19 | int16 | unknown |
+21 | byte | Deviant weapon flag |
+22 | byte | Seregios\chaotic gore weapon flag (00=none, 01=Blademaster steve, 02=gunner steve, 03=chaotic) |
+23 | byte | level required to upgrade to different weapon 1 |
+24 | byte | Upgrade to weapon 1's ID |
+25 | byte | level required to upgrade to different weapon 2 |
+26 | byte | Upgrade to weapon 2's ID |
+27 | byte | level required to upgrade to different weapon 3 |
+28 | byte | Upgrade to weapon 3's ID |
+29 | byte | level required to upgrade to different weapon 4 |
+30 | byte | Upgrade to weapon 4's ID |
+31 | byte | level required to upgrade to different weapon 5 |
+32 | byte | Upgrade to weapon 5's ID |
SwitchAxe, Gunlance, Dual Blades, Incest Glaive, Charge Blade
The file is weapon??BaseData, and it has 34 bytes per entry after the 8 bytes header
Offset | Length | Description |
---|---|---|
+0 | int32 | ID\counter |
+4 | int16 | Model |
+6 | int16 | Sound? |
+8 | byte | unknown |
+9 | byte | Number of LR\HR levels? |
+10 | byte | Number of G rank levels? |
+11 | byte | Rarity (starts from 00=rare1 and ends with 0A=rareX/deviant rarity) |
+12 | int32 | Cost |
+16 | byte | unknown |
+17 | byte | element/status |
+18 | byte | weapon specific mechanic (SA\CB phials\GL shelling, dualblades element/status 2, IG starting bug?) |
+19 | byte | unknown |
+20 | int16 | unknown |
+22 | byte | Deviant weapon flag |
+23 | byte | Seregios\chaotic gore weapon flag (00=none, 01=Blademaster steve, 02=gunner steve, 03=chaotic) |
+24 | byte | level required to upgrade to different weapon 1 |
+25 | byte | Upgrade to weapon 1's ID |
+26 | byte | level required to upgrade to different weapon 2 |
+27 | byte | Upgrade to weapon 2's ID |
+28 | byte | level required to upgrade to different weapon 3 |
+29 | byte | Upgrade to weapon 3's ID |
+30 | byte | level required to upgrade to different weapon 4 |
+31 | byte | Upgrade to weapon 4's ID |
+32 | byte | level required to upgrade to different weapon 5 |
+33 | byte | Upgrade to weapon 5's ID |
Bowguns
The file is weapon??BaseData, and it has 33 bytes per entry after the 8 bytes header
Offset | Length | Description |
---|---|---|
+0 | int32 | ID\counter |
+4 | int16 | Model |
+6 | int16 | Sound? |
+8 | byte | unknown |
+9 | byte | Number of LR\HR levels? |
+10 | byte | Number of G rank levels? |
+11 | byte | Rarity (starts from 00=rare1 and ends with 0A=rareX/deviant rarity) |
+12 | int32 | Cost |
+16 | byte | unknown |
+19 | byte | unknown |
+18 | int16 | unknown |
+20 | byte | Deviant weapon flag |
+21 | byte | Seregios\chaotic gore weapon flag (00=none, 01=Blademaster steve, 02=gunner steve, 03=chaotic) |
+22 | byte | level required to upgrade to different weapon 1 |
+23 | byte | Upgrade to weapon 1's ID |
+24 | byte | level required to upgrade to different weapon 2 |
+25 | byte | Upgrade to weapon 2's ID |
+26 | byte | level required to upgrade to different weapon 3 |
+27 | byte | Upgrade to weapon 3's ID |
+28 | byte | level required to upgrade to different weapon 4 |
+29 | byte | Upgrade to weapon 4's ID |
+30 | byte | level required to upgrade to different weapon 5 |
+31 | byte | Upgrade to weapon 5's ID |
00=none 01=fire 02=water 03=thunder 04=dragon 05=ice 06=poison 07=paralysis 08=sleep 09=blast