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

Format:Nintendo MSBF flow file

From ReverseEngineering.wiki
Format
Vendor Nintendo
Magic 4D 73 67 46 6C 77 42 6E (MsgFlwBn)
Extensions .msbf
On this wiki Facts · Code · Notes · Topics

Flowchart file of Nintendo's LMS library (.msbf, magic MsgFlwBn): a global pool of 16-byte nodes (message, branch, event, entry, jump) that drive dialogue and call into MSBT messages.

Identification

Magic MsgFlwBn, same container as Format:Nintendo MSBT message file. The documentation read covers version 3. Blocks: FLW3 (nodes), FEN1 (flowchart labels), REF1 (purpose unknown in the documentation).

FLW3 block

u16 node count, u16 branch table index count, 12 bytes of padding, then 16 bytes per node, then 2 bytes per branch-table id, then a string table. A node: type u8 (1 Message, 2 Branch, 3 Event, 4 Entry, 5 Jump), parameter type u8 (only for branch and event nodes), 2 reserved bytes, 4 bytes of parameter data, 8 bytes of node data. Parameter types decide how the 4 parameter bytes are split: 0 u32; 1 u16,u16; 2 u16,u8,u8; 3 u8,u8,u16; 4 u8 x4; 5 string offset (from the start of the block into the string table); 6 u32. A message node asks the game to show a message from an MSBT.

Unverified

Unverified: the node-data layout of each node type and the FEN1 label layout were not read for this page; see the Nintendo-File-Formats msbf.md page.

Code & repositories

  • https://github.com/kinnay/Nintendo-File-Formats @ b9ed426b16d04e24294f76de10f2e9b6922a9c8b · license: none
    Documentation wiki of Nintendo formats; src/libs/lms holds the MSBT, MSBP and MSBF pages. No license file was detected: the wiki cites facts only.
    Tested on: source read, not run: documentation read, nothing run · checked 2026-10-19; last activity 2026-10-11; no license: not reusable