Skip to content
klorfmorfPublic

About

A work-in-progress decompilation of Mystical Ninja Starring Goemon for the Nintendo 64.

Resources

Stars

12 stars

Watchers

5 watching

Forks

Repository files navigation

Mystical Ninja Starring Goemon Decompilation

Building

Prerequisites

1. Install uv

Install uv, which manages Python, project dependencies, and Ninja for the build:

curl -LsSf https://astral.sh/uv/install.sh | sh

2. Install MIPS Binutils and a Host C Compiler

A host C compiler like GCC is required to perform C syntax checks and collect header dependencies. You do not need to install IDO 5.3 or asm-processor manually, as they are downloaded automatically during the build.

Debian / Ubuntu:

sudo apt install build-essential git binutils-mips-linux-gnu

Fedora:

sudo dnf install gcc git binutils-mips64-linux-gnu

Arch Linux:

sudo pacman -S base-devel
# Also install the mips64-elf-binutils package from the AUR.

Setup and Build

  1. Clone the repository along with its submodules:

    git clone https://github.com/klorfmorf/mnsg.git --recurse-submodules
    cd mnsg
  2. Place a copy of your US retail ROM at config/usa/baserom.z64.

  3. Configure and build the ROM:

    uv run configure.py
    uv run ninja

You can also use the following ninja commands for common build tasks:

Command Description
uv run ninja Build the ROM and verify its SHA-1 checksum.
uv run ninja build/usa/src/sys/anime.c.o Build a single object file.
uv run ninja tools Download all optional tools (m2c, asm-differ, decomp-permuter, and objdiff-cli).
uv run ninja -t clean Remove build outputs (pass -g to remove downloaded tools and split files as well).

Decompilation Tools

Once you have downloaded the optional tools with uv run ninja tools, you can run the Python-based utilities through uv:

uv run python build/tools/m2c-*/m2c.py -t mips-ido-c asm/usa/nonmatchings/...
uv run python build/tools/asm-differ-*/diff.py -mw FUNC
uv run python build/tools/decomp-permuter-*/permuter.py DIR

Running configure.py also generates an objdiff.json configuration file for use with objdiff.

About

A work-in-progress decompilation of Mystical Ninja Starring Goemon for the Nintendo 64.

Resources

Stars

12 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages