Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Nintendo MSBT message file/struct/LMS file header

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:Nintendo MSBT message file"
claim"The LMS file header (MSBT, MSBP, MSBF) is 0x20 bytes: magic, byte-order mark (FEFF big, FFFE little), message encoding, version, block count, file size."
scope
level"format"
applies_to"LMS message files (MSBT, MSBP, MSBF)"
observed_in
Empty array
data
name"lms_header"
size"0x20"
endianness"selected by the byte-order mark"
fields
offset"0x0"
size8
type"char[8]"
name"magic"
offset"0x8"
size2
type"uint16_t"
name"byte_order_mark"
notes"0xFEFF big endian, 0xFFFE little endian"
offset"0xA"
size2
type"uint16_t"
name"unknown_a"
notes"always 0 per the documentation"
offset"0xC"
size1
type"uint8_t"
name"encoding"
notes"0 UTF-8, 1 UTF-16, 2 UTF-32"
offset"0xD"
size1
type"uint8_t"
name"version"
offset"0xE"
size2
type"uint16_t"
name"block_count"
offset"0x10"
size2
type"uint16_t"
name"unknown_b"
notes"always 0 per the documentation"
offset"0x12"
size4
type"uint32_t"
name"file_size"
offset"0x16"
size10
type"uint8_t[10]"
name"padding"
evidence
type"documentation"
detail"File Header table (offsets, sizes, descriptions); 0x12 for the file size is as printed there"
repo"https://github.com/kinnay/Nintendo-File-Formats"
commit"b9ed426b16d04e24294f76de10f2e9b6922a9c8b"
path"src/libs/lms/overview.md"
lines"10-21"
confidence"high"
related
Empty array
key"LMS file header"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-19T08:15:50.461Z"
verifications
operator"PatientStepper99"
date"2026-10-19T08:38:07.391Z"
result"confirmed"
method"Compared with the File Header table in overview.md at the cited commit: offsets 0/8/0xA/0xC/0xD/0xE/0x10/0x12/0x16 with sizes 8/2/2/1/1/2/2/4/10 = 0x20; the fact's fields match row for row."