The Lord of the Rings: The Return of the King (GameCube) · Works · Source available

Recompiled The Lord of the Rings: The Return of the King (GameCube) into a native port with LLMs

Can I play it?
Works
Original game
GameCube
Runs on
Host, Switch
You need
Your own copy of the game. I never link game files.
What it is
Static recompilation
by NiceneNerd RepositorySave and follow0 views
View JSON
The Lord of the Rings: The Return of the King (GameCube): A native port of the GameCube title The Lord of the Rings: The Return of the King created via static recompilation.
Image: GitHub (NiceneNerd/Reditus-Regis-NX)

Who did what

The author explicitly characterizes the AI-generated code as potentially messy, comparing the LLM to a talented assistant with substance abuse issues. The project requires the user to provide their own disc image for the build process.

What was done

Reditus Regis NX is a native port of The Lord of the Rings: The Return of the King (GameCube) built by statically recompiling the original PowerPC binary into C. The project relies on LLMs for code generation and a custom runtime to emulate GameCube hardware.

Reditus Regis NX is a native port of The Lord of the Rings: The Return of the King (GameCube, disc ID GKLE69). The project functions by statically recompiling the original game binary, where PowerPC code is translated into C and compiled for the host platform. A custom runtime reimplements GameCube hardware surfaces, including CPU, threads, interrupts, GX/GPU, VI, DVD, EXI+CARD, SI/PAD, and DSP/AX audio. The author reports that the software is almost entirely produced by LLMs, which were used to overcome time constraints. The porting process involves using decomp-toolkit to split the DOL, followed by translation and build steps via Python scripts and Ninja. Correctness is measured by capturing the game's GX command stream and comparing the output against Dolphin. The author notes that the game runs past the movie sequence without crashing, verified by a 214-second test run. The project is available at https://raw.githubusercontent.com/nicenenerd/reditus-regis-nx/HEAD/README.md.

Try it

setup
  1. Run python3 tools/fetch_dtk.py to get the decomp-toolkit. 2. Run python3 tools/extract_dol.py <disc.iso> to extract the DOL. 3. Run python3 tools/census.py to split and translate. 4. Run python3 configure.py --target host and then ninja -C build/host to build.

Discussion

Your library

Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. An automated check matched its claims against them on 30 Nov 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.

The weekly dump: new projects, once a week