Repository navigation
RPF9: exact TOC reading, named extraction and GUI integration - #145
Open
bosseurdinternet wants to merge 19 commits into
Open
bosseurdinternet wants to merge 19 commits into
bosseurdinternet wants to merge 19 commits into
Conversation
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>
One conflict, in the CLI's early commands: `ttpf` from this branch and the new `rebuild` check of `rpf8` from develop both stay. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Use decrypted metadata for nested archive navigation, native path lookup and bounded model resource reads. Add budgeted TTPF decoding, local probes and portable Vulkan dictionary tools. Keep recovery scanning separate when no reference executable is available.
This branch has not been deployed
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.
RPF9 entries can now be listed and extracted using their decrypted TOC instead of inferred stream boundaries. For the analysed Scarlett 1.0.2.1 build, a known path such as
common.rpf/data/ai/conversationlist.metaresolves to logical entry 19 and extracts its decoded content. Unknown names remain accessible through hash-based filenames.This branch incorporates #144 (head
4f35767) and connects its GUI and format readers to the exact TOC. Its archive recovery scanner remains a fallback when no reference executable is available. The original #144 commits and attribution are preserved; this PR includes that work rather than presenting it as an independent implementation.Changes
rpf9-names.txtorRPF9_NAMES, and display unresolved entries as hash filenames. Keep ambiguous candidates and 32-bit-only hypotheses distinct.Validation
cargo fmt --all --checkand diff whitespace checks passed.--ignore-rust-versionand two build jobs. The GUI was launched successfully; exhaustive interactive rendering validation was not performed.conversationlist.metasucceeded. A bounded local probe parsed 16/16 model resources and exported 16/16 small textures (RGBA and BC1) to PNG, with a 32 MiB per-resource/chunk limit.Scope and remaining limitations
Full upstream CI, cross-platform validation and license-list checks remain for review; the local validation above does not claim those checks have passed.