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 281 forks source link

A situation of Multiplayer and Addon #211

Open DotaIsMind opened 6 years ago

DotaIsMind commented 6 years ago

Hello! I am a newbie who has just used Github and Commander Center,my bot race is Terran,then I want to use the "CreateParticipant()" to add the custom bot to me, fight with my bot, CreateParticipant(Util::GetRaceFromString(botRaceString), &Player), CreateParticipant(Util::GetRaceFromString(botRaceString), &bot) I can open two windows,but the else if (item.type.getUnitTypeID() == sc2::UNIT_TYPEID::TERRAN_STARPORTREACTOR) Micro::SmartAddon(producer, sc2::ABILITY_ID::BUILD_REACTOR_STARPORT, m_bot); is invalid in the game.Do other people has encountered such a problem?

Archiatrus commented 6 years ago

Player 2 can currently not build addons (here). If this is what you mean with invalid.

Archiatrus commented 6 years ago

For everyone only reading here: The issue "has been resolved on the latest live windows client, 4.2.1.62848." Run the game at least once after the update to be sure that the correct executable is called.