Recomp / Games / PlayStation 2
GT4 Decomp
AI-assisted matching decompilation of the Gran Turismo 4 engine for the PS2. Contains no game data.
Matching decomp AI-assisted wip · 93.04%3S Decomp · Ace Combat 5 static recompilation · Battle Stadium D.O.N PC port
About GT4 Decomp
GT4 Decomp is a matching decompilation of the Gran Turismo 4 engine for the PlayStation 2. The goal is C++ source that, built with the original Sony ee-gcc 2.96 compiler, produces exactly the same instructions as the game's main executable, CORE.GT4. Most of Gran Turismo 4's game logic sits in Adhoc scripts, which the separate OpenAdhoc project already recreates; this project covers the executable that runs those scripts. The maintainer is open about the method: AI agents (Claude) driving the project's tools did most of the matching, with each function checked by the compiler and a comparison step rather than by eye.
It is not something you can play. You need your own copy of the NTSC-U release (SCUS-97328, version 1.01) to extract the executable, plus Linux or WSL and Python to run the build, which then checks that it reproduces your executable byte for byte. No game data is included.
By the README's November 2026 figures, 30,245 of 30,875 functions match (98 percent), covering about 89.6 percent of the code bytes, and the full build reproduces the original executable, with unmatched parts assembled from a disassembly of your own copy. Around 29 percent of the initialised data is also rebuilt from source. The repository includes written notes on the engine's subsystems, its 509 classes and how C++ hooks into the script engine. There are no releases, and the few open issues are individual functions still to match or rename.
A long-term native port exists as a separate project, GT4 Native, which the README describes as experimental and not playable. A sister Tourist Trophy decompilation shares matched functions with this one. No other Gran Turismo 4 projects are listed on this site.
Decomp progress
Facts
- Original
- Gran Turismo 4 (2004)
- Platform
- PlayStation 2
- Method
- Matching decomp
- Provenance
- AI-assisted · CLAUDE.md in repo root what this means
- Status
- wip · 93.04% matched
- Licence
- MIT
- Team
- gustavocanepa
- Started
- 2026-10
- Needs the original
- Yes: you supply your own legally obtained copy
How to get it legally
This project ships code only. Build or download it from the official repository, then supply data from a copy of Gran Turismo 4 you own. Recomp never links to ROMs, discs or game data.
This project was decompiled by gustavocanepa. Facts last checked 2026-10-14. Suggest a correction
Sources
Related
All games →3S Decomp
Street Fighter III: 3rd Strike (PS2)
Decompilation of Street Fighter III: 3rd Strike for PlayStation 2, aiming to recreate source that could allow ports.
Ace Combat 5 static recompilation
Ace Combat 5: The Unsung War
Windows port of Ace Combat 5 where a Python tool translates every function of the PS2 main executable to native code, with native rendering.
Battle Stadium D.O.N PC port
Battle Stadium D.O.N
Native Linux and Windows port of the PS2 crossover fighter, translated with PS2Recomp and drawn through PCSX2's GS renderer. Releases carry the runtime and a Clang toolchain; the game code is generated and compiled on the player's machine from their own disc image.
Bokura no Kazoku decomp
Bokura no Kazoku
Matching decompilation of the Japanese PS2 family life sim Bokura no Kazoku, with C++ classes recovered from vtables and RTTI.
Bomberman Hero Decomp
Bomberman Hero (US)
Decompilation of the US release of Bomberman Hero.
Bounce Tales Decompilation
Bounce Tales
Decompilation of Rovio's 2008 J2ME game Bounce Tales; idle since 2023.