This project uses uv to manage Python tools and dependencies automatically. No manual Python setup is required.
- Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" - macOS / Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Debian/Ubuntu:
sudo apt install build-essential git binutils-mips-linux-gnuArch Linux:
sudo pacman -S base-devel
# Install AUR package: mips64-elf-binutilsClone the repository recursively to include necessary tools:
git clone --recursive https://github.com/klorfmorf/mnsg.git
cd mnsgNote: If you forgot to use
--recursiveor if folders liketools/m2cappear empty, run the following command to fetch the submodules:git submodule update --init --recursive
Place your retail US ROM in the configuration directory and name it baserom.z64:
config/usa/baserom.z64
(If you are building a different version, place the ROM in config/<version>/baserom.z64)
Run the setup command. uv will automatically download the correct Python version and install dependencies defined in the lockfile before extracting assets.
make setupBuild the ROM:
makeIf you are editing Python scripts and want your editor (Visual Studio Code, PyCharm, etc.) to recognize libraries, run:
uv syncThis creates a standard .venv folder that your editor can use for autocomplete and linting.