hashes: add the 64-bit name hash (MurmurHash3 x64 128) #30
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/nineforge0--forge9!30
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-30"
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?
@Justin-160inteva on GitHub · 2026-11-29 22:30 UTC · original
Justin-160inteva:feat/murmur3-64-name-hash→main· +101 −4 · 3 files · 1 commits · openWhat
RPF9 entries carry two name hashes. This crate reads the 32-bit
joaatcolumn; the 8-bytecolumn
0x73bcb72dce74f11fhas been listed as unidentified (entry.rsline ~147, and theopen issue "Identify the 64-bit TOC column 0x73bcb72dce74f11f").
That column is MurmurHash3 x64 128, low half, over the lowercased name. Two rules apply:
.#dr,.#bdr,.#map,.#td,.#bn, …)ma_sqr_merged.#drhashes asma_sqr_merged, because the extension lives in a separate TOC field.awc,.xml,.dat, …)Why it matters
Naming through the 32-bit column alone cannot resolve most entries. With this hash, a
hexhash namedictionary keyed on 64-bit values resolves 667,764 of 1,250,091 entries(34.84% → 88.25%) on a retail Xbox install.
Validation
""→0x0,"hello"→0xcbd8a7b341bd9b02,"The quick brown fox jumps over the lazy dog"→0xe34bbc7bbc071b6csetup2.xml→0x216b42926703a335,install.dat→0x336373b5566693f1,each matching the entry it names
cargo test --releasepasses (70 + 11)Scope
Adds
murmur3_x64_128/name_hash64, their tests, and a--64flag onforge9 hashso64-bit dictionaries can be built. Wiring the column into
catalogandlistis a follow-upPR — I did not touch
entry.rshere to keep this reviewable.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.