Important
You need your own Grand Theft Auto IV: The Complete Edition for PC (Steam, version 1.2.0.59, or downgraded to 1.0.8.0) or the original Xbox 360 disc (not included). Both the Playroom and the SDK need it: the engine's numbers are read from your own copy's program (the PC version's GTAIV.exe, or default.xex on the Xbox 360 disc), and the character, animations and settings from your own game files. Use the Xbox 360 disc image (.iso) or the PC game folder (the one with GTAIV.exe in it); the disc's key is fetched from the internet the first time. The PS3 version isn't supported for now. No game files or game numbers come with it, and neither the Playroom nor the SDK runs without them. For integrating the engine into another game, see For developers.
A physics playground for an active ragdoll. Homer isn't animated. His muscles keep him standing, so he balances, stumbles, braces, grabs, flails and falls on his own. Push him, shoot him, throw things at him, drop him off a bridge, or step in as Hero and fight him.
Delirium is a reverse-engineered port of Euphoria, NaturalMotion's ragdoll and character physics engine, as it runs in GTA IV: rewritten in Rust from the game's own program code and checked against the running game. It comes with an SDK (C, C++, C#, Python), plugins for Unity, Unreal Engine 5 and Godot 4, and the room you see here. It was written with AI coding tools (Claude). It isn't affiliated with or endorsed by Rockstar Games, Take-Two Interactive or NaturalMotion. An earlier version of this README said the behaviours were written from scratch by separate people; that was wrong, and it has been removed.
- Want to try it? The files in Releases provide the compiled Delirium Playroom, a playable demonstration of the engine. The Windows release launcher downloads the ready-built room; you don't need to compile the repository.
- Want to use it in a mod? This repository contains the engine source, SDK, language bindings, examples and Playroom source needed to build your own integration. Delirium is meant for mods, and every player needs their own GTA IV: the engine reads its numbers from it. A mod built with Delirium has the same requirement: each of its players must point it at their own GTA IV. Don't ship GTA IV's files, or numbers taken out of them, with your mod. You still need to connect it to the target game's character, animation, collision and update systems; it isn't a drop-in mod for every game. Start with Modding: start here (plugins, your first ragdoll), then the modding guide: the traps found porting it into another game, and how to avoid them.
- Dozens of behaviours: balance, drunk, catch fall, high fall, roll down stairs, flinch, brace, grab, writhe, smart fall, teeter, stumble, dangle, electrocute, wave and more
- Hero mode: walk around as Hero with fists (punches, combos, heavy attack, kick, block, lock-on) and guns
- Stages: stairs, wall, ledge, rope bridge (the plank snaps!) and trampoline
- Toys: throw balls, boxes and crates, drive a taxi into him, slow motion down to 1/16
- Portal mode: Portal 2's portal gun. Shoot a blue and an orange portal and Homer flies through them, speed and all. Needs your own Portal 2 (see below)
- Homer's face: his eyes look at what hit him, blink, and squint when he's hurt
You need your own copy of the game: Delirium reads the character, animations and settings from it. None of it is included here.
Windows
- Download
delirium-room.batfrom the latest release. - Drag your Xbox 360 disc image (
.iso) or PC game folder (the one withGTAIV.exein it) onto it. Or just double-click it, then drop it on the window when the room asks. - The first run downloads the ready-built room (no install, no build) into a folder beside it. After that it starts in seconds, and it remembers your game.
Safe Mode: if the room is slow, won't start, or crashes, use delirium-room-safe.bat instead (same folder, same way: drag your game onto it). It starts with every graphics setting at its lowest and leaves your saved settings alone until you change one in the menu. On macOS and Linux, delirium-room-safe.command (or run delirium-room --safe).
Building it yourself: download this repo and run its delirium-room.bat. That offers to install Rust and Microsoft's C++ build tools (free, a few GB) and builds the room in a few minutes.
Portal mode (optional bonus): install Portal 2, then open Interact → Portal 2 · bonus inside the running room. Paste your Portal 2 installation folder and click Link folder, or click Find Steam install. The section shows the linked folder and lets you turn the bonus on or off. The portal gun is then in the weapons: left click shoots blue, right click shoots orange. Portal 2 isn't part of startup setup and isn't needed for the base room. No Portal 2 files are included; they're read from your install. The portal maths comes from Stink-O's Portal 2 Rust Engine (MIT; see CREDITS).
macOS / Linux: download delirium-room-<version>-macos-arm64.zip (Apple Silicon) or delirium-room-<version>-linux-x86_64.tar.gz from Releases, unpack it and run delirium-room with your Xbox 360 .iso or PC GTA IV game folder. On a Mac it isn't signed: run xattr -dr com.apple.quarantine . in its folder first. Or build it yourself: run delirium-room.command (install Rust first from rustup.rs).
| Click | poke a body part |
| Drag | pull a body part around |
| T while dragging | tie the line to the map there (T cuts the newest, Shift + T all); drag him again while he's tied |
| Point at a tied line | picks it for L, the scroll wheels and T (else the newest) |
| F11 | fullscreen on / off (also in Audio / Video) |
| K | tied lines wrap round walls and corners, on / off |
| L | the line: a leash that locks at its length (pink taut, dark blue with slack), or a stretchy rope |
| Ctrl + Scroll Wheel | a rope: up tight (thick, solid, red), down stretchy (thin, dashed, yellow) |
| Alt + Scroll Wheel | a tied line longer or shorter; while dragging, the drag line (he hangs off the pointer) |
| Shift + click | shoot him |
| 1 / 2 / 3 (or Ctrl + point) | throw a ball, a box or a crate |
| Right drag, wheel | turn and zoom the camera |
| [ / ] | slower / faster (down to 1/16) |
| Space | pause |
| R | reset his pose |
| X | stop all behaviours |
| H | hide the panels |
Choose reactions under Reactions in the left dock. Scene contains locations, people and the Add one taxi button; Character contains Homer and Hero controls. The bottom bar shows Homer's physical speed and acceleration beside the simulation timer. Every shortcut is listed under Help.
Hero mode (the Hero button):
| WASD | walk (Shift run, Ctrl sprint) |
| Left click | attack (click again to combo) |
| T / G | heavy attack / kick |
| V | block |
| Hold Z | lock on to Homer |
| 1 fists, 2–0 | guns, grenade, molotov |
| - / = | bat / knife |
| Mouse wheel | next / previous weapon |
| F | get in or out of the taxi |
The Playroom is one application built on Delirium. For a mod, use the engine and SDK below rather than the Playroom executable. The repository includes the source and integration examples; your game's adapter and any required game assets are supplied by your project. The SDK needs the player's own PC GTA IV too: call nm_unlock with their GTAIV.exe or the Xbox 360 disc's default.xex (or the folder either is in) first; until then nm_init and nm_agent_create fail. The examples read it from the GTAIV_EXE environment variable.
crates/delirium: the enginecrates/delirium-sdk: the C API (include/delirium_physics.h), bindings for C++, C# and Python, plugins for Unity, Unreal Engine 5 and Godot 4, with examplescrates/delirium-room: the roomcrates/delirium-data: readers for the game's file formats
Build by hand: cargo build --release -p delirium-room.
Modders: start with Modding: start here (the Unity, Unreal and Godot plugins, your first ragdoll in three steps). Full guides: How it works (the engine, body, step loop and behaviours) and Modding (each language's quick start, every message and its parameters, Playroom scripting and settings).
Maintainers' to-do list: delirium-todo (private; only the maintainers can open it).
GPL-3.0-only (see LICENSE). Credits for third-party assets: CREDITS.md.







