Index: keep a resource whose system page continues on a resource boundary in one entry (index version 6) #156
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!156
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/156/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-24 13:45 UTC · original
holdmysocks:claude/index-split-resources→master· +95 −4 · 4 files · 2 commits · merged 2026-11-24 14:14 UTCFollow-up to #149 (SIX-98). A full texture dictionary export still gave 11 "texture data out of range" warnings, all from one levels entry. The cause is in the carving index, not in the texture decoding.
Cause
group_streamsstarts a new entry when a contiguous RAGE-object stream begins on a 4 KiB + 0x10 boundary. A resource's later system-page stream can land on such a boundary by chance.The entry in question shows this:
Fix
Grouping keeps adding contiguous streams while the entry's page-map pointer (+0x08 of its first stream) lies past the bytes it has. The loader already reads multi-stream system pages that way.
Effect (all archives, regrouped from the cached stream scans with
examples/regroup)Index version 6 (separate commit)
INDEX_VERSION, as #8 did.sixng index. With the cached stream scans, the levels.rpf rebuild (grouping and names) took 6 min here.Checks: a unit test for the split case.
cargo test -p sixng-core: 163 pass. The workspace builds.