sub_main.bin (MHG) - GReinoso96/XXModding GitHub Wiki
sub_main.bin
is an overlay file found inside AFS_DATA.AFS
.
Base Offset
The base offset for this file, as any overlay file from the game, is found at 0x08
.
When reading offsets from this file, you have to subtract the base offset, when relocating data you have to add it to the new offset.
Quest Lists and Key Quests
Offsets to key quests exist at 0x0005CAC0, as explained in the Base Offset section, you must subtract the base offset to acquire the actual offset.
Size | Description |
---|---|
0x04 | Village 1 Star Key Quests |
0x04 | Village 2 Star Key Quests (*) |
0x04 | Village 3 Star Key Quests |
0x04 | Village 4 Star Key Quests |
0x04 | Village 5 Star Key Quests |
- In vanilla MHG, Village 2 Stars Key Quests are in the executable
slpm_658.69
, if you try to subtract the base offset you'll get a negative number.
The offsets point to simple lists containing the IDs of quests that must be completed to unlock the next Urgent.
Size | Description |
---|---|
0x02 | Quest ID |
.... | ...Until 0000 |
The quests list contain the pool of available quests for a tier, picking 5 (Village) or 9 (Minegarde) randomly.
The offsets for village quest lists can be found at 0x0005CB60
.
Size | Description |
---|---|
0x04 | Village 1 Star Quests |
0x04 | Village 2 Star Quests |
0x04 | Village 3 Star Quests |
0x04 | Village 4 Star Quests |
0x04 | Village 5 Star Quests |
The lists themselves follow the same simple format.
Size | Description |
---|---|
0x02 | Quest ID |
.... | ...Until 0000 |
Additionally, quest lists must be at least 5 quests long (or 9 for Minegarde), otherwise the list is filled with quest ID 0000.
Weapon Classes
Every weapon model is given a respective weapon class from the ones available.
Value | Class |
---|---|
0x00 | Great Sword |
0x01 | Heavy Bowgun |
0x02 | Hammer |
0x03 | Lance |
0x04 | Sword and Shield |
0x05 | Light Bowgun |
0x06 | Dual Blades |
The list of weapon classes can be found at '0x000740F0'.
Equipment
See: