Dentosal / python-sc2

A StarCraft II bot api client library for Python 3
MIT License
585 stars 182 forks source link

after fixing 3794/3795 error -botAI main_base_ramp fails #303

Open tllucero opened 4 years ago

tllucero commented 4 years ago

After update to Blizzard 4.10 using pip3 install --user git+https://github.com/Dentosal/python-sc2@Fix-for-4.9.3 patched with Edit game_data.py and comment out 'assert self.id != 0' with # in front, save changes. Edit pixel_map.py and comment out 'assert self.bits_per_pixel % 8 == 0, "Unsupported pixel density"' with # in front, save changes.

Now I get at beginning of game in File "/home/markov/.local/lib/python3.7/site-packages/sc2/bot_ai.py", line 80, in main_base_ramp key=(lambda r: self.start_location.distance_to(r.top_center)), ValueError: min() arg is an empty sequence