python-sc2
python-sc2 copied to clipboard
A StarCraft II bot api client library for Python 3
A minor change adding the `rgb_render_config` and `random_seed` args to `_host_game_aiter` and passing them along in its implementation. This also adds an unprotected (without the underscore) version of `_host_game_iter` called...
Bumps [py](https://github.com/pytest-dev/py) from 1.5.4 to 1.10.0. Changelog Sourced from py's changelog. 1.10.0 (2020-12-12) Fix a regular expression DoS vulnerability in the py.path.svnwc SVN blame functionality (CVE-2020-29651) Update vendored apipkg: 1.4...
Hi guys, I'm coding a **debug minimap** that shows **realtime information** about the game. It let you to select which information to display on. Like **heighmap**, ally and enemy **units**,...
hello, i am kind of new to this thing, and after spending some hours trying to troubleshoot, im stuck with an error: INFO:sc2.sc2process:Closing connection... INFO:sc2.sc2process:Cleaning up... INFO:sc2.sc2process:Cleanup complete /usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning:...
for queen in self.units(sc2.constants.QUEEN).idle: abilities = await self.get_available_abilities(queen) if AbilityId.EFFECT_INJECTLARVA in abilities: await self.do(queen(sc2.constants.EFFECT_INJECTLARVA, hatcherys.random)) I write like that but several queen Inject eggs into the same target i want...
Hi, I'm new to this python-sc2. And I am currently trying to use Nuke of ghost. But I can't find how to 'Arm Silo with Nuke' from the code(like unit_typeid.py...
In the bot_ai line 386: `target_mineral = max(local_minerals, key=lambda mineral: mineral.mineral_contents)` When the worker runs out of gas at an extraction site it will look for a mineral site to...
My code is async def on_step(self, iteration): self.time = (self.state.game_loop/22.4) / 60 .......................... ............................ While running this line (self.time = (self.state.game_loop/22.4) / 60) It's giving error on the line, await...
After update to Blizzard 4.10 using pip3 install --user git+https://github.com/Dentosal/[email protected] patched with Edit game_data.py and comment out 'assert self.id != 0' with # in front, save changes. Edit pixel_map.py and...
Hello everyone, My terminal raises an error when i try to launch a game with python-sc2. It says "ValueError: 3794 is not a valid AbilityId". I don't know what to...