PyLibMS
PyLibMS is a library built for Python 3.10 and above for the libMessageStudio (LMS) proprietary file formats from Nintendo.
The following is supported
| Format | Read | Write | Configuration Support |
|---|---|---|---|
MSBT |
✅ | ✅ | Support for full attribute (ATR1) decoding. Tag decoding 1:1 with the official Nintendo .mstxt file format. |
MSBF |
✅ | ✅ | Support for custom node definitions, attaching names and descriptions to nodes. Altering parameter datatypes for flexibility between games. |
MSBP |
✅ | ❌ | Generating configuration files for use with MSBT files. |
This library is designed to support LMS revision >=3.0. These include files generated for late Wii titles, Nintendo 3DS, Wii U, Mobile, Nintendo Switch and Nintendo Switch 2 games.
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.10 or higher.
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.7
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.7.tar.gz | 65.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pylibms-4.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 151.5 kB
Release files / pylibms-4.1.7.tar.gz
| Download URL | pylibms-4.1.7.tar.gz |
|---|---|
| Size | 65.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52b6d5eda0c5d387f93a7c0cc9a724724386a86d1601e8ee2cc622f8dca7127f
|
|
BLAKE2b-256 checksum How to use checksums |
844420520e22f12404d3c2232aa40f506938afbf1e6c476d576462d027ae4c5f
|
| 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.7-py3-none-any.whl
| Download URL | pylibms-4.1.7-py3-none-any.whl |
|---|---|
| Size | 86.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51a7ffc65b0d737f9524d557d0f3edba4195a30e5818a84ea16a6019287b9b02
|
|
BLAKE2b-256 checksum How to use checksums |
799caf5fcfe921ade87afbfc0615eff81cbf385dcbeed98f1ca6f4915a520ea1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|