Skip to content

About

DRIG: an open-source reimplementation of Race Driver: GRID (2008) for modern systems

Topics

Resources

Stars

43 stars

Watchers

4 watching

Forks

Repository files navigation

DRIG banner

DRIG: an open-source engine for Race Driver: GRID (2008)

DRIG: an open-source reimplementation of Race Driver: GRID (2008) for modern systems

CI Release Downloads Stars License: GPL-3.0-or-later Last commit Issues

Game code ported Game code documented Content working Gameplay scenarios


Download · Install · Changelog · Build from source · Screenshots · Report an issue · Sponsor


DRIG is a reimplementation of Codemasters' Race Driver: GRID (2008) in Rust with the Bevy engine. The goal is a 1:1 recreation: the same handling, AI, damage, events and menus as the original game, running on a modern, open codebase.

The repository contains no game assets. The engine reads tracks, cars, textures, sounds and game data from your own installed copy of GRID, the same way OpenMW uses Morrowind's data files or OpenRCT2 uses RollerCoaster Tycoon 2's.

image

Beyond the original look, I'm also experimenting with optional graphics improvements such as DLSS/DLAA and ray tracing (see the roadmap).

moving-bias-native01

The physics engine and damage system have already been fully rebuilt from scratch:

row117-crash(1)

(In this GIF, you can see some glitches with the shadows and trees. It was recorded on an early prototype, and these issues have since been resolved already)

Download and play

Get the latest release and download the file for your system:

System File
Windows DRIG-vX-windows-x86_64.exe: one program file, nothing to unpack
RecompLauncher DRIG-vX-windows-x86_64.zip: the same Windows program with the launcher's recomplauncher.json and the licence notices; the Linux packages carry the manifest too (docs/RECOMPLAUNCHER.md)
Linux DRIG-vX-linux-x86_64.AppImage (chmod +x it and run it; needs FUSE 2, or start it with --appimage-extract-and-run) or DRIG-vX-linux-x86_64.tar.gz (unpack it and run drig)
macOS the DMG, added to the release by the Mac build
Android DRIG-vX-android-arm64.apk: experimental arm64 build for Android 12 or newer, signed with the DRIG release key; see Android

No game data is included. On desktop you need your own installed Steam or GOG copy of Race Driver: GRID (2008) for PC. DRIG checks your Steam libraries first and can also find a registered GOG installation on Windows. To choose GOG when both editions are installed, or to use a manually copied game folder, start DRIG with --game-root "D:\Games\GRID" (using your actual path), or set root under [game] in DRIG-data/settings.ini. --help lists every player option, and --career starts the career.

Put the program in a folder you can write to. DRIG keeps your settings, records, replays and the log in a DRIG-data folder next to it. To update, replace the program file; DRIG-data stays.

The builds are not signed by Microsoft or notarized by Apple, so the system may warn you the first time:

  • Windows SmartScreen: click "More info", then "Run anyway".
  • macOS Gatekeeper: if it refuses to open the app, open System Settings, Privacy & Security, and click "Open Anyway".

Each release's notes list what was tested on each system. SHA256SUMS.txt in the release lets you check your download.

Status

Early and experimental, but you can already race. What works today:

  • Driving. The vehicle physics, tyres, suspension, gearbox and driver aids (traction control, stability control, braking assist, automatic or manual gearbox) are ported from the original code.
  • Events. Circuit races, Time Trial, Drift (Battle, GP, Freestyle), Touge, Demolition Derby, the Le Mans 24 Hours and the championship series (Touring, GT1, GT2, Pro Tuned, Open Wheel, Prestige, Le Mans Series and others). You choose them from the original Race Day menu.
  • AI opponents that follow the original racing lines, overtaking and drift logic.
  • Damage. Body contacts, collision damage, wheel detachment, mechanical and handling damage.
  • Audio. Engine, gear changes, tyres and collisions.
  • Career. GRID World with its events, fields, payouts, head-to-heads, driver offers, eBay Motors and the Le Mans selection events. Start it with --career; it is not in the main menu yet, and its window is fixed at 1280x800 for now.
  • Front end. The Race Day menu, pause menu, HUD, results screens and the options for sound, screen and wheel controls. Every screen fades through the loading screen into the next.
  • Replays and Flashback. Instant Replay with the race cameras and slow motion, and Flashback to rewind and jump back in. Some replay sounds are still missing.
  • Records. Time Trial records are saved.
  • Graphics. The original's lighting, shadows, post-processing, tyre marks, smoke and crowds are rebuilt, with differences that remain. Window or fullscreen, resolution, an automatic render scale that holds the frame rate, and shadow quality are settings and player options.
  • Input. Keyboard, gamepad and steering wheel.
  • Portable releases. One download with no installer; your data stays in DRIG-data next to the program.
  • Android. An experimental build with tilt and touch steering and gamepad support.

Expect crashes, physics blow-ups, missing features and visual differences from the original. Fidelity work is tracked in docs/FIDELITY_BACKLOG.md. What comes next, in order: docs/ROADMAP.md.

Screenshots

All shots are DRIG's own renderer at 1600x900 (scaled to 1280x720), HUD included, with game data read from a purchased copy. Captured with tools/readme_screenshots.py.

Shibuya, Tokyo: Chevrolet Lacetti, chase camera
Shibuya, Tokyo
Chevrolet Lacetti, chase camera
Yokohama Docks: Nissan Silvia, cockpit camera
Yokohama Docks
Nissan Silvia, cockpit camera
Long Beach: Toyota Supra, chase camera
Long Beach
Toyota Supra, chase camera
San Francisco: BMW 320si, far chase camera
San Francisco
BMW 320si, far chase camera
Spa-Francorchamps: Aston Martin DBR9, chase camera
Spa-Francorchamps
Aston Martin DBR9, chase camera
Milan: Koenigsegg CCX, cockpit camera
Milan
Koenigsegg CCX, cockpit camera
Istanbul Park: Mazda 787B, chase camera
Istanbul Park
Mazda 787B, chase camera
Haruna, Midnight Touge (night): Chevrolet Lacetti, chase camera
Haruna, Midnight Touge (night)
Chevrolet Lacetti, chase camera
Donington Park, Open Wheel: Dallara F3, chase camera
Donington Park, Open Wheel
Dallara F3, chase camera
Detroit Demolition Derby: stock car, far chase camera
Detroit Demolition Derby
stock car, far chase camera
Le Mans 24 Hours: Aston Martin DBR9, cockpit camera
Le Mans 24 Hours
Aston Martin DBR9, cockpit camera
Race Day event menu: text layout for now; the original menu art is next on the roadmap
Race Day event menu
text layout for now; the original menu art is next on the roadmap

What you need

  • A legally purchased Steam or GOG copy of Race Driver: GRID (2008) for PC.
  • One of:
    • Windows 10 or 11 with a reasonably modern GPU;
    • Linux on x86_64 with glibc 2.35 or newer (Ubuntu 22.04, Debian 12, SteamOS 3 or newer) and a working Vulkan driver. So far it was tested only in WSLg on Windows 11, not on native Linux hardware;
    • macOS on Apple Silicon;
    • an arm64 phone with Android 12 or newer (experimental, see Android).

DRIG draws through wgpu, Bevy's graphics layer, which picks the API for your system:

Platform Graphics API
Windows x64 Vulkan; DirectX 12 when no suitable Vulkan GPU is found
Linux x64 Vulkan
macOS (Apple Silicon) Metal
Android arm64 Vulkan

Building and running

Players

Download the release program and start it, as described in Download and play. You do not need Rust or any build tools.

Developers: building from source

You need Rust 1.99.0 (pinned in rust-toolchain.toml). The first build compiles Bevy and takes a while.

cargo build --release -p grid-app

This developer build includes the diagnostic tools (the dev-tools feature): --help-dev lists the developer options, and the [diagnostics] settings section is read (settings, "Player build and developer build"). The release program is the player build, without them:

cargo build --release -p grid-app --no-default-features

Then double-click launchers/Play GRID.cmd and pick an event in the Race Day menu (event menu). The other launchers/Play GRID *.cmd launchers start one event directly, for example launchers/Play GRID Le Mans 24 Hours.cmd or launchers/Play GRID Drift Battle.cmd.

You can also run the executable directly:

target\release\grid-app.exe --settings settings\race.ini

To override automatic game discovery, set [game] root in local\settings.ini or pass --game-root PATH (settings).

Controls

Key Action
Up / W Throttle
Down / S Brake; hold near rest to reverse
Left / A, Right / D Steer
Space Handbrake
X / Z Gear up / down (manual gearbox)
Escape / P Pause menu
R Restart the event

More detail, including gamepad, wheel and driver-aid settings: docs/TRY_THE_PROTOTYPE.md and docs/DRIVER_AIDS.md.

Mods

Files placed in a mods folder next to your settings (one subfolder per mod, holding files under the game's own relative paths, for example cars/lac/livery_00/textures_high/lac_tex_high_00.pssg) are used instead of the installed game's files. A mod whose folder holds a drig-mod.ini with liveries = extra adds its car liveries as extra choices in the event menu and keeps the originals. DRIG only reads what you put there; it does not download or point to mods. Layout, priority and per-platform folders: docs/MODS.md.

Android

The Android build is experimental. It runs the same program on arm64 phones (Android 12+), using game files you import from your own Steam or supported GOG copy. See docs/ANDROID.md. From v0.1.1 the release carries a signed APK: copy your GRID folder to the phone (for example to Documents/GRID), install the APK, start DRIG and choose that folder; the app copies the files it needs (about 830 MB) once. A newer release APK installs over the old one and keeps the imported files.

macOS

Native build and local .app packaging: python3 -I tools/build_macos.py. Compilation needs no original game files; playing requires your own Windows GRID 2008 installation. See docs/MACOS.md for setup and validation limits.

Reporting bugs and testing

Testers are welcome, on any system and any hardware. Play a few events and tell us what breaks, what feels different from the original and how fast it runs. Open an issue and attach:

  • the run log: every start writes a new file DRIG-data/playtest/drig-<UTC time>-<revision>.log (the newest is the last run; the 10 newest are kept). On Android it is Download/GRID-Reassembly/log-<UTC time>-<revision>.txt. Builds up to v0.1.0 wrote DRIG-data/drig.log and drig.previous.log instead;
  • your GPU, CPU, graphics driver version and resolution;
  • the event, track and car, and what you did just before the problem.

For detailed diagnostics, build the developer version from source (Developers) and run it with --help-dev to see its options.

Support DRIG

DRIG is free and open source. If you would like to help it along, you can sponsor its development on GitHub Sponsors, monthly or once. Sponsorship helps cover development tools and leaves more time for testing builds, tracking down bugs and improving race performance. It comes with no rewards, early access or release dates; every build stays free for everyone.

Trying a build and reporting what happened (Reporting bugs and testing) helps just as much. Thank you.

How it is made

The original grid.exe is studied with Ghidra and other reverse-engineering tools. Its behaviour is then written again in Rust and checked against the original: recorded driving, AI and audio traces, plus bit-exact comparisons of individual routines. The port does not reuse original code or bundle original data.

Research notes for each subsystem live in docs/. The current state is PROJECT_LOG.md; the running record of findings, decisions and verification is one file per entry in log/.

Documentation

Topic Where
Settings, data folder and command-line options docs/SETTINGS.md
Event menu (Race Day) and career screen docs/EVENT_MENU.md, docs/CAREER_SCREEN.md
Trying the prototype: controls, wheels, pads, driver aids docs/TRY_THE_PROTOTYPE.md, docs/DRIVER_AIDS.md
Android, macOS, Linux docs/ANDROID.md, docs/MACOS.md, docs/LINUX.md
Rendering and performance docs/PERFORMANCE.md
Roadmap and fidelity backlog docs/ROADMAP.md, docs/FIDELITY_BACKLOG.md
Toolchain, builds and git hooks docs/TOOLCHAIN.md
Reverse-engineering notes docs/re/README.md
Index of every research note docs/INDEX.md
Project state and log PROJECT_LOG.md, log/INDEX.md

Repository layout

Path Contents
crates/grid-formats Readers for GRID's file formats (PSSG models and textures, databases, audio banks and more)
crates/grid-world Simulation: physics, tyres, collisions, damage, AI
crates/grid-app The game itself: Bevy rendering, menus, HUD, audio, input, Android
crates/grid-tools Inspection and comparison command-line tools
crates/grid-probes One-off research probes (built only on request)
tools/ Research and diagnostic scripts
docs/ Research notes and design documents
local/ Your machine's private files: extracted data, captures, logs. Ignored by Git and never published

Contributing

Forks, bug reports and pull requests are welcome. DRIG is written with the help of AI coding agents; their working rules are in AGENTS.md. Never commit original game files, extracted assets or memory dumps.

After cloning, install the git hooks once: py -I tools/hooks/install.py (or python3 tools/hooks/install.py). On every commit they refuse game files, binaries, large files, conflict markers, broken Markdown links and scripts that do not parse (docs/TOOLCHAIN.md, "Git hooks").

Progress

docs/PROGRESS.md measures how far DRIG is from the original game, in the style of other decompilation projects, and keeps a dated history:

  • Game code: the share of the original executable's game code (by bytes, and by function count) that is documented, ported to Rust and verified against the original. Code that Bevy and the Rust readers replace (renderer, platform layer, file I/O) and third-party libraries are counted separately and left out of the denominator.
  • Content: the share of the original routes, cars, race formats, disciplines and game modes that work in DRIG.
  • Gameplay scenarios: the fixed scenario suite described below.

DRIG progress history

Fidelity backlog progress

The Fidelity Backlog tracks known discrepancies and related tasks. GitHub Actions reports open and closed items and publishes a JSON report for each run. Rows are added as discrepancies are found, so the counts are no completion measure; game parity is measured in docs/PROGRESS.md.

Fixed gameplay scenarios

GitHub Actions runs the versioned scenario suite and publishes a per-commit summary and a JSON report. Suite v1 covers lap timing and race classification, flashbacks, drift scoring and career rules, and reserves two headless driving scenarios that still need automated checks. Its verified percentage is the share of the fixed scenario list that passed. CI has no game data, so its score is capped at 6 of 12; the progress page also records the last local run with game data. It measures headless behavior within that suite. Binary matching, graphics, audio and full races in the interactive app are outside its scope.

CI runs the scenarios that need no original files. To include scenarios that use the original career tables and drift settings, run locally with your copy of the game:

python3 -I tools/scenario_progress.py --game-root "/path/to/GRID" --json scenario-progress.json

The report keeps passed, failed and not-run scenarios in the denominator. Changing scenario membership, inputs or success criteria requires a new suite version so results remain comparable.

Featured in

  1. Awesome Decomp Games
  2. Awesome Decomp Games RU
  3. AwesomeREA.org
  4. Game Decompilations
  5. Greates Games Decompilations List
  6. PlayPorted
  7. Recomp
  8. recomp.gg
Pending catalog submissions

Legal

DRIG is an independent project. It is not affiliated with, endorsed by or connected to Codemasters or Electronic Arts. "Race Driver: GRID" and related names are trademarks of their respective owners. You need your own copy of the original game to play.

New versions of DRIG are distributed under the GNU General Public License, version 3 or any later version (GPL-3.0-or-later). Versions already published under Apache 2.0 remain available under those terms.

Third-party code and assets keep their original licenses. Upstream Bevy material is available under the MIT or Apache 2.0 terms. Fira Mono is distributed under the SIL Open Font License 1.1. Original GRID game files are supplied separately by the player.

When publishing binaries under GPLv3, provide the corresponding source for that exact build, including the scripts needed to build and install it, and retain the applicable third-party notices.

Each release ships DRIG-vX-LICENSES.txt beside the programs, with the GPL and the notices of the third-party libraries and the font DRIG includes.

The banner and the screenshots in docs/assets/ belong to this project: the banner is original artwork, and the screenshots show DRIG's own renderer drawing game data from a purchased copy. They contain no extracted game files.

Disclaimer

This is pure 100% AI slop. I didn't made this by hand at all, it's all thanks to AI agents and I, pipeknight, take ZERO credit or responsibility of this port being unstable. It will run shitty, that's a guarantee. All I did is spent couple of sleepless night testing and pointing out the issues. Oh, yeah, and spent some pocket change on Claude sub ofc. Please be aware of it and feel free to fork this repo or use it as a reference in your future ports. Thank you and have a nice day!

About

DRIG: an open-source reimplementation of Race Driver: GRID (2008) for modern systems

Topics

Resources

Stars

43 stars

Watchers

4 watching

Forks

Releases

Contributors

Languages