diff --git a/Cargo.lock b/Cargo.lock index 91a361e..8eba4d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3981,7 +3981,7 @@ dependencies = [ [[package]] name = "openrage-app" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "dirs", @@ -4003,7 +4003,7 @@ dependencies = [ [[package]] name = "openrage-cli" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "clap", @@ -4022,7 +4022,7 @@ dependencies = [ [[package]] name = "openrage-gui" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "arboard", @@ -4049,7 +4049,7 @@ dependencies = [ [[package]] name = "openrage-plugins" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "dirs", @@ -4528,11 +4528,11 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" [[package]] name = "rage-core" -version = "0.3.0" +version = "0.4.0" [[package]] name = "rage-crypto" -version = "0.3.0" +version = "0.4.0" dependencies = [ "aes", "flate2", @@ -4543,7 +4543,7 @@ dependencies = [ [[package]] name = "rage-formats" -version = "0.3.0" +version = "0.4.0" dependencies = [ "flate2", "lewton", @@ -4558,7 +4558,7 @@ dependencies = [ [[package]] name = "rage-index" -version = "0.3.0" +version = "0.4.0" dependencies = [ "flate2", "rage-core", @@ -4571,7 +4571,7 @@ dependencies = [ [[package]] name = "rage-mods" -version = "0.3.0" +version = "0.4.0" dependencies = [ "rage-crypto", "rage-rpf", @@ -4579,7 +4579,7 @@ dependencies = [ [[package]] name = "rage-resource" -version = "0.3.0" +version = "0.4.0" dependencies = [ "flate2", "thiserror 2.0.21", @@ -4587,7 +4587,7 @@ dependencies = [ [[package]] name = "rage-rpf" -version = "0.3.0" +version = "0.4.0" dependencies = [ "flate2", "memchr", @@ -4603,7 +4603,7 @@ dependencies = [ [[package]] name = "rage-tfit2" -version = "0.3.0" +version = "0.4.0" [[package]] name = "rand" diff --git a/Cargo.toml b/Cargo.toml index b696331..a7bb511 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" @@ -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" diff --git a/README.md b/README.md index 14baf69..f37c045 100644 --- a/README.md +++ b/README.md @@ -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)). @@ -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 diff --git a/docs/publishing.md b/docs/publishing.md index a940b5c..112ed78 100644 --- a/docs/publishing.md +++ b/docs/publishing.md @@ -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`, @@ -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 diff --git a/site/content/_index.md b/site/content/_index.md index 25c5567..26b4991 100644 --- a/site/content/_index.md +++ b/site/content/_index.md @@ -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). """ @@ -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 @@ -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]] @@ -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]] diff --git a/site/content/cli.md b/site/content/cli.md index 6ef6e64..9f61019 100644 --- a/site/content/cli.md +++ b/site/content/cli.md @@ -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 @@ -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 ``` diff --git a/site/content/getting-started.md b/site/content/getting-started.md index 962f290..5240d16 100644 --- a/site/content/getting-started.md +++ b/site/content/getting-started.md @@ -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 diff --git a/site/content/guide.md b/site/content/guide.md index a0ab337..45eb58a 100644 --- a/site/content/guide.md +++ b/site/content/guide.md @@ -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. @@ -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).