s2prot
s2protocol
s2prot | s2protocol | |
---|---|---|
3 | 9 | |
51 | 616 | |
- | 0.3% | |
4.8 | 5.7 | |
about 1 month ago | 13 days ago | |
Go | Python | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
s2prot
-
Show HN: Rust nom parsing Starcraft2 Replays into Arrow for Polars data analysis
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
-
Rust 2024 the Year of Everywhere?
vm = virtual machine/memory?
I'm porting this Python library to Rust: https://github.com/Blizzard/s2protocol.
For the shitty, first pass prototype code I've written so far I've seen a ~30-40x speedup compared to the Python implementation and a ~2x speedup compared to a Go implementation by someone else: https://github.com/icza/s2prot.
That is why I chose Rust over a GC language like Go. It's a lot faster out of the box, even without me having a strong understanding of memory operations.
- Could humans theoretically read the code of a SC-replay?
s2protocol
- How can I get my list of actions from my replays?
-
[Showoff Saturday] I made a search engine for StarCraft 2 games
I used mpyq and s2protocol as reference implementations and ported them to Rust.
-
Rust 2024 the Year of Everywhere?
vm = virtual machine/memory?
I'm porting this Python library to Rust: https://github.com/Blizzard/s2protocol.
For the shitty, first pass prototype code I've written so far I've seen a ~30-40x speedup compared to the Python implementation and a ~2x speedup compared to a Go implementation by someone else: https://github.com/icza/s2prot.
That is why I chose Rust over a GC language like Go. It's a lot faster out of the box, even without me having a strong understanding of memory operations.
-
Replay Auto Caster
You got programming knowledge? I'm not trying to dunk on you but if you don't know how these work then you won't be able to build the thing anyway. First result when you search for stuff is the official Blizzard s2protocol parser https://github.com/Blizzard/s2protocol
-
Rest Apis
same, the main thing we need is the equivalent of https://github.com/Blizzard/s2protocol for stormgate.
-
Man, I feel like an idiot.
React basics are not that complicated. I ported the core functionality of this Python library to Rust in ~1w with zero prior Rust experience, and I definitely think Rust is more complicated than React.
- Could humans theoretically read the code of a SC-replay?
-
Simple Python program to search replays
pip install s2protocol (this is a blizzard vended package for parsing replay files - see https://github.com/Blizzard/s2protocol)
-
Just finish my SC2 dashboard, do you guys like it ? :)
If not you will have to either learn programming, this tool by blizzard is capable of extracting replay stats: https://github.com/Blizzard/s2protocol
What are some alternatives?
parse-rosetta-rs - Comparing parser APIs
tamago - TamaGo - ARM/RISC-V bare metal Go
Tims-PackageServer - Lightweight Package Server for WoltLab Community Framework
hylo - The Hylo programming language
nom - Rust parser combinator framework
s2protocol-rs - Starcraft 2 Protocol Replay Reader
pdx-tools - View maps, graphs, and tables of your save and compete in a casual, evergreen leaderboard of EU4 achievement speed runs. Upload and share your save with the world.
zephyrus-sc2-parser - A parser for .SC2Replay files
rust-parser
mpq - Decoder/parser of Blizzard's MPQ archive file format
usbarmory - USB armory - The open source compact secure computer
screp - StarCraft - Brood War replay parser