Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 23 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "3"
members = ["crates/*"]

[workspace.package]
version = "0.5.0"
version = "0.6.0"
edition = "2024"
license = "GPL-3.0-only"
repository = "https://github.com/Two-Play/openrage"
Expand All @@ -13,14 +13,14 @@ authors = ["OpenRAGE contributors"]
rust-version = "1.99"

[workspace.dependencies]
rage-core = { path = "crates/rage-core", version = "0.5.0" }
rage-crypto = { path = "crates/rage-crypto", version = "0.5.0" }
rage-tfit2 = { path = "crates/rage-tfit2", version = "0.5.0" }
rage-rpf = { path = "crates/rage-rpf", version = "0.5.0", features = ["rdr2"] }
rage-index = { path = "crates/rage-index", version = "0.5.0" }
rage-mods = { path = "crates/rage-mods", version = "0.5.0" }
rage-resource = { path = "crates/rage-resource", version = "0.5.0" }
rage-formats = { path = "crates/rage-formats", version = "0.5.0" }
rage-core = { path = "crates/rage-core", version = "0.6.0" }
rage-crypto = { path = "crates/rage-crypto", version = "0.6.0" }
rage-tfit2 = { path = "crates/rage-tfit2", version = "0.6.0" }
rage-rpf = { path = "crates/rage-rpf", version = "0.6.0", features = ["rdr2"] }
rage-index = { path = "crates/rage-index", version = "0.6.0" }
rage-mods = { path = "crates/rage-mods", version = "0.6.0" }
rage-resource = { path = "crates/rage-resource", version = "0.6.0" }
rage-formats = { path = "crates/rage-formats", version = "0.6.0" }

aes = "0.8"
anyhow = "1"
Expand Down
52 changes: 52 additions & 0 deletions NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,58 @@ Vorbis audio (Red Dead Redemption 2) is decoded with lewton
(https://github.com/RustAudio/lewton), licensed under the MIT or Apache-2.0
license.

## opus-rs

Opus audio (GTA VI) is decoded with opus-rs
(https://github.com/restsend/opus-rs), a port of libopus, licensed under the
BSD 3-Clause licence.

## Librempeg

The Bink 2 video and audio decoder in `crates/rage-formats/src/bink` is a port
to Rust of the one in Librempeg (https://github.com/librempeg/librempeg;
`libavcodec/bink2.c`, `bink2.h`, `bink2g.h`, `libavcodec/binkaudio.c` and
`libavformat/bink.c`), which is licensed under the GNU General Public License
version 3 or later and used here under version 3:

```
Copyright (c) 2014 Konstantin Shishkov
Copyright (c) 2019 Paul B Mahol
Copyright (c) 2007-2011 Peter Ross
Copyright (c) 2009 Daniel Verkamp
```

## FFmpeg

The Bink 1 video decoder in `crates/rage-formats/src/bink` (`video1.rs`,
`tables1.rs`) is a port to Rust of the one in FFmpeg (https://ffmpeg.org;
`libavcodec/bink.c`, `binkdata.h` and `binkdsp.c`), which is licensed under the
GNU Lesser General Public License version 2.1 or later and used here under the
GNU General Public License version 3, as section 3 of the former allows:

```
Copyright (c) 2009 Konstantin Shishkov
Copyright (c) 2011 Peter Ross
```

Bink is a trademark of Epic Games Tools LLC (RAD Game Tools). OpenRAGE is not
affiliated with them and contains none of their code.

## Leonida

What is known about GTA VI's formats (RPF9 archives, audio containers, PSIN
and RBF0 metadata, texture pools) comes from the documentation of Leonida
(https://github.com/ItsNotRexed/Leonida, GPL-3.0). The PSIN reader in
`crates/rage-formats/src/psin.rs` follows its `tools/psin_data.py`, the
texture pool reader in `crates/rage-formats/src/ttpf.rs` its
`tools/ttpf_mips.py` and `tools/tex_headers.py`.

## rpf9-explorer

The layout of GTA VI's models (`crates/rage-formats/src/drawable6.rs`) is the
one found by rpf9-explorer (https://github.com/breadbbbb/rpf9-explorer). Its
decoder was read to learn the layout; no code was taken from it.

## RDR2-RPF-Tool

The TFIT2-CBC cipher and the strided file encryption of Red Dead Redemption 2
Expand Down
25 changes: 17 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

# OpenRAGE

**The open-source successor to OpenIV — mod GTA V and explore Red Dead Redemption 2 on Linux and Windows.**
**The open-source successor to OpenIV — mod GTA V and Red Dead Redemption 2, and explore GTA VI, on Linux and Windows.**

### 🌴 New: GTA VI works!

**Browse and search its RPF9 archives, view the whole map in 3D, models, textures and animations, play sounds and videos.**<br>
[What works in GTA VI](https://two-play.github.io/openrage/gta-vi/) (read-only preview, with your own copy of the game)

Browse and search every archive, preview textures, models, sounds and animations, read metadata as XML,<br>
edit game text and install `.oiv` packages — compatible with OpenIV's `mods` folder, with undo.
Expand Down Expand Up @@ -34,13 +39,13 @@ edit game text and install `.oiv` packages — compatible with OpenIV's `mods` f

OpenIV's last release was in January 2022. OpenRAGE picks up where it left off and stays compatible with it.

- **GTA VI explorer (preview):** browse and extract RPF9 archives, with folders, names and nested archives; see the whole map in 3D; preview models with their materials, collisions, navigation meshes, textures, metadata and text tables, play sounds and videos, search names and text, list clip dictionaries and play them on vehicles, weapons, props and parts of people.
- **Explorer and search:** archives, even nested ones, open like folders, as a list or as icons; names, hashes and full text of the whole game in milliseconds.
- **Every major format:** textures, models, audio, animations, metadata as XML, collisions, paths, nav meshes, cutscenes, scripts, game text.
- **Every major format:** textures, models, audio, videos (Bink 1 and 2, with a player), animations, metadata as XML, collisions, paths, nav meshes, cutscenes, scripts, game text.
- **Coming from OpenIV?** Your `mods` folder and `.oiv` packages work as they are ([how to switch](https://two-play.github.io/openrage/getting-started/#coming-from-openiv)).
- **Mods, safely:** changes go to OpenIV's `mods` folder, never into your game files; every change and every `.oiv` package can be undone.
- **Models in:** replace props and vehicle bodies of GTA V Enhanced with your own OBJ models; doors and bonnets keep moving (preview).
- **ASI mods:** see and switch GTA V's ASI mods, and on Linux let Proton load the ASI loader with one click.
- **Ready for GTA VI:** support follows as fast as possible once GTA VI comes to PC.
- **Tested on the whole game:** every format is checked against every file of GTA V ([details](https://two-play.github.io/openrage/#status)).

<table>
Expand All @@ -61,16 +66,20 @@ More screenshots and all features: **[two-play.github.io/openrage](https://two-p
| Game | Archives | Formats |
|---|---|---|
| **GTA V** (Legacy & Enhanced) | ✅ read and edit (mods folder, with undo) | ✅ textures (also inside models) · models · audio · animations · metadata · text · collisions · paths · cutscenes · scripts · ASI mods (manager, Proton fix on Linux) · ◐ model import from OBJ with compressed textures and detail levels (Enhanced `.ydr` and vehicle bodies `.yft`, preview; explorer via the OBJ tools plugin) |
| **Red Dead Redemption 2** | ✅ read, with keys from your own game | ◐ textures · models · texts · metadata · audio · animations · ped outfits (read-only) |
| **GTA VI** | 🔜 next: as fast as possible once it comes to PC | – |
| **GTA VI** (Scarlett build, preview) | ◐ read-only RPF9: the table of contents is read with the game's own executable (one build); without it, a recovery view. Names of models and clips are known, of some other types not | ◐ models with skeletons · clip dictionaries (`.#cd`) · texture pools (`.ttpf`) and dictionaries (`.#td`; no volumes) · collisions (`.#bn`) · navigation meshes (`.#nv`) · maps in 3D · metadata, maps and text tables as XML (`.#mt`, `.#map`, `.#typ`, `.#ldbmt` and others) · audio · videos |
| **Red Dead Redemption 2** | ✅ read, with keys from your own game · ◐ edit (Lenny's Mod Loader `lml/replace` folder, with undo; nested archives rewritten; not yet tried in the game) | ◐ textures (replace same-shape) · models with moving parts and cloth · texts · metadata · audio · animations on fitting models · ped outfits (read-only) |
| **GTA IV** (Complete Edition) | ✅ read (IMG3, RPF2, RPF3), key from your own `GTAIV.exe` | ◐ textures · models · collisions · animations · text · scripts · maps in 3D · cutscenes (played with their cast, camera, subtitles and particle effects) · particle effect lists (`.wpfl`) · editing `.img`, `.rpf`, placement files, loose files and textures (`.wtd`, inside `.wdr`) (update folder, or the game files with originals kept) |

**Plugins** (API 0.3, preview): sandboxed WebAssembly plugins add file types, previews (text, tree, table, image, 3D model), tool windows of their own (Tools menu), export and batch actions with access to the game's models and textures, and changes to game files through the `mods` folder (with undo), for every game. ✅ explorer (file list, preview, context menu, Settings → Plugins) and command line (`openrage plugin`), four example plugins included (OBJ export and import, a number and hash converter among them) · plugin packages (`.orp`) with install/uninstall in the explorer and the CLI · models into game formats (`build-model`) · 🔜 openFormats. [Writing plugins](https://two-play.github.io/openrage/plugins/)
**Plugins** (API 0.3, preview): sandboxed WebAssembly plugins add file types, previews (text, tree, table, image, 3D model), tool windows of their own (Tools menu), export and batch actions with access to the game's models and textures, and changes to game files through the `mods` folder (with undo), for every game. ✅ explorer (file list, preview, context menu, Settings → Plugins) and command line (`openrage plugin`), four example plugins included (OBJ export and import, a number and hash converter among them) · plugin packages (`.orp`) with install/uninstall in the explorer and the CLI · models into game formats (`build-model`) · ✅ openFormats: OpenIV's text formats (`.odr`, `.oft`, `.odd`, `.otd` with `.mesh`, `.skel`, DDS) exported and imported back (preview). [Writing plugins](https://two-play.github.io/openrage/plugins/)

## Installation

Download the [latest release](https://github.com/Two-Play/openrage/releases/latest) for Linux (AppImage, Flatpak or `.tar.gz`) or Windows (`.zip`) and start `openrage-gui`. On first start it finds your game and sets up the keys. Step by step: **[Getting started](https://two-play.github.io/openrage/getting-started/)**.

For the GTA VI preview, choose the folder containing `game_scarlett_master.exe` or RPF9 archives. With the supported executable beside the archives, OpenRAGE reads their tables of contents with the keys in it (the keys are not stored), so archives open at once. Names are matched to the hashes in the tables; files without a match are listed under `entries/`. Without the executable, or with another build, the explorer indexes the archives in the background and caches the results, which can take several minutes for large archives; recovered entries are then grouped by file type and offset, with model names recovered from their data where possible. Editing RPF9 archives is not supported.

The CLI also supports browsing, extraction and verification, for example `openrage --game <DIR> ls common.rpf` and `openrage --game <DIR> verify common.rpf` (or a folder or file inside it). Running `verify` without a path checks all RPF9 archives below the game folder. Verification decodes the entries with checksum, size and bounds checks and returns an error on a failed entry; in the recovery view, unread data is outside its coverage. Nested archives are checked when their path is given. `verify --animations <path>` reads the clip dictionaries below a path, nested archives included; other format-specific verification and `--rebuild` are not supported for GTA VI yet.

To build from source (Rust, pinned in `rust-toolchain.toml`; on Linux also the fontconfig, xkbcommon, Wayland and ALSA development packages):

```sh
Expand All @@ -84,7 +93,7 @@ cargo build --release # target/release/openrage-gui and target/release/open
- [Explorer and search](https://two-play.github.io/openrage/guide/): the window, keyboard, search, settings
- [Viewing files](https://two-play.github.io/openrage/viewers/): what each format shows and exports
- [Modding](https://two-play.github.io/openrage/modding/): edit mode, editing archives, undo, `.oiv` packages, the `mods` folder
- [GTA IV](https://two-play.github.io/openrage/gta-iv/) and [Red Dead Redemption 2](https://two-play.github.io/openrage/rdr2/): setup and what works per game
- [GTA VI](https://two-play.github.io/openrage/gta-vi/), [GTA IV](https://two-play.github.io/openrage/gta-iv/) and [Red Dead Redemption 2](https://two-play.github.io/openrage/rdr2/): setup and what works per game
- [Command line](https://two-play.github.io/openrage/cli/): every `openrage` command
- [Writing plugins](https://two-play.github.io/openrage/plugins/): sandboxed WebAssembly plugins, SDK and API
- [Development](https://two-play.github.io/openrage/development/): building from source, build environment, releases, project layout
Expand All @@ -95,4 +104,4 @@ The website lives in [`site/`](site/) and is built from Markdown.

GPL-3.0-only, except `crates/rage-tfit2` (the RDR2 archive cipher, ported from an AGPL-3.0 project), which is AGPL-3.0-only, and the plugin interface and SDK (`crates/openrage-plugins/wit`, `plugins/`), which are MIT OR Apache-2.0 so that plugins may use any licence. See [LICENSE](LICENSE) and [NOTICE.md](NOTICE.md) for third-party attributions, and [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md) for the licenses of all third-party crates in the programs (generated from `Cargo.lock`, checked in CI). The same is in the app under **Help → About OpenRAGE**, via `openrage licenses` and on the [licenses page](https://two-play.github.io/openrage/licenses/).

Grand Theft Auto, Red Dead Redemption, RAGE and Rockstar Games are trademarks of Take-Two Interactive Software, Inc. The screenshots show OpenRAGE displaying files from the author's own copy of the game.
Grand Theft Auto, Red Dead Redemption, RAGE and Rockstar Games are trademarks of Take-Two Interactive Software, Inc.
Loading
Loading