Blizzard / s2client-api

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
1.66k stars 282 forks source link

How to start an old version of the sc2 client? #260

Open lost1996 opened 6 years ago

lost1996 commented 6 years ago

I use "coordinator.SetProcessPath("L:/StarCraft II/Versions/Base55958/sc2.exe");" to start the older version but there was a error info means "Your StarCraft installation is damaged.".

Frigerius commented 6 years ago

Why do u want to start an older version? If it's for replays, the api already is doing this for you.

lost1996 commented 6 years ago

@Frigerius I trained a RNN to help the bot act by the old version replays.So I want to test the model in the older version.

Frigerius commented 6 years ago

I see, but can't you just test it in the current version? Where is the difference?

lost1996 commented 6 years ago

@Frigerius There are something been deleted ,just like mothership core.

herodrigues commented 6 years ago

@lost1996, pass the sc2 executable to your both as an argument.

your_bot.exe -e "L:/StarCraft II/Versions/Base55958/sc2.exe"

For more info, try:

your_bot.exe --help

It will print this

Options -
  -e, --executable The path to StarCraft II.
  -s, --step_size How many steps to take per call.
  -p, --port The port to make StarCraft II listen on.
  -r, --realtime Whether to run StarCraft II in  real time or not.
  -m, --map Which map to run.
  -t, --timeout Timeout for how long the library will block for a response.

If you see that message again, probably your Base55958 version is broken/missing files.