From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:MPQ (MoPaQ)" |
|---|
| claim | "Each hash table entry is 16 bytes: two 32-bit name hashes (hash types 1 and 2), a 16-bit locale, an 8-bit platform, an 8-bit flags byte and a 32-bit block-table index (0xFFFFFFFF free, 0xFFFFFFFE deleted)." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Format:MPQ (MoPaQ)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "TMPQHash" |
|---|
| size | "0x10" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "name_hash_a" |
|---|
| notes | "hash type 1 (0x100)" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "name_hash_b" |
|---|
| notes | "hash type 2 (0x200)" |
|---|
|
| offset | "0x8" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "locale" |
|---|
| notes | "Windows LANGID, 0 = neutral" |
|---|
|
| offset | "0xA" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "platform" |
|---|
| notes | "0 in observed archives" |
|---|
|
| offset | "0xB" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "flags" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "block_index" |
|---|
| notes | "0xFFFFFFFF never used, 0xFFFFFFFE deleted" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "StormLib commit 116135c, src/StormLib.h: _TMPQHash, HASH_ENTRY_FREE and HASH_ENTRY_DELETED." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Lookups with this layout found every (listfile) name in two public StarCraft II sample archives." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "MPQ hash table entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T03:10:32.419Z" |
|---|
| verifications | |
|---|