python-sc2 icon indicating copy to clipboard operation
python-sc2 copied to clipboard

Human vs. Bot problem

Open tweakimp opened this issue 6 years ago • 1 comments

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
    )

tweakimp avatar Aug 16 '18 21:08 tweakimp

Known issue. This should be documented better.

Dentosal avatar Jan 04 '19 15:01 Dentosal