nsmbu-recomp

nsmbu-recomp is a native port of New Super Mario Bros. U for Windows, Linux, and macOS that translates PowerPC code to C.

README

New Super Mario Bros. U: Native Port / Recompilation

This project compiles your copy of New Super Mario Bros. U into a native program. The release includes the runtime, build tools, and installer.

Important

There is no Nintendo code, no assets, and no game data in this project or its releases. You need your own legally dumped copy of the game. Nothing in this repo, in any release, or in the build process contains or downloads Nintendo IP.

Features

  • Windows, macOS, Linux, Android, and iOS — per-system notes.
  • Up to four players, each with a controller.
  • Save states — Shift+F1–F5 saves, F1–F5 loads.
  • Mods for Cemu graphics packs and shader packs.
  • GamePad screen in its own window, over the TV picture, or hidden.
  • On-screen controls on Android and iOS.
  • Screenshots of the TV picture — F10 by default.
  • Sound and language — volume, mute, and console language.
  • Gyro tilting with supported controllers, a mouse, the right stick, or the arrow keys. Set the source and sensitivity under Settings, then Controls. Tilt and recalibrate are rows in the Gyro Emulation group.

Experimental — each has a page under docs/features:

Controls
  • Settings. Press F12, or click the right stick (R3). On macOS, Cmd+,.
  • Full screen. F11 or Alt+Enter. On macOS, Cmd+F.
  • Save states. Shift+F1–F5 saves slots 1–5. F1–F5 loads those slots.
  • Screenshot. F10 saves the TV picture.
  • Mute. Press M to mute or unmute the game. The game keeps that choice.
  • GamePad screen. Ctrl+G shows or hides it. On macOS, Cmd+G.

Supported versions

USA 1.3.0 is the version this port is written against. A matching 1.3.0 update is the full support path for a standalone USA or Europe disc. The USA and Europe base discs alone (title version 0) are playable. Combo packs are title version 0 and have no separate update folder.

RegionTitle IDTitle versionStatus
USA00050000-10101d0064 (1.3.0)Supported
USA base disc00050000-10101d000Supported
Europe00050000-10101e0080 (1.3.0)Supported
Europe base disc00050000-10101e000Supported
USA (NSMBU + NSLU)00050000-1014b7000Partially Supported
Europe (NSMBU + NSLU)00050000-1014b8000Partially Supported
Japan00050000-10101c00—Not supported yet

Install

Download the release for your system from the Releases page. Put it in a folder you can write to. Start the app. The first start opens the installer. Each later start launches the game. Which file to open, and what the system requires, is on the page for your system under docs/user.

Choose your game

The installer accepts the versions in the table above. Give it one of these:

  1. Disc image. Use a .wux, .wud, or raw .iso file and its keys. A matching 1.3.0 update is optional.
  2. Cemu archive. Use a .wua file. This option needs no keys.
  3. Extracted folder. Use a folder with code, content, and meta. A 1.3.0 update merged into that folder is optional.

The installer asks you to pick that file or folder.

Keys

Skip this step if you chose a Cemu archive or an extracted folder.

A disc image needs its disc key and the Wii U common key. Type or paste each key, or point at a key file. You can also add a matching 1.3.0 update. Key file formats are in docs/user/keys.md.

Wait for the build

The installer prepares the game on your computer. A disc image or a Cemu archive is extracted into the release folder. An extracted folder stays where it is. The installer then builds the native game.

The first start takes a few minutes. When it finishes, start the app again to play.

Command line

These options belong to the game program. A release keeps that program in data/bin/nsmbu (nsmbu.exe on Windows). On macOS the same program is NSMBU.app/Contents/MacOS/nsmbu. -h or --help prints this list and exits.

  • --game DIR sets the folder that holds code, content, and meta. The default folder is game.
  • --save DIR sets the save folder. The default folder is nsmbu/save.
  • --open W-C opens that course and skips the intro. W-C is one world digit and a course number, such as 1-1.
  • --renderer API chooses metal or vulkan for this start. --renderer=vulkan is the same option.
  • --trace writes each host library call to the log.
  • --warm-shaders fills the Metal shader cache and then exits. With another renderer, the program prints an error and exits.
  • --renderer-smoke starts Vulkan, runs its smoke test, and then exits.

More

Contributing

Build from source, CLI commands, and developer docs are in CONTRIBUTING.md.

Notes

This repository was forked from the Wind Waker HD recompilation. The Collision Viewer is based on the collision viewer from Tsuru. The headers and the decompilation are from aboood40091/NSMBU-Headers.

Note

This project is made with the help of AI agents.