forked from Archiatrus/s2client-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Modifying the code
Kalle Johansson edited this page Nov 28, 2019
·
3 revisions
Start by opening examples/replay.cc.
Change the following lines to point to your replay folder and your output file:
const char* kReplayFolder = "INSERT FILE PATH HERE";
std::string filePath = "INSERT FILE PATH HERE";
Modify coordinator.SetStepSize(1000); to change step size and coordinator.SetReplayPerspective(1); to change perspective.
The following perspectives are available:
- 0 = Sees everything
- 1 = Player 1's perspective
- 2 = Player 2's perspective
Now modify the class Replay to collect the information you are interested in. Consult the documentation for ObservationInterface for help.
You can modify the function IgnoreReplay() to filter out replays.