From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:MPQ (MoPaQ)" |
|---|
| claim | "With flag 0x4000000 the sector offset table has sectors + 2 entries; the bytes between the last two offsets are a compressed array of one Adler-32 per sector, computed over the stored (still compressed) sector. 0 or 0xFFFFFFFF means unchecked, and the block may be empty." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Format:MPQ (MoPaQ)" |
|---|
| observed_in | | "StarCraft II map sample (last sector compression.s2ma from mpyq)" |
|
|---|
|
|---|
| data | | condition | "block flag 0x04000000" |
|---|
| effect | "optional integrity check per sector" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "StormLib commit 116135c: AllocateSectorChecksums in src/SBaseCommon.cpp (expects (sectors + 2) * 4 as the first offset) and the adler32 check in src/SFileReadFile.cpp." |
|---|
|
| type | "runtime_test" |
|---|
| detail | "In the public format-3 sample, flagged files have first offset (sectors + 2) * 4; one file has an empty checksum block, the others a block whose method byte is 0x20 (sparse)." |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "MPQ sector checksums" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T03:10:33.639Z" |
|---|
| verifications | |
|---|