MSBT file (Pikmin 3)

From Pikmin Technical Knowledge Base
Revision as of 17:26, 14 November 2020 by Espyo (talk | contribs) (Added msbt.py. Also added the changes I needed to make to get this to work with Pikmin 3.)
Jump to navigation Jump to search

To do: Document the file format.

.msbt files contain the strings in Pikmin 3. They can be found in the /content/*/system/message.szs files. For a list of MSBT files in the game, and what type of strings they usually contain, see MSBT file list.

Tools

  • Kuriimu
  • ObsidianX's msbt.py (MSBT <-> JSON)
    • To use this tool with Hey! Pikmin, you will need to first change the parameters in JSON's text dumper to force ASCII. Find the line with json.dump, and change ensure_ascii=False to ensure_ascii=True.
    • In addition, in order for it to work with Pikmin 3, find the line with substrings.append, and change the line to substrings.append(string.decode('utf-16-%s' % ('-le' if self.order == '<' else '-be'), 'replace')).