Skip to main content

A python library for parsing and editing .msbt binary files

Project description

pymsbt

A simple python library for reading and editing .msbt (Message Studio Binary Text) files, which is a file format created by Nintendo for use in their games. These files are used for localization and displaying text to the player. This library was created for batch-editing or reading msbt files to mod Nintendo games, such as with a translator api or regex expression. This could be used to create language translations that aren't officialy supported by the base game.

Installation

pip install pymsbt

Example usage

( Make sure to read the wiki for more information )

Reading a msbt file

from pymsbt.msbt_read import MSBTFile

msbt = MSBTFile("./msbt/ActorMsg/Attachment.msbt")

print(msbt.LBL1.labels)
print(msbt.TXT2.texts)
print(msbt.ATR1)

Editing a msbt file (COMING SOON)

from pymsbt.msbt_read import MSBTFile
from pymsbt.msbt_write import MSBTWriter

msbt = MSBTFile("./msbt/ActorMsg/Attachment.msbt")
msbt.TXT2.texts[0][0]['data'] = 'test' # see the wiki for more information about the structure of text data

write = MSBTWriter(msbt, "output.msbt")
print("Wrote msbt file to", write.filepath)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymsbt-1.0.1.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymsbt-1.0.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file pymsbt-1.0.1.tar.gz.

File metadata

  • Download URL: pymsbt-1.0.1.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pymsbt-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fa7045d4f2c9753984346abf892e92188df7a887a0e63b0dbbd4bccb32f52ab8
MD5 50a2d4270b441a76c8ac96065e772cfb
BLAKE2b-256 c03569b4cddee13434e9b6774058c55c55fda4f962fe4ed567539c635ce57add

See more details on using hashes here.

File details

Details for the file pymsbt-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pymsbt-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pymsbt-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a6a19481aaec0ca3c232e0848dd27bbc821ffa847058daa1eac8923dc2f3e55
MD5 80d4802b8f6030c2fb650519a744d4e8
BLAKE2b-256 4e69275f399a7950791afe6998ddd0a30556dc6f3bcd0262f0cb65567ca81496

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page