PylibMS
PylibMS is a library built in Python 3.12+ for the libMessageStudio (LMS) proprietary file formats (msbt, msbp,
msbf) from Nintendo. It supports the following:
| Format | Read | Write | Configuration Support |
|---|---|---|---|
| MSBT | ✅ | ✅ | Complete attribute decoding + tag decoding down to official mstxt Nintendo tool syntax. |
| MSBF | ✅ | ✅ | Flexible node + parameter decoding through configuration definitions. |
| MSBP | ✅ | ❌ | N/A |
This library is designed to support LMS revision 3.0+ from most Nintendo consoles.
Note: MSBF files that use FLW1 and FLW2 are not supported, and will not be supported as they are revision <3.0 of LMS.
Features and Usage
Simple preview of the library is below. See the wiki for more explanations and examples.
Reading
MSBT/MSBF
from lms.message.msbtio import read_msbt_path
from lms.flowchart.msbfio import read_msbf_path
msbt = read_msbt_path("Game.msbt")
msbf = read_msbf_path("Game_Flowchart.msbf")
Writing
from lms.message.msbtio import write_msbt_path
from lms.flowchart.msbfio import write_msbf_path
write_msbt_path("Out_Game.msbt")
write_msbf_path("Out_Game_Flowchart.msbt")
Adding/Editing Presets
To add or edit Preset, you may create an issue with the relevant yaml file and the game it is for.
Installation
pip install PylibMS
Build Instructions
Python version must be >=3.12.
Clone the repository, then run pip install (venv recommended)
git clone https://github.com/AbdyyEee/PylibMS.git
cd PylibMS
pip install -e
Credits & Sources
- Nintendo-File-Formats by Kinnay: For existing information on the MSBT and MSBP file formats.
- Trippixyz: For helping me get started general decompilation of the formats and general help.
- AeonSake: Inspiration for some the implementation of the library and a bit of general help.
Release files for PyLibMS 4.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pylibms-4.1.1.tar.gz | 64.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pylibms-4.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 150.2 kB
Release files / pylibms-4.1.1.tar.gz
| Download URL | pylibms-4.1.1.tar.gz |
|---|---|
| Size | 64.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fff7274199e9a8b1bf0682b0079b2a68695e8ac37fa2cbcdd8ed22f38e8a0dcd
|
|
BLAKE2b-256 checksum How to use checksums |
0300b0d5e89897275555d77544ff287b1061beca95353f12b97568277e4af875
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / pylibms-4.1.1-py3-none-any.whl
| Download URL | pylibms-4.1.1-py3-none-any.whl |
|---|---|
| Size | 85.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6853b13690e9a2996a293438477106769a6cae759dc17e405158ec2b09d70efa
|
|
BLAKE2b-256 checksum How to use checksums |
908d3715739d484e997fbc114b0da1f13c7671917053af5b0fc07618b76244fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|