Fallout 3 fully decompiled, Fallout 4 now under way
Fallout 3 is fully decompiled: 63,681 of 63,682 functions recompile byte for byte, in 18 days, with AI. Work on Fallout 4 is already under way.
Fallout 3's code, rewritten in C++
The f3decomp project has published on GitHub the decompilation of Fallout 3, in its PC version 1.7.0.3. Every function of the game was rewritten in C++, then compiled with the original compiler, Visual C++ 2005 SP1. A function was only accepted if the resulting code was identical, byte for byte, to that of the game's executable.
A decompilation done by AI
The method is unprecedented at this scale: each function is handed to an AI agent, which writes C++, compiles it, compares the result with the game and tries again until it gets a perfect match. The project's site credits each function to the model that wrote it, and an automatic check verifies every contribution. Contributions have been closed since 21 November.
What it allows, and what it does not
Next target: Fallout 4
The team has opened f4decomp for Fallout 4, in its PC version 1.10.163, built with Visual C++ 2012. The principle is the same: anyone can have their AI agent contribute, and the source code will only be published once every function has been rebuilt. On the debate AI raises in decompilation, see decomp.dev and AI, and for a decompilation followed by a port, Super Mario Galaxy.
Sources: Fallout 3 decompilation (GitHub) · f3decomp report · Method (f3decomp) · f4decomp
Fallout 3's code, rewritten in C++
The f3decomp project has published on GitHub the decompilation of Fallout 3, in its PC version 1.7.0.3. Every function of the game was rewritten in C++, then compiled with the original compiler, Visual C++ 2005 SP1. A function was only accepted if the resulting code was identical, byte for byte, to that of the game's executable.
- 63,682 functions to rebuild, for more than 9 million bytes of code;
- 63,681 match exactly; the last one, a function of the Havok physics engine, remains open, with a bounty;
- the work took 18 days, from 2 to 20 November 2026, building on the work already done on Fallout: New Vegas.
A decompilation done by AI
The method is unprecedented at this scale: each function is handed to an AI agent, which writes C++, compiles it, compares the result with the game and tries again until it gets a perfect match. The project's site credits each function to the model that wrote it, and an automatic check verifies every contribution. Contributions have been closed since 21 November.
What it allows, and what it does not
- the repository contains source code only: no game files, no executable, nothing playable;
- you need your own copy of Fallout 3 on PC to do anything with it;
- it is aimed at modders and researchers, who have been working on the game for more than fifteen years, and it also serves its preservation;
- the part written by the contributors is in the public domain (CC0); the game remains Bethesda's property.
Next target: Fallout 4
The team has opened f4decomp for Fallout 4, in its PC version 1.10.163, built with Visual C++ 2012. The principle is the same: anyone can have their AI agent contribute, and the source code will only be published once every function has been rebuilt. On the debate AI raises in decompilation, see decomp.dev and AI, and for a decompilation followed by a port, Super Mario Galaxy.
Sources: Fallout 3 decompilation (GitHub) · f3decomp report · Method (f3decomp) · f4decomp
No comments