BFLIM (File Format)

From MK8
Revision as of 02:49, 24 April 2015 by NWPlayer123 (talk | contribs) (Initial Commit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The BFLIM file format is used to store layout images.

Parsing information

Header

The header is, for whatever reason, at the end of the file. It is always 0x14 bytes.

Offset Size Description
0x00 4 "FLIM" File Identifier, ASCII string.
0x04 2 Byte order mark (BOM): 0xFE,0xFF for big endian and 0xFF,0xFE for little endian.
0x06 2 Header size, always 0x14.
0x08 4 Unknown, always 0x03030000.
0x0C 4 Filesize
0x10 2 Unknown, always 0x01.
0x12 1 Multiplier?, always upper 2 bytes of filesize.
0x13 1 Unknown, always 0.

Data Information

Comes directly after header, always 0x14 bytes.

Offset Size Description
0x14 4 "imag", some signature, ASCII string.
0x18 4 Parse information size, always 0x10 (this and next 0xC bytes).
0x1C 2 Width
0x1E 2 Height
0x20 2 Swizzle
0x22 2 Unknown, some kind of hash or unique id.
0x24 4 Raw data size, always 0xC minus 0x28 (the header).