Skip to content

cokenyo/demoScrape2

Repository files navigation

demoScrape2

The stats collector for CSC demo files.

CSC

Join the CSC discord -> https://discord.gg/cscc

Running the parser

Tested on windows.

Setup

  1. Clone this repo.
  2. Install golang.
  3. Make a folder named in in this directory.
  4. Put .dem files (not .zip) in that folder.

Run

  1. Run with the command go run .

Each match will generate a CSV file of stats, a debugging file, and a chatlog in a folder named out.

Stitching together the outputs

Optionally stitch together the CSV files into one by using the python script.

Setup

  1. Install python 3.8
  2. Install pandas with pip install pandas

Run

  1. Run with the command python .\stitch_csvs.py

This will create a file named monolith.csv in your out folder.

All in one node script

  1. Install node version 17+
  2. Install yarn
  3. cd demo-downloader
  4. yarn install

For Combines

  1. Go to main function in downloader.js and change second param of processTier to match the folder where combine demos are
  2. node downloader.js

For In-Season

  1. Go to main function in season-downloader.js and change second param of processTier to match the folder where the match day you are processing is.
  2. node season-downloader.js

About

CSC Stats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •