Blizzard / s2client-proto

StarCraft II Client - protocol definitions used to communicate with StarCraft II.
MIT License
3.76k stars 430 forks source link

How to detect if the game has ended in the realtime mode #90

Open Dentosal opened 6 years ago

Dentosal commented 6 years ago

With two bots, status is still status: in_game, even after the game is over. Similarly, it looks like observation.player_result cannot used for that either, as the list is always empty in realtime mode.

Game returns ActionResult.YouCantControlThatUnit when trying to use units after the game is over, however is quite kludgy way to detect if the game is over, partially because it requires executing an action.

ttinies commented 5 years ago

any update?