-
Notifications
You must be signed in to change notification settings - Fork 0
Getting started (Ubuntu)
Clone the repository.
$ cd ~; git clone --recursive https://github.com/Kal-Elx/s2client-api.git
Download a headless version of SC2 from https://github.com/Blizzard/s2client-proto#linux-packages (for TDDD92 download 4.6.2) and then extract the files using the password specified in the instructions at the same site.
Download replays from for example:
- https://liquipedia.net/starcraft2/Replay_Websites
- https://github.com/Blizzard/s2client-proto#replay-packs NOTE: Your SC2 version must be the same as the version of your replays.
For TDDD92 you can use this drive (credit Ludvig Fors).
Open s2client-api/examples/replay.cc and modify the variable kReplayFolder to point to your replay folder. For example:
const char* kReplayFolder = "home/<username>/replays";
Build the project.
$ mkdir ~/s2client-api/build
$ cd ~/s2client-api/build/; cmake ../; nproc | make -j
Now run replay.
./bin/replay -e <path to your SC2_x64>
For TDDD92 use:
./bin/replay -e ~/StarCraftII/Versions/Base69232/SC2_x64
NOTE: This won't work until you modify the code to point to your replay folder. See Modifying the code.