forked from ascendedguard/sc2replay-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
SC2replay header
tousdan edited this page Dec 16, 2010
·
6 revisions
The MPQ file format specification specifies that there is sometime an optional 'shunt' block which is used to store user data for a particular MPQ file. In the case of sc2 replays, this user data block contains many information concerning the version of the replay we are parsing. (source: http://wiki.devklog.net/index.php?title=The_MoPaQ_Archive_Format#User_Data)
This document requires heavy research. An original source was found here, however the format has since changed. The table below should be correct for the more recent replay format, however the Version and Build numbers have not been determined yet.
Location | Meaning | Expected Value |
0x00 - 0x03 | MPQ Header | "MPQ" + 0x1B |
0x04 - 0x07 | Maximum Size of User Data | 512 |
0x08 - 0x0B | Offset of the MPQ header | 1024 |
0x0C - 0x0F | Size of User Data Header | 60 |
0x10 - 0x14 | ? | Unknown - An example is hex "05 08 00 02 2c" |
0x15 - 0x27 | "Starcraft II replay" |