Skip to content

MBIN Header Format v2

Gaticus Hax edited this page Sep 7, 2018 · 10 revisions

See also:

Offset Size Type Name
0x0000 0x0004 uint32 MagicID
0x0004 0x0004 uint16 NMSFormatID
0x0006 0x0001 uint8 APIFormatID
0x0007 0x0001 uint8 reserved
0x0008 0x0004 uint32 APIVersion
0x000C 0x0002 uint32 NMSVersion
0x0010 0x0008 uint64 TemplateGUID
0x0018 0x0040 char[64] TemplateName
0x0058 0x0008 uint64 MetaOffset

MagicID (Vanilla)

NMSFormatID:
This is always 2500.

APIFormatID:
This byte will indicate the libMBIN format version.
For header format v0 and v1 this will be 0.
For header format v2+ this will be 2 or higher.

APIVersion:
The libMBIN version will now be stored here, overwriting the original timestamp field instead of overwriting TemplateGUID.
It will no longer be stored as a string. The version will be stored as 4 bytes.
Each byte will store the value of the corresponding version component: Major.Minor.Release.Prerelease

NMSVersion:
The actual NMS version will now be stored here. Same byte format as APIVersion described above. Only the major and minor components are used for NMS versions.

TemplateGUID (Vanilla)
TemplateName (Vanilla)

MetaOffset:
This will have the offset from the start of the file to the end of the MBIN data, where the metadata will be stored.

Clone this wiki locally