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

Coordinator::LaunchStarcraft() opens the Blizzard App Login Page instead of StarCraft II #272

Open Kaminate opened 6 years ago

Kaminate commented 6 years ago

The command line buffer passed to CreateProcessA contains the string " -launch -listen 127.0.0.1 -port 8999 -displayMode 0 -windowwidth 1024 -windowheight 768 -windowx 100 -windowy 200". Eventually it times out waiting for connection. Looking in the Task Manager Details pane, there's no task with the given ProcessInfo::process_id. So far I've tried running Visual Studio as administrator, restarting, and running Visual Studio as administrator again.

( 17 second gif ) example

pineal commented 4 years ago

Just had a similar issue. My way to solve it to use "C:\Program Files (x86)\StarCraft II\Versions\Base78285\SC2.exe" as your executable path instead of "Starcraft II.exe"