RPF9 table record size: 9 or 10 bytes padded to 16, not 16 per record #1
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/SentinelInteractive--0x52504639#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@JoshRob297 on GitHub · 2026-11-23 03:59 UTC · original
The table record size
docs/rpf9-container.mddescribes the archive as "two tables of 16-byte records", and notes that both table lengths are multiples of 16 in all 4,330 headers. I measured the record size on a shipping Xbox build and get 9 or 10 bytes per record, with the table padded up to a multiple of 16 — which would explain the alignment you observe without the record itself being 16 bytes.Measurement
For each of the 22 top-level
.rpfarchives of the package I parsed the 64-byte header and checked:where
w24is the declared entry count at0x24. Over the 22 archives:0x2Clow byte is 1 in 15 archives → stride 90x2Clow byte is 2 in 7 archives → stride 10Your field table lists
0x2Cas 4 bytes, flags0x90F01or0x90F02. In my sample that holds exactly as stated, and the low byte of that field is the stride selector: 1 → 9 bytes, 2 → 10 bytes. So the flags field may be carrying the record width rather than an unrelated flag.Two worked examples from the corpus:
What I am not claiming
I did not decode the tables; they are enciphered in my build too. This is a geometric measurement of the region between the header and the payload, not a claim about the record contents, and it says nothing about the key.
Questions
region = ceil((8 + flags_low) * w24 / 16) * 16reproduce the table-1/table-2 boundary in your 4,330 headers? If your corpus disagrees anywhere, that is more interesting than agreement and I would like the counterexample.rpf9-container.mdan earlier reading of the table length being a multiple of 16, or did you see something that rules out a 9/10-byte stride?The 22 raw 64-byte headers, in five formats (binary, TSV, JSON, C++ and Python fixtures) with a test that re-derives the region from them, are published at https://github.com/JoshRob297/rpf9-research under
raw/cabeceras/, so this is checkable without taking my word for it.