NFS Recompiled
The original game's compiled code translated into a native program for a new platform, usually a PC port.
Links, repository & detailsAbout
Need for Speed II (1997) and Need for Speed III: Hot Pursuit (1998) are the second and third games in Electronic Arts' Need for Speed racing series, released for PlayStation and Windows; Hot Pursuit made police pursuits a major part of gameplay. NFS Recompiled is a static recompilation of Need for Speed II: Special Edition and Need for Speed III: Hot Pursuit from their original Win32 executables into portable C++ that runs natively on Linux. A Python disassembler emits C++ that runs on a virtual x86 CPU, backed by reimplementations of 18 Win32 API modules and an SDL2/OpenGL layer that translates 3Dfx Glide calls into OpenGL. The author calls it a toy project, but says it works.
How it differs from the original
It replaces the original Windows runtime (DirectX, Glide) with SDL2 and OpenGL so the games run natively on Linux; the game data itself must still come from the original CDs.
Getting started
Install the game from the original CD (on Linux via Wine) and copy the CD's Fedata and GameData folders into the install directory, then run the executable with zero, one or two path arguments pointing to the install and CD data. Building from source needs CMake, a C++17 compiler, SDL2, OpenGL and NASM; pre-generated C++ is included, so the original executables are only needed to regenerate it.
Known issues & limitations
- project-status: Toy/experimental static recompilation project; README and CMakeLists mostly AI-generated.
What you need to run it
Features
- It runs natively on Linux and may run on other platforms.
How to install
- Run the executable from a terminal; with no arguments it uses the current directory for game and CD data.
- Pass one path to use it for both the installed game files and CD files.
Summarised from the project's README.
Media
Licensing & legal
- The author notes that the README and CMake build files were mostly AI-generated.
Additional notes
- Build option
- A strict 80-bit FPU emulation build option is required to avoid NFS III software-renderer glitches on Linux.
FAQ
- What is NFS Recompiled?
- NFS Recompiled is an open-source recompilation of Need For Speed II and Need For Speed III: Hot Pursuit. The original game's compiled code translated into a native program for a new platform, usually a PC port. The original game ran on Windows.
- Do I need the original game files to run NFS Recompiled?
- Yes. The project does not include the original game's assets, so you need your own copy. Requires original game installation from Need for Speed II: Special Edition or Need for Speed III: Hot Pursuit CD-ROM.
