python-sc2
python-sc2 copied to clipboard
Human vs. Bot problem
When you start a game as a human player vs a bot, the human player has to be player 1. This will not work:
sc2.run_game(
sc2.maps.get("AbyssalReefLE"),
[Bot(sc2.Race.Terran, microbot()),Human(sc2.Race.Protoss)],
realtime=True
)
You can only select units in the game client of the bot, but not in the human player client.
This works:
sc2.run_game(
sc2.maps.get("AbyssalReefLE"),
[Human(sc2.Race.Protoss),Bot(sc2.Race.Terran, microbot())],
realtime=True
)
Known issue. This should be documented better.