python-sc2
python-sc2 copied to clipboard
A StarCraft II bot api client library for Python 3
- pixel_map.py, i delete two sentences assert self.bits_per_pixel % 8 == 0, "Unsupported pixel density" assert self.width * self.height * self.bits_per_pixel / 8 == len(self._proto.data) - class sentdebot, i delete...
Hi! I'm wondering if there is a clean way to disable default AI? It seems like the default AI control the units during the playing games. I want to totally...
Currently, gameinfo.map_ramps contains vision blockers because the current ramp point condition `self.placement_grid[(x, y)] == 0 and self.pathing_grid[(x, y)] == 0` is also true for them. I think it is easier...
When trying to expand, the function bot_ai.expand_now calls get_next_expansion which can return a null (will happen late in the game when no expansions are available), however, bot_ai.expand_now does not handle...
https://github.com/Dentosal/python-sc2/blob/caf05aeee2e62c8e30279081ac46e630305117a8/sc2/bot_ai.py#L275 When no more mineral fields are left, an assertion exception is thrown ``` Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/sc2/main.py", line 144, in _play_game_ai await ai.on_step(iteration) File "./main.py", line...
https://github.com/Dentosal/python-sc2/blob/608bd25f04e89d39cef68b40101d8e9a8a7f1634/examples/terran/onebase_battlecruiser.py#L9
I want to access to variables defined in Map like below.  Is there any way to do this?
Hi, I discovered a problem with Windows when trying to use the run_game() command. I installed the python-sc2 library on Windows with anaconda. Additionally, I am using the regular Starcraft...
In `unit.py` we currently only take `_weapons` directly from the unit's type data. With `_weapons`, we then calculate `can_attack`, `can_attack_air`, `can_attack_ground`, `ground_dps`, `air_dps`, `ground_range` , `air_range` and `bonus_damage` for every...