Weapon Modding - RTHKKona/MHGU-Modding GitHub Wiki
Ported from GReinoso96, Aradi147's XXModding. Much Appreciated! Link ; Ported with permission from Google Docs from Poto Link ; Credits to Schguki, Aradi
Credit to Jeck95
- 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 | Insect Glaive
- 14 | Charge Blade
- 15 | Palico
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:
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 |
00=none 01=fire 02=water 03=thunder 04=dragon 05=ice 06=poison 07=paralysis 08=sleep 09=blast
These have everything related to HA duration, HA effect, weapon specific modifiers, etc. Extract the pl_wxx file located in arc\player\quest\wxx.arc\player\param, with xx referring to the weapon ID. There are more modifiers than the ones listed here but I haven't identified them yet.
Lions Maw I/II/III damage modifier (+76/80/84, float32)
Brimstone Slash frames to charge level 1/2/3 (+140/144/148, float32).
Brimstone Slash max charge time (+152, float32)
Brimstone Slash striker charge modifier (+156, float32), higher value means lower charge time
Chaos Oil + Minds Eye Oil sharpness restoration (+20, byte)
Chaos Oil I/II/II duration in frames (+48/52/56, float32)
Affinity Oil effect (+72/76/80/84, float32)
Stamina Oil Exhaust effect (+88/92/96/100, float32)
Stamina Oil KO effect (+104/108/112/116, float32)
Destroyer Oil effect (+120/124/128/132, float32)
Oil effect order is Chaos Oil I/II, Chaos Oil III, Regular/Stack with I/II, and Stack with III
Provoke I/II/III duration in seconds (+72/76/80, float32)
Provoke defense boost (+88, float32)
Impact Press duration in frames (+92/96/100, float32)
I know you can also change how high you bounce with aerial hammer but I don't remember where that's saved
Enraged Guard duration in frames (+68/72/76, float32)
Enraged Guard raw modifier (+84/88/92, float32)
Healing Shield duration in frames (+96/100/104, float32)
Healing amount might also be here
Gunpowder Infusion amount (+32/36/40, byte)
Gunpowder Infusion raw modifier (+84, float32)
Guns Blazing duration in frames (+88/92/96, float32)
HBG hidden damage modifier? (+104, float32), not tested but matches up with the actual value
Adept Power Reload duration in frames (+112, float32)
Valor Power Reload duration in frames (+116, float32)
Valor Siege max speed (+128, float32)
Valor Siege ramp up speed (+132, float32)
Valor Siege initial speed (+136, float32)
Valor Power Reload valor gauge generation modifier (+140, float32)
Aerial Power Reload duration in frames (+148, float32)
Power Reload raw modifier (+172, float32)
Rapid Fire Rain number of shots (+28/32/36, byte)
Charge Shot number of shots (+40/44/48, byte)
Long Barrel raw modifier? (+60, float32), not tested but matches up with the actual value, could also be Power Reload modifier, but since they are the > same they might share a value
Adept Power Reload duration in frames (+64, float32)
Valor Power Reload duration in frames (+164 or +168, float32)
Valor Power Reload valor gauge generation modifier (+172, float32)
Aerial Power Reload duration in frames (+192, float32)
LBG hidden raw modifier is also here but haven’t ID’d that as there is more than one value that matches up, I’ll test that and the other values Im unsure about later
Unhinged Spirit duration in seconds (+60/64/68, float32)
Devouring Demon duration in seconds (+84/88/92, float32)
Devouring Demon raw modifier (+108/112/116, float32)
Valor Aura raw modifier (+156, float32)
Couldn't find the modifiers for the other auras in this file
Demon Riot duration (+68/72/76, float32), for some reason it's saved as x*10/6, with x being the value in the file
Demon Riot effect (+80/84/88, float32)
Tempest Axe move speed modifier (+116, float32)
Tempest Axe duration in seconds (+136/140/144, float32)
Power Phial raw modifier (+148, float32)
Element Phial element modifier (+152, float32)
The other effects of Tempest Axe are also here but still have to ID them
Wyvernsfire cooldown (+112, float32)
Wyvernsfire cooldown with artillery expert (+118, float32)
Heat Gauge overheat cooldown (+124, float32)
Dragon Breath duration in frames (+132/136/140, float32)
Valor Rapid Shelling modifiers (+172/176/180/184/188, float32), last value applies to 5th and 6th shelling
Valor Full Burst modifiers (+192/196/200/204/208/212, float32)
Heat Gauge depletion over time is also here but not ID’d
Following values are saved in pl_w09_000.496F8F22 (make sure it has that extension because there is another file with the same name but different extension), located in the arc\shell\pl\w09.arc\shell\pl\pl_w09_000 folder.
Long Wyvernsfire modifier (+20, float32)
Wide Charged Shelling modifier (+24, float32)
Normal and Long Charged Shelling modifier (+28, float32)
Normal Full Burst modifier (+32, float32)
Long Full Burst modifier (+36, float32)
Wide Full burst modifier (+40, float32)
Haste Rain duration in frames (+56/60/64, float32)
Blade Wire duration in frames (+68/72/76, float32)
Valor Power Shots modifiers (+124/128, float32)
Charge Valor generation modifier (+132/136/140/144)
Charge Alchemy generation modifier (+152/156/160/164, float32)
Arc Shot raw modifier (+168/172/176, float32)
You can also change how far you go with aerial bow shots but I don't remember where that's saved
Couldn't find charge modifiers in this file or the shell parameter file
Wolf's Maw duration in frames (+140/144/148, float32)
Wolf’s Maw additional strike damage (+164/168/172, float32)
Harmonize duration in frames (+32/36/40, float32)
Invigoration duration in frames (+64/68/72, float32)
Red Extract duration (+32, float32)
Orange Extract duration (+36, float32)
White Extract duration (+40, float32)
Triple Up duration (+44, float32)
Swarm duration in frames (+52/56/60, float32)
Extract Hunter Triple Up duration (+68/72/76, float32)
Bug Majeure duration in frames (+108/112/116, float32)
Yellow Shield raw modifier (+40, float32)
Non Striker Red Shield raw modifier (+44, float32)
Striker Red Shield raw modifier (+48, float32)
Blue Shield raw modifier (+52, float32)
Limit Breaker duration in frames (+96/100/104, float32)
Healing Phials duration in frames? (+108, float32), not tested but only value that matches up
Palico Parameters (w15)
Following values are saved in ot000_cmn, located in the arc\shellotl\com.arc\shell\otl\ot000 folder
Charged Boomerangs damage modifier (+80, float32)
Piercing Boomerangs ailment modifier (+96, float32)