drig-race-driver

DRIG is a reimplementation of Race Driver: GRID for Windows, Linux, and macOS that aims for a 1:1 recreation of the original game's handling, AI, and menus.

README

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:

SystemFile
WindowsDRIG-vX-windows-x86_64.exe: one program file, nothing to unpack
LinuxDRIG-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)
macOSthe DMG, added to the release by the Mac build
Androidexperimental arm64 build; see Android

No game data is included. You need your own installed copy of Race Driver: GRID (2008) for PC. DRIG looks for it in your Steam libraries. If your copy is somewhere else, start DRIG with --game-root "D:\Games\GRID" (any 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 copy of Race Driver: GRID (2008) for PC, for example from Steam. The engine finds the Steam installation by itself.
  • 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:

PlatformGraphics API
Windows x64Vulkan; DirectX 12 when no suitable Vulkan GPU is found
Linux x64Vulkan
macOS (Apple Silicon)Metal
Android arm64Vulkan

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

If your game is not in a Steam library, set [game] root in local\settings.ini or pass --game-root PATH (settings).

Controls
KeyAction
Up / WThrottle
Down / SBrake; hold near rest to reverse
Left / A, Right / DSteer
SpaceHandbrake
X / ZGear up / down (manual gearbox)
Escape / PPause menu
RRestart 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 copy. See docs/ANDROID.md.

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

TopicWhere
Settings, data folder and command-line optionsdocs/SETTINGS.md
Event menu (Race Day) and career screendocs/EVENT_MENU.md, docs/CAREER_SCREEN.md
Trying the prototype: controls, wheels, pads, driver aidsdocs/TRY_THE_PROTOTYPE.md, docs/DRIVER_AIDS.md
Android, macOS, Linuxdocs/ANDROID.md, docs/MACOS.md, docs/LINUX.md
Rendering and performancedocs/PERFORMANCE.md
Roadmap and fidelity backlogdocs/ROADMAP.md, docs/FIDELITY_BACKLOG.md
Toolchain, builds and git hooksdocs/TOOLCHAIN.md
Reverse-engineering notesdocs/re/README.md
Index of every research notedocs/INDEX.md
Project state and logPROJECT_LOG.md, log/INDEX.md

Repository layout

PathContents
crates/grid-formatsReaders for GRID's file formats (PSSG models and textures, databases, audio banks and more)
crates/grid-worldSimulation: physics, tyres, collisions, damage, AI
crates/grid-appThe game itself: Bevy rendering, menus, HUD, audio, input, Android
crates/grid-toolsInspection and comparison command-line tools
crates/grid-probesOne-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