This pull request contains fixes for the problems mentioned in #9 and #10.
In particular, the changes are:
when determining the latest build, only consider subdirectories of the versions directory that start with BUILD_PREFIX
new option for not using the support directory when launching starcraft
after a starcraft instance is launched via the ControllerInterface, wait until the game is ready
the existing method reachTheGame() now contains a fix for a bug that caused it to not wait between retries when the starcraft instance had not yet opened its socket
I tested these changes with the Linux packages for version 4.7.1 on a version of ocraft I backported to that protocol version. Configuring with S2Coordinator.setup() and launching with launchStarcraft() worked for both, singleplayer and multiplayer games.
This pull request contains fixes for the problems mentioned in #9 and #10.
In particular, the changes are:
BUILD_PREFIX
ControllerInterface
, wait until the game is readyreachTheGame()
now contains a fix for a bug that caused it to not wait between retries when the starcraft instance had not yet opened its socketI tested these changes with the Linux packages for version 4.7.1 on a version of ocraft I backported to that protocol version. Configuring with
S2Coordinator.setup()
and launching withlaunchStarcraft()
worked for both, singleplayer and multiplayer games.