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
24 changes: 12 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.3.0"
version = "0.4.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.3.0" }
rage-crypto = { path = "crates/rage-crypto", version = "0.3.0" }
rage-tfit2 = { path = "crates/rage-tfit2", version = "0.3.0" }
rage-rpf = { path = "crates/rage-rpf", version = "0.3.0", features = ["rdr2"] }
rage-index = { path = "crates/rage-index", version = "0.3.0" }
rage-mods = { path = "crates/rage-mods", version = "0.3.0" }
rage-resource = { path = "crates/rage-resource", version = "0.3.0" }
rage-formats = { path = "crates/rage-formats", version = "0.3.0" }
rage-core = { path = "crates/rage-core", version = "0.4.0" }
rage-crypto = { path = "crates/rage-crypto", version = "0.4.0" }
rage-tfit2 = { path = "crates/rage-tfit2", version = "0.4.0" }
rage-rpf = { path = "crates/rage-rpf", version = "0.4.0", features = ["rdr2"] }
rage-index = { path = "crates/rage-index", version = "0.4.0" }
rage-mods = { path = "crates/rage-mods", version = "0.4.0" }
rage-resource = { path = "crates/rage-resource", version = "0.4.0" }
rage-formats = { path = "crates/rage-formats", version = "0.4.0" }

aes = "0.8"
anyhow = "1"
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ OpenIV's last release was in January 2022. OpenRAGE picks up where it left off a
- **Every major format:** textures, models, audio, 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)).

Expand All @@ -58,12 +60,12 @@ 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 · ◐ model import from OBJ with textures and detail levels (Enhanced .ydr, preview; explorer via the OBJ tools plugin) |
| **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 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), 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`), three example plugins included (OBJ export among them) · plugin packages (`.orp`) with install/uninstall in the explorer and the CLI · 🔜 openFormats, importers into game formats. [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. [Writing plugins](https://two-play.github.io/openrage/plugins/)

## Installation

Expand Down
4 changes: 2 additions & 2 deletions docs/publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Each prepared crate has its own `README.md`, a `LICENSE` (a link to the
workspace licence; `cargo package` copies the file), and, where code is
derived from CodeWalker, a `NOTICE.md` with the MIT notice.

Workspace path dependencies carry `version = "0.3.0"`, so crates.io resolves
Workspace path dependencies carry `version = "0.4.0"`, so crates.io resolves
them once the dependency is published. `cargo package` of a crate that
depends on an unpublished workspace crate fails at "no matching package";
publish bottom-up (`rage-core`, `rage-crypto`, `rage-resource`, `rage-tfit2`,
Expand Down Expand Up @@ -70,7 +70,7 @@ every caller in the CLI and GUI; that is left for later.

* **Crate names.** `rage-*` names may be taken or confusing on crates.io;
check availability (`cargo search rage-core`) or pick a prefix.
* **Version.** The crates share the workspace version (0.3.0). Independent
* **Version.** The crates share the workspace version (0.4.0). Independent
versions per crate (and a 0.1.0 start) are an option.
* **MSRV.** `rust-version = "1.99"` is the pinned toolchain, the only one
checked. A lower MSRV (edition 2024 needs at least 1.85; the code uses
Expand Down
10 changes: 5 additions & 5 deletions site/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ features_intro = "What OpenRAGE can open, show and change today."
screenshots_title = "Screenshots"
screenshots_intro = "Click a picture to enlarge it, arrow keys browse. The screenshots show files from the author's own copy of the game."
games_title = "Supported games"
games_intro = "GTA V comes first and Red Dead Redemption 2 can be explored. **GTA VI is next:** support follows as fast as possible once it comes to PC. GTA IV can be explored too: archives, textures, models, collisions, animations, texts and maps in 3D."
games_intro = "GTA V comes first and Red Dead Redemption 2 can be explored. **GTA VI is next:** support follows as fast as possible once it comes to PC. GTA IV can be explored and modded too: archives, textures, models, collisions, animations, texts, maps in 3D and whole cutscenes."
details_summary = "Checked against the whole game"
download_intro = "Unpack the archive and run `openrage-gui` (or `openrage` for the command line). On first start the GUI detects your game and sets up the keys."
why_title = "Why switch from OpenIV"
why_intro = "OpenRAGE keeps what OpenIV got right — the `mods` folder, `.oiv` packages, the export formats — so your mods keep working. Switching costs nothing, and you gain this:"
compare_title = "OpenRAGE and OpenIV side by side"
compare_note = """
OpenIV supports more games and can import models; both tools share the same `mods` folder, so you can use them side by side.
OpenIV supports more games and imports more kinds of models; both tools share the same `mods` folder, so you can use them side by side.
Out of date? [Open an issue](https://github.com/Two-Play/openrage/issues).
"""

Expand Down Expand Up @@ -177,7 +177,7 @@ variant = "Complete Edition"
archives_status = "ok"
archives = "IMG3, RPF2 and RPF3 read: decryption with the key from your own GTAIV.exe, browsing and extracting in the GUI"
formats_status = "partial"
formats = "textures, models, collisions, animations and maps in 3D (DDS/PNG and glTF export), texts (.gxt), placement files (.wpl) and scripts (disassembly), read-only"
formats = "textures, models, collisions, animations and maps in 3D (DDS/PNG and glTF export), cutscenes with particle effects, texts (.gxt), placement files (.wpl) and scripts (disassembly); editing of archives, placements and textures"

# ------------------------------------------------------------- Why OpenRAGE

Expand Down Expand Up @@ -245,7 +245,7 @@ edge = "openrage"
[[extra.compare]]
feature = "Other games"
openiv = "GTA IV, EFLC, Max Payne 3"
openrage = "RDR2 archives, textures, models, texts, metadata, audio and animations; GTA IV archives, textures, models, texts and placements; GTA VI as soon as it is on PC"
openrage = "RDR2 archives, textures, models, texts, metadata, audio and animations; GTA IV archives, textures, models, texts, placements and cutscenes; GTA VI as soon as it is on PC"
edge = "openiv"

[[extra.compare]]
Expand Down Expand Up @@ -279,7 +279,7 @@ openrage = "glTF (Blender)"
[[extra.compare]]
feature = "Model import"
openiv = "Yes"
openrage = "Not yet"
openrage = "OBJ into GTA V Enhanced props and vehicle bodies (preview)"
edge = "openiv"

[[extra.compare]]
Expand Down
2 changes: 2 additions & 0 deletions site/content/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ openrage mkdir x64e.rpf/my_folder
openrage replace-model x64i.rpf/…/prop_x.ydr model.obj --mods # new geometry for an Enhanced .ydr (preview)
openrage replace-model x64i.rpf/…/prop_x.ydr model.obj --out new.ydr --shader 0
openrage replace-model x64i.rpf/…/prop_x.ydr hi.obj --lod med.obj --lod low.obj --mods # with detail levels
openrage replace-model x64e.rpf/levels/gta5/vehicles.rpf/adder.yft car.obj --mods # a vehicle body: parts named like bones move with them
openrage oiv info mod.oiv # what a package would change
openrage oiv install mod.oiv # install into the mods folder
openrage oiv list / oiv uninstall "Name 1.0" [-y] # installed packages, uninstall
Expand Down Expand Up @@ -146,6 +147,7 @@ openrage plugin preview --file car.obj --glb car.glb # save a 3D model preview
openrage plugin run obj-tools export x64e.rpf/levels/gta5/vehicles.rpf/adder.yft --out adder/
openrage plugin run strings export x64a.rpf/data/x.dat --out exported/
openrage plugin run strings export x64a.rpf/data --out exported/ # batch actions also take folders and archives
openrage plugin tool hex-tools numbers --set value=0x1F # a plugin's tool window, on the command line
openrage plugin run gxt2-patch apply update/update.rpf/x64/data/lang/american_rel.rpf/global.gxt2 --pick patch.oxt
```

Expand Down
3 changes: 2 additions & 1 deletion site/content/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ Nothing to migrate: OpenRAGE works with what you already have.
- **Same output:** DDS textures, WAV audio and `.oxt` game text match OpenIV's exports.
- **Same safety:** OpenRAGE starts read-only; **Read-only → Editing** unlocks changes, like OpenIV's edit mode.
- **New:** undo for every change, search across the whole game, Linux, GTA V Enhanced and RDR2.
- **Not yet:** importing models. Keep OpenIV for that; both tools share the same `mods` folder.
- **Model import is a preview:** OBJ models replace GTA V Enhanced props and vehicle bodies
([how](@/modding.md#models-preview)). For other kinds of models keep OpenIV; both tools share the same `mods` folder.

## Next steps

Expand Down
7 changes: 5 additions & 2 deletions site/content/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ change anything, open other files or go online.
OpenRAGE does the same. You first see what the plugin is, what it may do and its SHA-256 checksum (compare it with
the one the author publishes). **Uninstall** removes it again. A plugin folder also works: put it into your plugin
folder (`~/.config/openrage/plugins` on Linux, `%APPDATA%\openrage\plugins` on Windows, or `plugins` next to the
program); **Open plugin folder** opens it, **Reload plugins** picks up new ones. The download comes with three example plugins: *Strings* (shows and
program); **Open plugin folder** opens it, **Reload plugins** picks up new ones. The download comes with four example plugins: *Strings* (shows and
exports the readable text of any file), *Text patch* (applies an OpenIV `.oxt` file to a `.gxt2`) and *OBJ tools*
(exports models as OBJ with their textures, shows `.obj` files in 3D).
(exports models as OBJ with their textures, shows `.obj` files in 3D, replaces props and vehicle bodies with an OBJ)
and *Hex tools* (a number and RAGE hash converter in the **Tools** menu, and hex dumps of any file).
- **Enable:** **Settings → Plugins** lists each plugin with what it does, its licence and the permissions it asks
for. New plugins are off; turning one on grants what it asks for. A new version that asks for more is off again
until you confirm. Plugins that cannot be loaded are listed with the reason.
Expand All @@ -131,6 +132,8 @@ change anything, open other files or go online.
- **Changing files:** plugins with the *write-mods* permission can change game files. That only works while editing
is unlocked; the changes go into the `mods` folder, never into the game's own files, and each run is one entry in
**History** that you can undo.
- **Tools:** some plugins add a small window of their own to the **Tools** menu, such as *Hex tools*' number
converter: fill in the fields and the result follows as you type; **Copy result** copies it.
- **Command line:** everything also works with [`openrage plugin`](@/cli.md#plugins).

Want to write one? See [Writing plugins](@/plugins.md).
Expand Down
Loading