Dentosal / python-sc2

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

Erro in ramp_wall.py #298

Open ederquesado opened 5 years ago

ederquesado commented 5 years ago

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

miguelgondu commented 5 years ago

Same problem here. I wonder why it's no longer finding the ramp's corners.

minetonight commented 4 years ago

Hi all, I had that issue and did two things:

  1. not important: you need to retain the original folder for the maps StarCraft II\Maps\Ladder2018Season2
  2. use the 4.9 fix branch because there is the nasty ValueError: 3794 is not a valid AbilityId

pip3 install --user pipenv
pip3 install --upgrade  git+https://github.com/Dentosal/python-sc2@Fix-for-4.9.3```

and now rampWall works!