Re:Show HN: Rust nom parsing Starcraft2 Replays into Arrow f...
by icza on Wednesday October 04, 2023 @04:39PM
(#37771403)
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. I also wrote an SC2 replay parser that is more or less a port of the official s2protocol: https://github.com/icza/s2prot
[ Parent
| on HN ]
Re:Show HN: Rust nom parsing Starcraft2 Replays into Arrow f...
by sebosp on Wednesday October 04, 2023 @04:47PM
(#37771518)
I mean for example 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.