Repository navigation
Conversation
- rage-formats: XML → PSO (`Pso::from_xml`), using the original file as the template: its schema and other sections stay, the data and block map are rebuilt with the game's layout (one type per block, original block order, depth-first items, 0x70 padding, GTA V and RDR2 block maps and pointers). Structures, pointers, arrays (inline and external), strings, hashes, enums, flags, maps, vectors and matrices. CHKS is dropped when the data changes. - Reader fixes found by the round trip: RDR2 enum values are 16 bytes (flag and enum names were wrong), unknown enum values print as numbers, string arrays were escaped twice. - names::parse_value: the hash behind a printed name. - openrage verify --meta --rebuild and rpf8 --meta --rebuild: every PSO file to XML and back. GTA V Enhanced: 4,943 files, 3,973 byte-identical, all read back to the same XML. RDR2: 69,246 files, 52,656 identical, all others the same XML (2 not fully readable, skipped). - oiv: <pso> parses its XML commands and is applied like <xml> on the file's XML, then written back; preview shows the lines changed, journal and undo as for other edits. Names compared in XPaths are registered so hashes match them. - Docs: modding (supported kinds, what is still refused), cli, index table. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* RDR2 editing: RPF8 writer, changes into LML's lml/replace folder Red Dead Redemption 2 becomes editable the way GTA V is, never touching the game's archives: - rage-rpf: Rpf8Editor edits an RPF8 archive in place (append data, rewrite the header and a plain-text entry table, relocate entries a grown table covers, keep untouched entries' stored bytes and the signature block), with a Backup for exact undo. Entries keep bits OpenRAGE does not interpret. Resources go in and out as RSC8 files. - rage-mods: RDR2's overlay is Lenny's Mod Loader's lml/replace folder, where <archive>/<path> replaces <path> inside <archive>.rpf; resolve, scan and the change list map between the two. - openrage-app: changes to files in a game archive become loose files in lml/replace; changes inside nested archives copy that archive there once and edit it with the RPF8 writer. Journal, undo, names of new entries (lml/replace/.openrage/names.txt), x64/ name forms, RDR2 textures replaced in place (same shape), Extract saves resources as RSC8. - GUI: edit mode (Import/Replace/Rename/Delete, texture Replace) in RDR2 archives, overlay marks for lml/replace. - CLI: put/rm/mv/undo work on RDR2; `verify --rebuild` edits a copy of every archive, reads it back, undoes and checks the bytes. - Docs: rdr2.md "Changing files", modding.md, README status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * RDR2 docs: numbers from a full verify --rebuild Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Shaders with a tint palette keep a shade in lyr0DiffuseTex; the palette slot is the vertex colour's blue. The viewer showed the palette (or the game's pink debug palette) as the colour. - Vehicles (vehTintPaletteTex, e.g. generic_wagon_palette): each slot gets the paint and worn rows of the model's first variation in carvariations.ymt; green picks the column, blue blends to the worn row. - Props and weapons (TintPaletteTex, e.g. *_pal): tint 0, column = slot, the grey texture laid over the colour (hard light). Meshes that mix slots are split; each (shader, slot) gets a baked texture and shader copy, so the viewer and glTF export show the colours. The vertex colours of those meshes are dropped (they held slots, not colours). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… cloth (#138) * RDR2: fragments show their moving parts An RDR2 fragment's children are drawables of their own (wheels) in the physics LOD (fragment 0x90, LOD at +0x10): list at 0x118, u8 count at 0x146, group of each child at 0x110, groups at 0xC8 with the name at +0x4F and the parent at +0x06. A child sits on the bone its group (or a parent group) is named after and uses the body's shaders. The viewer places them like GTA V's, copies a wheel to the other side, and keeps the blurred `_fast` wheels hidden. `rpf8 --models` reads the children too (113,466 models, the cloth strap still fails). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * RDR2: animations play on fitting models, object clips read - Clips of one animation (kind 1 at 0x20: doors, destruction, props) keep their layer in the clip at 0x68 instead of a part list; 109 clip dictionaries failed to read before. - Fitting models for RDR2 clip dictionaries: skeletons of RDR2 models (.ydr, .yft, .ydd, ped outfit files) are read for ranking; every ped and animal is ranked by its base skeleton (read once each, in parallel, skeleton only), by the share of all the dictionary's bones since RDR2's people and animals share the main bones' names. Prop clips named after their model (`des_brt3_door_01`) name candidates. - RDR2's main bones (hashes of SKEL_* names) count as ped bones. - Debug: OPENRAGE_ANIM_AT pauses a viewer clip at a share of its length. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * RDR2: cloth of fragments in its rest pose An RDR2 fragment lists its cloth at 0x48 (16-byte entries, u16 count at 0x50); each cloth keeps its drawable at +0x18, the rest pose (flags, awnings, straps). The viewer shows them as Cloth parts; a fragment that is only cloth (w_repeater_cloth_strap01) now reads. Ped coats already came complete from their .ydd. `rpf8 --models`: all 113,468 models, 628 fragment parts and 894 cloths. Docs and README updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* OBJ import: vehicle wheels, .ydd drawables, bone weights from the original The model writer now writes into any drawable of a file (`Place`): the main drawable, a fragment child's own model (a vehicle's wheel, its meshes in the bone's space, its shader copies in the main drawable's group) and every drawable of a `.ydd`, several at once (`replace_parts`). Skinned vertices can be blended between up to four bones (`NewMesh::blend`); a geometry gets a bone table of its own when the template's lacks some of the bones. The OBJ import routes parts by name: `wheel_lf` replaces the wheel model (copies on the other wheel bones are left out, as the game makes them), parts named after a dictionary's drawable replace it (`--drawable` for the rest), and models blended between bones (peds, clothing) take the weights of the original's nearest vertex, as OBJ cannot carry weights. The plugin `build-model` takes the same path, also for `.ydd`. `verify --models --rebuild` now rewrites the body and wheel models of every `.yft` and every drawable of every `.ydd` too, with all bone weights. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Vehicle mod parts in the viewer; importing onto them A vehicle's mod parts (the .yft files of its <name>_mods.rpf archives) are listed under Parts as "Mods: bonnet", "Mods: spoiler" …, hidden at first, each on the bone the game's carcols files name for it (PSO files keep the model names as hashes, so placements are looked up by hash). The archives are found once per game. Importing an OBJ onto a mod part already worked except for textures: mod archives have no texture structure to lend, so the shared vehshare.ytd does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Collisions from OBJ: --collision for drawables, .ybn files New `ybn_write`: a triangle mesh as a BVH bound (type 8), copied from a BVH bound of the original (or, for collisions of boxes and spheres only, of another one of the game), with shared quantized vertices, edge neighbours, material types per triangle and the hierarchy built the way the game's are (leaves of up to four polygons in order, subtree sizes, Bullet's subtree headers). `check_bvh` checks hierarchies against that reading; it passes on the game's own. `replace-model prop.ydr model.obj --collision col.obj` replaces a drawable's collision, `replace-model x.ybn col.obj` a collision file's; OBJ materials named after a collision material get it. A composite keeps one child, the new bound. Fragments (vehicles) keep theirs: it is split over the physics parts. `verify --collisions --rebuild` checks the game's hierarchies, then writes every collision anew from its own triangles and compares what reads back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Collision check by area; texture structure from the first readable texture The new collision is one bound, so its vertex grid is that of the whole collision; slivers (tessellated tiny spheres and capsules) can collapse. The check compares the area per material and allows triangles only to get fewer. Documented: vertices lie on 1/65,534 of the collision's size. Embedded dictionaries can list empty entries: the writer copies the first texture there is instead of the first entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* openFormats: export and import OpenIV's text formats - rage_formats::openformats: GTA V drawables, fragments, drawable dictionaries and texture dictionaries (Legacy and Enhanced) as .odr, .oft, .odd, .otd with .mesh, .skel, .otx and DDS, in the layout of OpenIV's own exports (a prop matches OpenIV's files line for line); reads them back - openrage_app::openformats: import onto the game file the files came from: meshes and detail levels through the model writer, embedded textures by name (new ydr_write::replace_embedded_textures), .otd onto .ytd; shaders, skeleton, physics and parts stay, and what differs there is reported - CLI: export-openformats, import-openformats (--out / --mods), verify --models --openformats (text round trip of every model and .ytd, Enhanced models imported back onto themselves) - Explorer: Export openFormats… and, in edit mode, Import openFormats… in the context menu (mods folder, undo) - Docs: viewers, modding, CLI, README plugins line Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * openFormats: fixes from the whole-game check - texture usage 0 and other codes without a name survive (.otx `UNKNOWN`, `USAGE_<n>`) - texture file names keep every name apart and come back exactly (other characters as %xx), e.g. `font_?` and `font_!` - models on a rotated root bone stay in place when imported - half-float infinities in vertex data compare equal; broken embedded dictionaries export what can be read - DDS: arrays of 2D textures keep their size (DX10 array size) - verify --openformats lists failures by kind Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Docs: openFormats whole-game check numbers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * verify --openformats: files of one archive on every core Archives are still read in parallel; the work per file goes through a short queue to one worker per core, so one big archive (all vehicles are in one) no longer leaves the others idle: the vehicles take 64 s instead of 14 min. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every `openrage verify` mode for GTA V and GTA IV now goes through one helper (`for_each_entry_parallel`, `for_each_gta4_entry_parallel`): archive roots are walked in parallel as before, and every matching file goes through a short queue to one worker thread per core, which reads, decompresses and checks it with its own stats. A big archive (all vehicles are in x64e.rpf) no longer leaves the other cores idle. Counts are unchanged; error lists are sorted, since workers finish in any order. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* GTA VI: archives, audio, metadata, textures and models GTA VI's archives (RPF9) have an encrypted table of contents, and the keys are only in the game's program. What is not encrypted is read without it: - RPF9 as a recovery view: the data area is scanned once for zlib streams, Bink 2 videos and audio containers; files are named by their offset and sorted into folders by what they start with. The index is stored per archive and made in the background when the game is opened. - A folder with GTA VI's archives counts as a game without a program and without keys. The setup says Open instead of Derive keys and can always be left. - Audio: GTA VI's containers (two more tables, Opus instead of Vorbis), sounds and multi-channel streams, decoded with opus-rs. - Metadata: PSIN with an LSCH schema and the RBF0 variant with 8-byte numbers, both as XML. Tables of zero-ended strings open as text. - Textures: the texture pools (.ttpf) open as folders of 64 textures; 2D textures, arrays and cube maps, with BCPack for BC1, BC3, BC4 and BC5. `openrage ttpf` counts and exports a pool. - Models: drawables, fragments and drawable dictionaries open in the viewer, listed by their own names under models/, with the base colour texture of their materials from the texture pools. Not read: BCPack for BC6H and BC7, volume textures, skeletons and skinning, Bink 2 video (no free decoder), and everything that needs names from the table of contents. Format knowledge and its sources are in NOTICE.md (Leonida, rpf9-explorer, Microsoft's silicon-rans tables). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * GTA VI: decrypt the RPF9 table of contents from the game executable Adds the native RPF9 reader that decodes the encrypted table of contents, using cipher material read from the user's own game_scarlett_master.exe (nothing is bundled; an unknown build is rejected by its SHA-256): - rpf9_cipher: the Scarlett build's table-driven 16-byte block transform (not standard AES, which is why it resisted key scanning), CBC for the header and AES-CTR (algorithm 17) for members. Key schedules and tables are read from the executable by selector. - rpf9_index: parses the decoded header into validated native tables and entries (slot, offset, sizes, type, name hashes, storage). - rpf9_names: the native 32-bit Jenkins and 64-bit Murmur name-hash leaves, path-candidate collection, and the static extension<->type mapping. - rpf9_native: finds the executable beside the archive, builds the cipher once, decodes the header (selector 9: two chained metadata spans), and parses the catalog. Verified against the local 1.0.2.1 Xbox archives: the header decrypts and the catalogs parse with the exact declared entry counts (common 418, data 699, audio 103), matching the clear-header fields. Not yet wired into the browse/extract path (the modules are staged behind allow(dead_code)); reading member payloads (chunked/CTR), the Rpf9/GUI integration and wider name recovery follow. The clear header now also exposes its declared slot count and transform selector, and the CLI/GUI recognize the executable for GTA VI. The cipher, index, name and documentation modules were reconstructed from the executable by a contributor; this commit fixes the missing extension-for-type mapping, resolves lints, and adds the decryption verification. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * GTA VI: read members and browse archives by their own table Members are decoded from their chunk, encryption and resource records; nested archives open like folders. Names come from strings in the executable and the game's metadata, checked against the table's hashes. Also regenerates the third-party licence files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * GTA VI: names inside nested archives, expand archives on extraction Models, clip dictionaries and some other types hold their own name, which is checked against the hash in the archive's table. Opened tables are kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * GTA VI: extensions of registered types, names that follow patterns Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * GTA VI: tell sounds and other unnamed files by their content Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * GTA VI: texture dictionaries, maps and types; containers with one sound play at once Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * GTA VI: show collisions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Preview: centre models, sharp on scaled screens, waveforms fill the area; GTA VI texture sheets and icons Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * GTA VI: show navigation meshes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Search: index GTA VI archives, their metadata and game text Native RPF9 archives and those nested in them are indexed in parts, in parallel and cancellable; metadata (#mt) as XML, language files (#ldbmt) as label hash and text. Searches find names that are only known as hashes, text hits have room beside names, words with punctuation match, paths are found, and results of every game show their matching line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * GTA VI: read text tables Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Bink 2 videos: decoder, CLI export, player in the preview Pure Rust decoder for .bk2 (KB2g to KB2n) with alpha and sound, ported from Librempeg (GPL-3.0-or-later). openrage media exports frames as PNG and sound as WAV; the GUI preview shows the first frame and plays, pauses and seeks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * GTA VI clip dictionaries and skeletons: list, verify and play clips Reads .#cd files: clips with their layers joined, all channel kinds the game uses (with the new eight-lane packed floats), tracks by name hash. Skeletons and byte-indexed skinning of GTA VI models; clips and verify --animations on the command line, clip list in the GUI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Order modules * Search index and GTA VI keys use threads of their own Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * README: what GTA VI support covers Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix the findings of the review: GTA VI XML, video shape, stuck previews, limits for damaged files Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Videos of every game in a player window; stop, resume and progress of the index Bink 1 (revisions f to k) is decoded, so the videos of GTA IV and V play like those of RDR2 and GTA VI; RDR2's have no names and are told by their content. A double click opens a video in a window of its own with volume, repeat and full screen. Sounds are played without a copy in memory, and the picture of a long video is there before its sound is read. The status bar shows how far the search index is and can stop it and go on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * GTA VI: parts of people and animals move with their skeleton A model lists the hashes of its bones' names. Parts name those of a base skeleton in metaped_fragments.rpf, so clips play on them; bones of garments and hair hang from the body. Bone numbers of 32 bits are read too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * GTA VI: the map in 3D, materials, names across archives A map file is shown with what lies around it, and the whole world from afar; models of dictionaries are found by the hash of their name. Models show their normal and specular maps (GTA V Enhanced too) and can have up to 1024 bones. Files without a name are named after those of other archives once the index is built (155,000 of them), and more metadata opens as XML. Loading the keys or the skeletons from a worker thread could wait for itself; no longer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Website and README: GTA VI works Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Map: fly through it with details loaded around the camera; orbit on a circle The whole map of GTA VI shows the level of detail that fits where the camera is, after the tree in the map files. Maps and cutscenes get a flying camera; the wheel sets its speed, in model views too. Orbiting no longer shifts the camera with the angle, which felt like an ellipse. Depth is reversed, so that scenes of kilometres do not flicker. Files listed before their name was learned are still found. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Website: a short GTA VI section and a page of its own Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Website: screenshots and an accent of its own for GTA VI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * README and website: drop the note on where the screenshots come from Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Maps: sky, sun, haze and water; pictures drawn much faster Placements of a model are drawn together, a model has one buffer, and only what changes is set between draws. Textures have smaller copies for the distance, new models are uploaded by the loading thread, and what is smaller than a pixel is left out. Pictures of scenes are at most Full HD. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Maps: textures in full size, decals, layers, water, time of day Textures go to the graphics card compressed as the game has them and are shared between models; near the camera they are read in full size. Decals are blended, layered grounds mixed and shaded by what GTA VI stores per vertex. There is a sea with waves, and beside the map settings for the time of day, haze, sea, field of view and detail. Models share buffers, vertices are half as large, the list of what to draw is made in parallel, and a moving view does not wait for the graphics card. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Website: another picture at the top of the GTA VI page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Release 0.6.0: version Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Release 0.6.0: version of the workspace crates and the lock file Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 0.6.0: brings
developintomain. After merging (merge commit),v0.6.0is tagged on main.<pso>edits in.oivpackages install and uninstall (PSO writer: <pso> edits in .oiv packages install and uninstall #137).ydd, bone weights, collisions (OBJ import: wheels, mod parts, .ydd, bone weights, collisions #139)lml/replacefolder (RDR2 editing: RPF8 writer, changes into LML's lml/replace folder #140)🤖 Generated with Claude Code