Skip to content

Getting started (Ubuntu)

Kalle Johansson edited this page Nov 28, 2019 · 4 revisions

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:

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.

Clone this wiki locally