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

File "examples/terran/ramp_wall.py", line 42, in on_step depot_placement_positions = self.main_base_ramp.corner_depots File "C:\Users\ederq\Anaconda3\lib\site-packages\sc2\bot_ai.py", line 80, in main_base_ramp key=(lambda r: self.start_location.distance_to(r.top_center)) python 3.7

Some scenarios needs to take a long time to reproduce. I'm wondering if there's a way to take a snapshot of the game state, like . E.g. ```python def step(self):...

For Terran, assume I have a building under construction. During construction, the enemy destroyed the SCV which is building this structure. I don't find a way to let another SCV...

I'm trying to upgrade Banshee ability from Startport TechLab. I used below code: ``` Python if self.units(UnitTypeId.STARPORTTECHLAB).ready.exists: for spt in self.units(UnitTypeId.STARPORTTECHLAB).idle: # self.combinedActions.append(spt(AbilityId.STARPORTTECHLABRESEARCH_RESEARCHMEDIVACENERGYUPGRADE)) # self.combinedActions.append(spt(AbilityId.STARPORTTECHLABRESEARCH_RESEARCHDURABLEMATERIALS)) # self.combinedActions.append(spt(AbilityId.STARPORTTECHLABRESEARCH_RESEARCHLIBERATORAGMODE)) # self.combinedActions.append(spt(AbilityId.STARPORTTECHLABRESEARCH_RAVENRESEARCHENHANCEDMUNITIONS)) self.combinedActions.append(spt(AbilityId.STARPORTTECHLABRESEARCH_RESEARCHDURABLEMATERIALS))...

help wanted

I want to add this game environment to multi-threaded operation, and there are many problems. Is there a similar demo for reference?

I believe the changes made to make it work with the latest B.net SC2 version actually broke it for the headless Linux build (for which the latest version is still...

Can not load map, just black screen. win10, StarCraftII: 4.9, python-sc2: develop. I have done ValueError: 3794, it just can run human vs computer. -error informatiom: INFO:sc2.protocol:Client status changed to...

I added this to my run.py:` rgb_render_config={'window_size': (800, 600), 'minimap_size': (256, 256)}` console log: Attempting to initialize EGL from file libEGL.so ... **Failed to find EGL functions in library file!**...

Hi, after the update, I started getting a lot of errors, but I took care of most of them by following the instructions here: https://github.com/Dentosal/python-sc2/issues/283#issuecomment-495991889 and here: https://github.com/Dentosal/python-sc2/issues/266#issuecomment-487226425 ### Now...