# NuWorld on Nintendo Switch (unofficial)

UluP Studio

An unofficial homebrew port of [CrashWOC: NuWorld](https://github.com/denzi-gh/crashwoc-nuworld) to the Nintendo Switch, the same native code as the PC version, built for the console with devkitPro. It contains no game data: you need your own copy of the game (see the [supported discs](../README.md)). **NuWorld is the work of denzi and its contributors. If you enjoy it, support them:** star [the original repository](https://github.com/denzi-gh/crashwoc-nuworld) and join their [Discord](https://discord.gg/kmCPpW4KvJ). Please report Switch problems [here](https://github.com/UluP-Labs/crashwoc-nuworld-nx/issues), not on their tracker. ## Status - The whole game runs, start to end, with saves. - 60 fps in nearly every level with the overclock below. Crash and Burn runs at about 40 fps. - Tested on a Switch 1 (Atmosphère) with the PAL v2.01 Platinum disc. ## What you need - A Switch that runs homebrew (Atmosphère). - A disc image of your own copy of the game (`.iso`, or `.bin` with its `.cue`). - Recommended: [sys-clk](https://github.com/retronx-team/sys-clk) or a similar tool, to overclock. ## Install 1. Extract `NuWorld-Switch.zip` to the root of your SD card. It puts `NuWorld.nro` in `sdmc:/switch/NuWorld/` and the level previews in `sdmc:/switch/NuWorld/previews/` (NuWorld downloads them on PC; the Switch port has no network code). The previews are optional: without them the game shows the original pictures. Copying only `NuWorld.nro` also works. 2. Copy your disc image to `sdmc:/switch/NuWorld/import/` (create the folder). 3. Open the Homebrew Menu **from a game, holding R** (application mode), or use a [forwarder](#forwarder-optional). The album applet does not have enough memory. 4. Start NuWorld, press **Import** next to your disc image and wait until it reaches 100%. This takes a while and only happens once. 5. Press **Start game**. ## Forwarder (optional) A forwarder puts NuWorld on the HOME menu. It starts the `.nro` as an application, with all the memory, so you no longer need to hold R on a game. Build your own on your console, since a forwarder made on someone else's points to their SD card's path and needs their keys: - [sphaira](https://github.com/ITotalJustice/sphaira) (the homebrew menu can make forwarders), or [Switch-NSP-Forwarder](https://github.com/TooTallNate/switch-nsp-forwarder), both on the console. - [NTON](https://github.com/rlaphoenix/nton) on a PC: `nton build "/switch/NuWorld/NuWorld.nro"`. **sys-clk profiles follow the title ID.** A forwarder has its own title ID, so the overclock you set for hbmenu or for a game does not apply to it: heavy levels (Arctic Antics, for example) then run at stock clocks and slow down. After creating the forwarder, open it, then set the CPU and GPU clocks for it in sys-clk (see [Overclock](#overclock)). Installing a forwarder means installing an unsigned NSP, which is up to you. Do not move or rename `NuWorld.nro` afterwards, or the forwarder stops working; replacing it with a newer build at the same path is fine. ## Overclock Set the CPU to **1785 MHz** and the GPU to **921 MHz** for NuWorld in sys-clk. At stock clocks most levels still play, but the busiest ones slow down. ## Controls The game plays with the Joy-Con or a Pro Controller like on a PS2 pad. | Buttons | Action | |---|---| | L3 + R3 | Open or close the debug menu (settings, level select, N. Hanced Movement) | | Left stick | Move the menu cursor | | A | Click | | Right stick | Scroll | | B | Close the menu | Names are entered with the game's own button grid, not the Switch keyboard. ## Known issues - Crash and Burn runs at about 40 fps. - The Discord, the feedback links and the updater of the PC version do nothing on the Switch. ## Building The [switch.yml](../.github/workflows/switch.yml) workflow builds `NuWorld.nro` on GitHub Actions on every push to `main`, or from the Actions tab and download the `NuWorld-switch` artifact. To build locally you need devkitPro (devkitA64, libnx, switch-mesa, switch-glad), Clang 22, Python 3.11+ and [sdl3-nx](https://github.com/nx-mod/sdl3-nx) (branch `switch-sdl3-deko3d`); the workflow lists every step. ```sh cmake -S . -B build/switch -G Ninja -DCMAKE_TOOLCHAIN_FILE=$DEVKITPRO/cmake/Switch.cmake \ -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/opt/sdl3-nx cmake --build build/switch ``` Every change for the console is behind `NW_SWITCH` (or `__SWITCH__`), so the PC build is unchanged. In short: - The decompiled game code is built with Clang (`tools/nxcc.py`), the rest of NuWorld with devkitA64's GCC. - The PS2 FPU's rounding (toward zero, denormals flushed) is set in the AArch64 FPCR instead of the x86 MXCSR. - Game textures also get an RGBA8 copy with the palette applied and mipmaps, so the GPU filters them in hardware instead of the shader fetching every texel; uniforms and texture parameters are cached per program. - The debug menu takes a cursor driven by the Joy-Con; the Switch keyboard is off. - Files are replaced by removing the old one first (the SD card's FAT refuses to rename over a file). ## Credits - **NuWorld and the decompilation**: [denzi](https://github.com/denzi-gh) and the NuWorld contributors. - **Switch port**: [Manu](https://github.com/Emanuele110706) ([UluP Studio](https://ulupstudio.com)) together with Claude (Anthropic's AI): the code was written with Claude, and Manu drove the project, tested every build on real hardware and tracked down the problems with the logs. ## License GPL-3.0, like NuWorld, see [LICENSE](../LICENSE). Not affiliated with Nintendo, Activision or Sony.