AI-Written Turok Engine Unifies N64 Recomps
A new shared engine for Nintendo 64 Turok static recompilations was written almost entirely by Claude under human direction.
A shared codebase for Nintendo 64 static recompilations is available on GitHub as turok-engine. Built for Acclaim’s Turok engine family, which includes Turok 2: Seeds of Evil, the library handles TLB-mapped code, audio timing, DMA threads, and Controller Pak saves.
Almost all code, tests, and documentation in the repository were written by Claude under human direction and play-testing. Upstream projects that do not accept AI-generated code will not receive these contributions.
The repository provides tools like gen_syms.py to generate symbols for N64Recomp without manual decompilation, alongside runtime patches needed for tools like RT64.
How to try it
- Add
lib/turok-engineas a submodule to your N64 recompilation project pinned at a target commit. - Include
lib/turok-engine/src/*.cppin yourCMakeLists.txtbuild configuration. - Run
python3 lib/turok-engine/tools/gen_syms.pyfrom the game root using yoursyms/layout.tomlandsyms/names.tomlfiles to output game symbols.