Read the RPF9 table of contents (toc, toc-extract) #224
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!224
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/224/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-25 00:02 UTC · original
holdmysocks:claude/rpf9-toc→master· +1294 −18 · 6 files · 2 commits · merged 2026-11-25 00:15 UTCWhat this adds
sixng toc <archive> [--files]: reads an archive's table of contents and prints its columns (name hash, element size, count) and file entries (offset, stored and unpacked size, flags). Archives stored inside the archive are followed.sixng toc-extract [archives] --out <dir>: writes the files the carving index cannot read to<out>/toc_files/<archive>[@offset]/<offset>.<ext>with anindex.jsonl. Each file is checked: every zlib stream must end cleanly, the size must equal the one in the table, and all stored bytes must be used.Both commands need Windows x64, a CPU with AVX2 and the game executable in the game folder. On other platforms they return a clear error and nothing else changes.
Code
rpf9toc.rs: the table model (sections, columns, row index, file entries), chunk unpacking and six tests on synthetic archives. Platform independent.gamecipher.rs: the Windows x64 back end; a stub elsewhere.rpf9.rs: header comments brought up to date. No field or output changes.Checked
cargo test --release --lockedpasses on Windows (218 core, 24 CLI).Not done