Skip to content

MBIN Header Format v0

Xander edited this page Sep 2, 2018 · 3 revisions

MBIN Header Format v0 (Vanilla NMS)

See also:

Offset Size Type Name
0x0000 0x0004 byte[4] MagicID
0x0004 0x0004 uint32 FormatID
0x0008 0x0008 uint64 Timestamp
0x0010 0x0008 uint64 TemplateGUID
0x0018 0x0040 char[64] TemplateName
0x0058 0x0008 byte[8] Padding

MagicID:

Always 0xCCCCCCCC for *.MBIN files. Always 0xDDDDDDDD for *.MBIN.PC files.

FormatID:

Always 2500 (integer).

Timestamp:

0x0 for most files. 0xFFFF.. for TkGeometryData files. Timestamp eg. 201607201542 (decimal) on global files and older MBINs, likely removed the code that set it at some stage.

TemplateGUID:

Unique across templates layouts (files using the same template & version/layout of structure share the same GUID). Doesn't appear to be checked on load.

TemplateName:

The name of the template for the type of Game Component data that is stored in the MBIN file.

Padding:

Used for alignment of the following MBIN data to 16-byte boundaries.