MsbtLib
MSBT Library by GingerAvalanche on GitHub.
Last updated
MSBT Library by GingerAvalanche on GitHub.
Last updated
is Nintendo's text container format. This library parses the binary format into editable C# classes that can be serialized to a pseudo HTML markup or back to binary.
Usage examples for reading, writing, and editing MSBT files using .
Documentation in progress.
Extra Info
One Choice - <choice1=[key] />
Two Choice - <choice2 0=[key] 1=[key] cancel=[index] />
Three Choice - <choice3 0=[key] 1=[key] 2=[key] cancel=[index] >
Four Choice - <choice4 0=[key] 1=[key] 2=[key] 3=[key] cancel=[index] >
Sound - <sound field_1=[uint8] field_2=[uint8] />
Another Sound Type - <sound2=[uint8] />
Variable - <variable kind=[uint16] name=[name] /> (name must correspond to a variable name in the executable)
These keys are keys for other localized strings. Usually, those keys are read from the same MSBT, but in the case of shops, they are read from the shop NPC's MSBT. The keys are read as %04d-formatted strings, e.g. '4' is read as '0004'. The indexes are for which choice represents a cancellation.
It is currently unknown how the game uses these uint8s
It is currently unknown how the game uses these uint16s
The C# implementation of MSBT can be downloaded from GitHub -
Credits - Original Rust Implementation - C# Implementation and Usage Instructions