From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:MPQ (MoPaQ)" |
|---|
| claim | "Each block table entry is 16 bytes: file data offset relative to the MPQ header, stored (compressed) size, real size and flags." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Format:MPQ (MoPaQ)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "TMPQBlock" |
|---|
| size | "0x10" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "file_pos" |
|---|
| notes | "relative to the MPQ header; high 16 bits in the hi-block table (format 1+)" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "stored_size" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "file_size" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "flags" |
|---|
| notes | "MPQ_FILE_* flags" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "StormLib commit 116135c, src/StormLib.h: _TMPQBlock." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Extraction using these fields matched mpyq for all 52 listed files of two public sample archives." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "MPQ block table entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T03:10:32.494Z" |
|---|
| verifications | |
|---|