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

A StarCraft II bot api client library for Python 3

Results 68 python-sc2 issues
Sort by recently updated
recently updated
newest added

It may be helpful to have pages dedicated to the more commonly used classes (for example: `game_state`, `unit`, `units` etc) where the tables of applicable properties, methods etc can be...

documentation

Hello. As in the title, on_step does get trigger for me until the 11th second in game time. This does not happen when realtime=False. I've emptied out the on_step method...

bug

When you start a game as a human player vs a bot, the human player has to be player 1. This will not work: ```python sc2.run_game( sc2.maps.get("AbyssalReefLE"), [Bot(sc2.Race.Terran, microbot()),Human(sc2.Race.Protoss)], realtime=True...

documentation

Hello, Posting this here, as Github does not support PR's to Wiki. However.. I've made some enhancements to the wiki: * Included installation instructions also to the wiki * Getting...

enhancement

Hi I am new to sc2 and I installed it tried to just import sc2 and got this error in my python idle Traceback (most recent call last): File "M:\Python36\Lib\site-packages\examples\protoss\cannon_rush.py",...

help wanted

This can be reproduced by looking at the threebase_voidray.py example, and adding a second call to run_game with a different map. On the second map, calls to get_next_expansion() will produce...

bug

The following are the calculated costs from the game data: ``` cost = bot._game_data.calculate_ability_cost(x.creation_ability) where returned / calculated cost is a tuple: (minerals, vespene) ``` A few of the costs...

bug

I'm trying to make an AI that doesn't hardcode any of the tech tree, and instead infers it from the _game_data attribute of the bot at runtime. So far I'm...

question

"on_unit_destroyed" gets called with identical unit_tags repeatedly. This usually happens later in the game (7-10+ minutes into the game).