Skip to content
ragetoolsPublic

About

OpenRage Cross platform App & Cli for GTA VI, GTA V, GTA V Enhanced, RDR 2

Topics

Resources

Stars

28 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

1,147 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OpenRage

OpenRage

Open, edit and save the files of Rockstar's RAGE games.
One editor, one command line, one Rust library.

latest release CI status: pre-1.0 platforms: Windows, Linux, macOS licence: MIT

Download Β· Quick start Β· GTA VI mods Β· Games Β· Formats Β· Programs Β· Good to know Β· Build Β· Docs

The Model workspace with a GTA VI folder open: its archives, a model in the viewport, the model's textures and its details

What you can do

  • Browse a game as one file tree. Archives are folders.
  • Open a model, a texture, an animation, an effect, a map, a sound. See it in a 3D viewport.
  • Change it and save it, without touching the game's own files.
  • Build a mod: clothing, peds, weapons, maps, effects, as a server resource, a DLC pack or an .oiv.
  • Play with mods in GTA VI: a mod loader serves loose files from a mods folder, with no archive rewritten.
  • Automate it from a script, another program, an AI agent or a plugin.

Works with GTA V (Legacy and Enhanced), GTA VI (Xbox Series and PlayStation 5 builds) and, for archives, Red Dead Redemption 2.

Download

Get the package for your system from the latest release.

System Package
Windows x64 .zip: unzip, run openrage.exe
Linux x86-64 .tar.gz or .deb
macOS .dmg (unsigned: macOS asks before the first open)
  • Nothing else to install.
  • You need a game you own. OpenRage ships no game file.
  • Each package has a .sha256 checksum beside it.

Quick start

  1. Open a game. The start page lists the installs it found. Add a game folder… takes any other.
  2. Open a file. Double-click it in the tree.
  3. Edit and save. If the file is in one of the game's own archives, OpenRage offers to copy that archive into the mods folder first (how).
  4. Make your own content. Start a project (Workbench guide, also under Help).

GTA VI? OpenRage reads the keys from your own executable (game_scarlett_master.exe or eboot.bin). The modding guide has the steps.

GTA VI mod loader

Drop a folder into mods, start the game, play. The game's archives are never rewritten, so removing a mod is deleting its folder.

  • What it is. or_loader.dll, loaded into the game by the emulator. When the game asks its archives for a file a mod holds, the loader answers with the mod's file.
  • What a mod is. A folder under <game>\mods, laid out as the game names its files: mods\<mod>\data\<device>\<path>. A file at mods\my-mod\data\platform\packs\base\data\metapeds.zmt answers platform:/packs/base/data/metapeds.zmt.
  • Several mods. They load in folder-name order and the last to hold a path wins it. Rename a folder to end in .disabled to park it.
  • Any size. A mod's file does not have to keep the length of the file it replaces.
  • Other builds. The loader finds the game's file device by the shape of its functions, and patches nothing on a build it does not recognise: the log says so.

Install (Xbox Series build under victory):

  1. Get openrage-mod-loader-<version>-windows-x64.zip from the latest release and unzip it. (From source: cargo build -p or-loader --release.)
  2. Copy or_loader.dll to %LOCALAPPDATA%\victory\mods. A victory build with a mods folder loads every DLL there. If yours has none yet, install-gta6-mod-loader.ps1 -Victory <your victory clone> from the same zip adds it to your clone, rebuilds victory and copies the DLL; or start the game and run openrage-loader.exe.
  3. Start the game. %LOCALAPPDATA%\victory\mods\oml.log names the mods it found and every file it served.

What it serves today: the data files the game opens by name, which is where peds, outfits, tuning and tables live. Models and textures are streamed another way and are not served yet.

Making a mod, the tools that write one and the limits are in the GTA VI modding guide.

Games

βœ… works Β· 🟑 in part Β· ❌ not yet

GTA V Legacy GTA V Enhanced GTA VI Red Dead Redemption 2
Browse the install and its archives βœ… βœ… βœ… βœ…
Open and view files βœ… βœ… βœ… ❌
Edit and save files βœ… βœ… 🟑 ❌
Decompile scripts βœ… βœ… βœ… ❌
Viewport lit by the game's own shaders βœ… ❌ 🟑 ❌
Fly through the world 🟑 🟑 βœ… ❌
Edit saves ❌ ❌ 🟑 ❌
  • GTA V. Both editions, fully. The world is drawn in a plain pass, with none of the game's shaders yet.
  • GTA VI. Both console builds read the same. Edits are narrow, and no file OpenRage wrote has been tried in the game. Game shaders are for the Xbox Series build only.
  • Red Dead Redemption 2. Archives only, for now.
  • Older games. or-io reads and writes the archives of GTA III to GTA IV, Max Payne 3, Red Dead Redemption and others. Nothing inside them.

Formats

Click a game to open its table.

# is the platform letter. .#td means .ytd on PC, .ztd on Xbox Series, .ptd on PlayStation 5.

GTA V β€” Legacy and Enhanced
Kind Files Read Write In the editor
Models .#dr .#dd .#ft βœ… βœ… viewport, materials, skeleton, glTF out and back
Textures .#td .dds βœ… βœ… mips, export, replace, BCn encoding
Particle effects .#pt βœ… βœ… simulated preview, timeline
Animation .#cd βœ… βœ… clips played on a skeleton
Animation data .#ed .#fd .#pdb .mrf βœ… βœ… outline; a .mrf's state machines
Collision and cloth .#bn .#bd .#ld βœ… βœ… outline; .#bn and .#ld in the viewport
Navigation and paths .#nv .#nd .#vr .#wr βœ… βœ… a navmesh in the viewport
Maps .#map .#typ βœ… βœ… metadata editor, Map and World workspaces
Water water.xml water_*.xml βœ… βœ… no view yet; openrage-cli convert
World tables heightmap*.dat waterheight.dat worldblanket.dat navprecalc.dat distantlights*.dat βœ… βœ… grids as images, lights as a list
Metadata .#mt .#mf .pso .meta .cut .srl βœ… βœ… metadata editor
Text and tables .gxt2 .nametable *_cache_y.dat metadata.dat audioworldsectorsinfo.dat βœ… βœ… text, or a table
Audio .awc .rel .datNN βœ… βœ… play, export to WAV, replace from WAV; a .rel is listed read-only
Interface movies .gfx βœ… βœ… tags and imports; SWF out and back
Archives .rpf βœ… βœ… browse, extract, replace, create, defragment
Video .bik βœ… – plays with its sound
Scripts .#sc βœ… – decompiled source, disassembly
Shaders .fxc, Enhanced's sga container βœ… – a .fxc's outline
Other .hdr ptxclipregions.dat materials.dat βœ… –
  • Any other file opens as text, or read-only as bytes.
  • .#dr .#dd .#ft .#td .#pt differ between Legacy and Enhanced. Both layouts read and write.
  • More detail: File_Support.md.
GTA VI β€” Xbox Series X|S and PlayStation 5
Kind In the tree Read Write In the editor
Archives .rpf (RPF9) βœ… a patched copy Files tree, Extract, Save as…
Textures .ttpf packs, .#td βœ… replace, resize, re-encode Texture workspace
Models .#dr .#ft .#dd βœ… materials, bones, geometry from glTF viewport, glTF out
Collision .#bn βœ… vertices, masses, materials viewport, outline
Navigation .#nv βœ… flags; disable or delete a polygon navmesh in the viewport
Maps .#map .#typ βœ… move, turn, scale, retype an entity World workspace
Animation .#cd, expressions βœ… keys, rate, name, tracks Animation workspace
Cloth and hair .#ld βœ… – viewport
Metadata PSO, RBM, RBF, XML βœ… values metadata editor
Text tables .#ldb βœ… texts text
Audio AWC βœ… replace a stream from WAV play, export as Ogg Opus
Video Bink βœ… – plays with its sound
Scripts .#sc βœ… a number a program pushes decompiled source, Go to definition, Find references
Shaders shader packs Xbox only – used by the Shaded viewport
Weapons a carrier and its parts βœ… – drawn assembled
Saves a story save, a settings record βœ… values outline editor
  • Keys. Archives open with the keys of your own executable. Without them, an archive is only scanned.
  • Saving. Every write goes to a new file. An edit that fits the body it replaces saves as a patched copy, which keeps the game's signed table. Anything else rebuilds the table, and the game refuses it (what fits).
  • Not tried in the game. No file OpenRage wrote for GTA VI has been run in the game.
  • Saves. A plain save and a settings record are edited. A console story save is opened, edited and written by openrage-cli gta6-save, and by the app once the GTA VI install folder is set: its file 0 opens as the story it holds, and a save writes files 0 and 1 back.
  • PlayStation 5. Reads like Xbox. Only a 2D texture of a pack can be replaced, and its shader packs are refused (the differences).
  • More detail: GTA_VI_Builds.md, the script decompiler, the world viewer.
Red Dead Redemption 2
Kind Read Write In the editor
Archives (RPF8) βœ… or-io and openrage-cli rpf create browse, extract
Resource container (RSC8) or-io only – –
Texture dictionaries or-io only – –
Everything else – – text, or bytes
  • The key comes from your own RDR2.exe.
  • A model or a texture opened from the tree is refused today.
  • More detail: File_Support.md.
Older games β€” archives only
Archive Games
RPF0 Table Tennis
RPF2, RPF3, IMG3 GTA IV
RPF3 Midnight Club: Los Angeles
RPF4 Max Payne 3
RPF6 Red Dead Redemption
IMG1 GTA III, Vice City
IMG2 San Andreas
  • Read and written by or-io. Nothing inside them is decoded.
  • The editor lists none of these games.
  • More detail: File_Support.md.

The three programs

openrage β€” the editor

A desktop app with a workspace for each job: files, models, textures, animation, particles, data, projects, the world.

Viewport Wireframe, Solid, Material and Shaded. Shaded runs the game's own shaders, baked to a SPIR-V pack, on wgpu: Vulkan, DirectX 12 or Metal (modes).
World A free camera through the active game's world (GTA VI, GTA V).
Previews Particles (how), animation (how), audio and video.
Import and export glTF for models (how), DDS for textures (how), WAV for audio, XML for metadata.
Projects Clothing, peds, weapons, maps and effects, checked and built (guide, DLC packs).
Mods Edits go to the install's mods folder. A panel lists installed mods and their order (details).
Plugins WebAssembly modules that add panels and commands. You approve what each may do (plugins).
Languages English, Chinese, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish (guide).

openrage-cli β€” the command line

Everything the editor reads and writes, with no window.

openrage-cli rpf list x64a.rpf
openrage-cli texture export vehshare.ytd out/
openrage-cli mesh export police.ydr police.glb
openrage-cli meta to-xml peds.ymt peds.xml

openrage-cli <command> --help explains a command.

All commands
To Commands
Look inside inspect describe search depends names hash hashes formats versions analyse archives bounds channels gaps
Convert convert meta texture mesh awc gfx script navmesh deflate
Work on archives rpf bulk dlc dlc-list
Work on GTA VI keys rpf9 rpf9-diff ttpf model gta6-project gta6-save gta6-mission
Build content project wardrobe addonped weapons maps particles source world
Automate serve mcp photo
  • serve answers other programs over NDJSON (protocol).
  • mcp gives an AI agent the same as tools (install).
  • photo takes pictures of models with no window.
  • Exit codes: 0 success, 1 runtime error, 2 usage error.

or-io β€” the Rust library

A file opens as an ordinary value. Read a field, assign it, save.

use or_io::gta5::*;

let mut car = GtaDrawable::open("police.ydr")?;   // a Legacy drawable
println!("{} {:?}", car.name, car.lod_group.lod_distances);
car.lod_group.lod_distances[0] = 45.0;            // plain assignment
car.lod_group.lods[0].models.remove(1);           // structural edits are Vec operations
car.save()?;                                      // validated, canonical form
  • Errors come only at open and at save.
  • GtaDrawable::<Gen9> is the Enhanced layout. or_io::open picks the layout from the file.
  • Not on crates.io yet: depend on it by git. Its API still moves.
  • Design: OR_IO_Specification.md. Crate: crates/io/or-io.

Good to know

  • Pre-1.0. Things still move.
  • Tested on real files, mostly not in a running game. A saved file reads back the same. That does not prove the game loads it. The acceptance sheet lists what a person checked in game.
  • A save is OpenRage's own form of the file, not a byte copy of the shipped one. Saving again gives the same bytes.
  • Your game stays untouched. OpenRage downloads nothing and installs nothing on its own.
  • Read-only for now: scripts, .fxc shaders, .bik video.

Coming next (roadmap):

  • a world editor for GTA V maps (plan)
  • one world viewer and editor for every game, drawn with each game's own shaders (plan)
  • Red Dead Redemption 2's files

Build from source

You need the Rust toolchain (rustup picks the pinned nightly), just and cargo install cargo-nextest --locked. On Linux, also ALSA's headers (libasound2-dev).

just build        # release build
just dev          # run the editor
just self-check   # draw every panel, with no window
just ready        # the checks before a merge
just test         # every test: about twenty minutes
  • The suite is ordinary Rust tests: cargo test -p or-io runs one crate's without nextest.
  • No game file is in the repository. Tests that need real files skip on a clean clone, and a skip is not a pass (staging a corpus, what a clone lacks).
  • Mirror on Radicle: rad clone rad:zhdibp82Y5a4zqi44zZuJA6mt8tm.
Repository layout

Dependencies run one way: foundation β†’ io β†’ title β†’ domain β†’ runtime β†’ app.

Layer Holds Crates
app the editor and the openrage-cli entry point src
runtime what is evaluated, simulated or drawn or-anim, or-renderer, or-simulation
domain what is edited, and what a project builds or-project, or-source, or-content, or-wardrobe, or-addonped, or-weapons, or-maps, or-particles, or-particle-model, or-world, or-world-gta5, or-world-gta6, or-world-registry, or-depends, or-interchange, or-editor, or-plugin
title a game install: editions, archives, DLC order or-title
io file formats, archives, media decoders or-io, or-io-macros, or-io-verify, or-kraken, or-media
foundation building blocks that know no format or-job, or-transport, or-test-support
tools programs beside the chain or-cli, or-shader-tool, or-shader-front, xtask

Crate_Reference.md describes each crate.

Contributing

Issues and pull requests are welcome.

Documentation

I want to… Read
see every document docs/
know what a file kind supports File_Support.md
make clothing or another mod Workbench guide
mod GTA VI GTA VI modding guide, GTA_VI_Builds.md
check a mod in the game acceptance sheet
drive OpenRage from a program CLI server protocol, MCP server
write a plugin Plugin ABI, plugins/
see what is planned Roadmap

RAGE's binary layout specifications are kept out of the repository (why).

Licence

MIT β€” see LICENSE. Third-party notices: LICENSE-third-party.md.

OpenRage is unofficial. It is not affiliated with, endorsed by, or connected to Rockstar Games or Take-Two Interactive. "Grand Theft Auto" and "Red Dead Redemption" are trademarks of their respective owners. No game assets are distributed with this software; it operates on files the user already owns.

The exception, and where keys come from
  • crates/io/or-media is AGPL-3.0-only. It decodes the audio and video. It holds code ported from FFmpeg (LGPL-2.1-or-later) and from NihAV (AGPL-3.0), and a Bink 2 filter derived from RAD's proprietary bink2w64.dll for interoperability. The editor and the CLI link it, in a release's packages too, and what that asks of them is not reviewed yet (policy).
  • BCPack. The decoder of BCPack texture bodies is ported from bcpack-rs by Ahmet Dedeler.
  • Keys. OpenRage extracts the keys it can from the user's own game executable. The rest come from the key snapshots OpenRage bundles, CodeWalker's for GTA V among them, or from one the user supplies. A bundled snapshot is encrypted under a key taken from the user's executable, so it opens nothing without the game.

About

OpenRage Cross platform App & Cli for GTA VI, GTA V, GTA V Enhanced, RDR 2

Topics

Resources

Stars

28 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages