Skip to main content

mnltools.py

Python tools for the Mario & Luigi games.

Installation

pip3 install mnltools

Tools

Generic Nintendo DS Tools

mnl-nds-unpack

usage: mnl-nds-unpack [-h] [-d DATA_DIR] [-q] rom

Unpacker for NDS ROMs into the mnllib standard.

positional arguments:
  rom                   the ROM to unpack

options:
  -h, --help            show this help message and exit
  -d, --data-dir DATA_DIR
                        the directory to unpack to (default: 'data')
  -q, --quiet           only print warnings and errors

mnl-nds-pack

usage: mnl-nds-pack [-h] -o OUTPUT [-r REFERENCE_ROM] [-d DATA_DIR] [-q]

Packer for NDS ROMs from the mnllib standard.

options:
  -h, --help            show this help message and exit
  -o, --output OUTPUT   the ROM file to create
  -r, --reference-rom REFERENCE_ROM
                        an optional ROM to copy matching overlays from in
                        order to avoid having to compress them again. By
                        default, this is the output file if it is not STDOUT;
                        to disable this, set it to 'NONE'.
  -d, --data-dir DATA_DIR
                        the directory to pack (default: 'data')
  -q, --quiet           only print warnings and errors

Tools for Dream Team (Bros.)

dsp2rsd

usage: dsp2rsd [-h] [-o OUTPUT] [-q] [-e EXTRA_LOOP_SAMPLES] input

Converter from DSP to streamed RSD (RedSpark) audio.

The DSP must use exactly 1 frame per interleave (14 samples per interleave). One way to get such a file is to use the RedSpark branch of the VGAudio fork: https://github.com/MnL-Modding/VGAudio/releases

positional arguments:
  input                 the DSP file to convert

options:
  -h, --help            show this help message and exit
  -o, --output OUTPUT   the output RSD file (default is the input file with
                        the extension `.rsd`, or STDOUT if the input is STDIN)
  -q, --quiet           only print warnings and errors
  -e, --extra-loop-samples EXTRA_LOOP_SAMPLES
                        the number of extra samples to add to the end of the
                        file when looping, in order to prevent noise (default:
                        212996)

mnl-dt-sounddata-repack

usage: mnl-dt-sounddata-repack [-h] [-q] sound_data bank directory

Repacker for the SoundData.arc file used in Mario & Luigi: Dream Team (Bros.).

positional arguments:
  sound_data   the SoundData.arc file to repack
  bank         the ID of the bank to repack
  directory    the directory containing the `.rsd` files to pack

options:
  -h, --help   show this help message and exit
  -q, --quiet  only print warnings and errors

Metadata

Release files for mnltools 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mnltools 1.0.1
File Size Uploaded
mnltools-1.0.1.tar.gz 19.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mnltools 1.0.1
File Interpreter ABI Platform
mnltools-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 43.1 kB

Release files / mnltools-1.0.1.tar.gz

Download URL mnltools-1.0.1.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
929d62347ff1ac37f85a2953b8358f672e9bb4a01d6da419b18f05f33f2bc461
BLAKE2b-256 checksum
How to use checksums
221d5616ee43f546614ef0d74c17fd95ee5e5a84fbe10941fc2c979adb22ec6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.2 Linux/6.13.7-arch1-1

Release files / mnltools-1.0.1-py3-none-any.whl

Download URL mnltools-1.0.1-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8ea0e5493363e84519fd170a956f066a7c9b6621b0b37df68cbfe40485caf4f
BLAKE2b-256 checksum
How to use checksums
af75c3f98b6732f4f953d8a6060d1a90ce922a6a78f5c58707e41d16bb114519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.2 Linux/6.13.7-arch1-1

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page