MH4U rQuestData Format - svanheulen/mhff GitHub Wiki

Header

Offset (Hex) Size Description
0000 4 Offset to the flags in this header
0004 4 Magic string "v005"
0008 4 Offset to supply boxes
000C 4 Unknown (Supply Box ID related)
0010 4 Unknown ^
0014 4 Unknown ^
0018 4 Unknown ^
001C 4 Offset to main reward box
0020 4 Offset to unknown reward box
0024 4 Offset to sub reward box
0028 4 Offset to large monsters
002C 4 Offset to small monsters
0030 4 Offset to intruder monsters
0034 8 Large monster stats
003C 8 Large monster stats
0044 8 Large monster stats
004C 8 Large monster stats
0054 8 Large monster stats
005C 8 Small monster stats
0064 4 Unknown
0068 4 Unknown
006C 4 Unknown
0070 4 Unknown
0074 4 Main hunter rank points
0078 4 Hunter rank penalty
007C 4 Sub hunter rank points
0080 4 Unknown
0084 4 Unknown
0088 1 Unknown
0089 1 Gathering Rank
008A 1 Carve Table (00=Arena, 01=LR, 02=HR, 03=G)
008B 1 AI Level
008C 1 Spawn Area (00=Camp, 01=Random, 02=Elder dragon fight)
008D 1 Arena Fence (00 = Off, 01 = On)
008E 1 Unknown
008F 1 Unknown
0090 4 Unknown
0094 4 Unknown
0098 4 Unknown
009C 4 Unknown
00A0 1 Flag1 (quest type)
00A1 1 Flag2 (repel related)
00A2 1 Flag3 (subquest related)
00A3 1 Flag4 (08=Ship Integrity)
00A4 4 Posting fee
00A8 4 Main reward
00AC 4 Main reward death penalty
00B0 4 Sub reward
00B4 4 Time in minutes
00B8 4 Probability of intruder monster
00BC 4 Offset to text languages
00C0 2 ID
00C2 2 Star ranking
00C4 1 Map
00C5 1 Requirement to post/join
00C6 1 Requirement to post/join
00C7 1 Unknown
00C8 4 Unknown
00CC 4 Main objective type
00D0 2 Main objective ID
00D2 2 Main objective count
00D4 4 Main objective type
00D8 2 Main objective ID
00DA 2 Main objective count
00DC 4 Sub objective type
00E0 2 Sub objective ID
00E2 2 Sub objective count
00E4 4 Offset to equipment/items presets
00E8 2 Objective icon ID
00EA 2 Objective icon ID
00EC 2 Objective icon ID
00EE 2 Objective icon ID
00F0 2 Objective icon ID
00F2 2 Unknown

Supply Boxes

There will be a number of these structures until one with 0xFF as the ID marks the end.

Offset (Hex) Size Description
0000 1 Supply box ID
0001 1 Number of slots in the supply box
0002 2 Unknown
0004 4 Offset to supply box items

Supply Box Items

There will be as many of these structures as are specified in the supply box that points here.

Offset (Hex) Size Description
0000 2 Item ID
0002 2 Item count

Reward Boxes

Offset (Hex) Size Description
0000 1 Unknown
0001 1 Unknown
0002 2 Unknown
0004 4 Offset to reward box items

Reward Box Items

There will be a number of these structures until you find a probability of 0xFFFF

Offset (Hex) Size Description
0000 2 Probability of item
0002 2 Item ID
0004 2 Item count

Large Monsters

There will be one or multiple of these structures each being the offset to a group of monster that spawn at the same time.

Offset (Hex) Size Description
0000 4 Offset to large monster definitions

Large Monster Definitions

There will be a number of these structures until there is one with 0xFFFFFFFF as the monster ID.

Offset (Hex) Size Description
0000 4 Large monster ID
0004 4 Spawn count
0008 1 Spawn condition
0009 1 Spawn map area
000A 1 Unknown
000B 1 Unknown (size related)
000C 1 Unknown (size related)
000D 1 Unknown
000E 1 Unknown
000F 1 Frenzy status
0010 4 Floating point X position
0014 4 Floating point Y position
0018 4 Floating point Z position
001C 4 Unknown
0020 4 Unknown
0024 4 Unknown

Small Monsters

Offset (Hex) Size Description
0000 4 Offset to small monster areas
0004 4 Unknown (duplicate)
0008 4 Unknown (duplicate)

Small Monster Areas

There should be as many of these as there are areas on the map used.

Offset (Hex) Size Description
0000 4 Offset to small monster definitions

Small Monster Definitions

There will be a number of these structures until there is one with 0xFFFFFFFF as the monster ID.

Offset (Hex) Size Description
0000 4 Small monster ID
0004 4 Spawn count
0008 1 Spawn condition
0009 1 Spawn map area
000A 1 Unknown
000B 1 Unknown
000C 1 Unknown
000D 1 Unknown
000E 1 Unknown
000F 1 Unknown
0010 4 Floating point X position
0014 4 Floating point Y position
0018 4 Floating point Z position
001C 4 Unknown
0020 4 Unknown
0024 4 Unknown

Intruder Monsters

There will be a number of these structures until there is one with 0xFFFF as the probability.

Offset (Hex) Size Description
0000 4 Probability of intruder monster
0004 4 Large monster ID
0008 4 Spawn count
000C 1 Spawn condition
000D 1 Spawn map area
000E 1 Unknown
000F 1 Unknown (size related)
0010 1 Unknown (size related)
0011 1 Unknown
0012 1 Unknown
0013 1 Frenzy status
0014 4 Floating point X position
0018 4 Floating point Y position
001C 4 Floating point Z position
0020 4 Unknown
0024 4 Unknown
0028 4 Unknown

Monster Stats

Offset (Hex) Size Description
0000 2 Size percentage
0002 1 Size variation
0003 1 Health
0004 1 Attack
0005 1 Defense
0006 1 Stamina
0007 1 Unknown

Text Languages

Offset (Hex) Size Description
0000 4 Offset to English/Japanese/Korean text
0004 4 Offset to French text
0008 4 Offset to Spanish text
000C 4 Offset to German text
0010 4 Offset to Italian text

Text

All of these offsets will point to a null terminated UTF-16 string.

Offset (Hex) Size Description
0000 4 Offset to title string
0004 4 Offset to success string
0008 4 Offset to failure string
000C 4 Offset to summary string
0010 4 Offset to main monsters string
0014 4 Offset to client string
0018 4 Offset to sub quest string

Equipment/Items Presets

Offset (Hex) Size Description
0000 4 Unknown
0004 4 Unknown
0008 4 Unknown
000C 4 Unknown
0010 4 Unknown
0014 4 Unknown
0018 4 Unknown
001C 28 Equipment
0038 28 Equipment
0054 28 Equipment
0070 28 Equipment
008C 28 Equipment
00A8 28 Equipment
00C4 28 Equipment
00E0 28 Equipment
00Fc 4 Unknown
0100 2 Item ID
0102 2 Item count