Tracking statistics for the Starcraft 2 Corporate Esports Association league.
- Clone the repo somewhere onto your computer.
- Install the dependencies.
pip install -r requirements.txt
Replays are stored in UploadHere folder. The data folder contains the data on which teams players are on.
python download_replays.py
The replay organizer only downloads replays it hasn't seen before. This data is stored in data/[SEASON]id_dict.json. If you need to redownload replays, use
python download_replays.py --r true
Or delete the corresponding id_dict.json files.
python setup_replays.py
There'll be some errors due to a few broken SC2 Replay files, but you can ignore that or remove them.
Errors may pop up due to a missing team name corresponding to a player. In the event of a missing team name, the code will output a suggested team for that player. Update cea_names.csv by adding the player name to their corresponding team.
Any potential team allocation errors are recorded in errors.txt.
python calculate_elo.py
Stored in cea_season_stats.csv