Difference between revisions of "MSBT (File Format)"

From MK8
Jump to: navigation, search
m
m
Line 119: Line 119:
 
The following tool can edit MSBT files:
 
The following tool can edit MSBT files:
  
* [https://github.com/IcySon55/3DLandMSBTeditor/releases/tag/v0.9.6 MSBT Editor], by [[User:IcySon55|IcySon55]]
+
* [https://github.com/IcySon55/3DLandMSBTeditor/releases/tag/v0.9.7 MSBT Editor], by [[User:IcySon55|IcySon55]]

Revision as of 22:22, 1 December 2016

The MSBT File format seems to be something like BMG was in MKWii. MSBT files contain the game's text.

The file has a main header (MSBT) and two data blocks with their own headers (NLI1 and TXT2). After each data block, there are the bytes "0xAB AB AB AB"

MSBT files are also used in some Wii games, such as Super Mario Galaxy 2.

Header

The MSBT file format starts with a header structure.

Offset Size Description
0x00 8 String "MsgStdBn" in ASCII (file identifier).
0x08 2 Byte order mark (0xFEFF)
0x0a 2 Unknown, always 0x0000
0x0c 2 Unknown, always 0x0103
0x0e 2 Number of sections
0x10 2 Unknown, always 0x0000
0x12 4 File size
0x16 10 Unknown, always 0x0000 0000 0000 0000 0000
0x20 End of file header

NLI1

NLI1 Header

Offset Size Description
0x00 4 String "NLI1" in ASCII (file identifier).
0x04 4 Section size
0x08 8 unknown (always empty?)
0x0f 4 Number of entries
0x13 End of NLI1 header

TXT2

TXT2 Header

Offset Size Description
0x00 4 String "TXT2" in ASCII (file identifier).
0x04 4 Section size
0x08 8 unknown (always empty?)
0x0f 4 Number of entries
0x13 End of TXT2 header

TXT2 data

After the TXT2 header, there are four bytes for each entry, containing the offset to the UTF16 string.

Tools

The following tool can edit MSBT files: