3 ms·
SC2 replays are MPQ files, which is a proprietary format created and used by Blizzard. It's an archive that may contain multiple files stored with different com
by icza 3y ago
SC2 replays are MPQ files, which is a proprietary format created and used by Blizzard. It's an archive that may contain multiple files stored with different compression and optionally encrypted. I wrote a lib to parse MPQ files that embodies SC2Replays: https://github.com/icza/mpq https://github.com/icza/mpq. I also wrote an SC2 replay parser that is more or less a port of the official s2protocol: https://github.com/icza/s2prot https://github.com/icza/s2prot
- sebosp 3y agoI mean for example https://github.com/sebosp/s2protocol-rs/blob/755098fb86ab6b1e99f8110d62840021070a9632/src/versions/protocol87702/mod.rs#L5849 https://github.com/sebosp/s2protocol-rs/blob/755098fb86ab6b1... I hacked my way around the json protocol specification, an enum has n types, using log I can find the number of bits I need to read to uniquely identify each variant, that kind of serialization I wonder the name of.
- icza 3y agoI'm not sure about an official name, I also just call it "bitpacked".
- arwineap 3y agoThank you for your work on s2prot I spent a lot of time with it and file watchers to gather stats about my matches while I sat in queues