File "C:\Program Files\Python\lib\site-packages\sc2\main.py", line 135, in _play_game_ai
await ai.on_step(iteration)
File "D:\games\SC2_AI\MyBot\Bot.py", line 154, in on_step
await self.macro()
File "D:\games\SC2_AI\MyBot\Bot.py", line 688, in macro
for cc in self.townhalls.ready.idle:
File "C:\Program Files\Python\lib\site-packages\sc2\units.py", line 286, in idle
return self.filter(lambda unit: unit.is_idle)
File "C:\Program Files\Python\lib\site-packages\sc2\units.py", line 161, in filter
return self.subgroup(filter(pred, self))
File "C:\Program Files\Python\lib\site-packages\sc2\units.py", line 158, in subgroup
return Units(list(units), self.game_data)
File "C:\Program Files\Python\lib\site-packages\sc2\units.py", line 286, in
return self.filter(lambda unit: unit.is_idle)
File "C:\Program Files\Python\lib\site-packages\sc2\cache.py", line 50, in inner
self.cache[f.name] = f(self)
File "C:\Program Files\Python\lib\site-packages\sc2\unit.py", line 560, in is_idle
return not self.orders
File "C:\Program Files\Python\lib\site-packages\sc2\cache.py", line 60, in inner
self.cache[f.name] = f(self)
File "C:\Program Files\Python\lib\site-packages\sc2\unit.py", line 480, in orders
return [UnitOrder.from_proto(o, self._game_data) for o in self._proto.orders]
File "C:\Program Files\Python\lib\site-packages\sc2\unit.py", line 480, in
return [UnitOrder.from_proto(o, self._game_data) for o in self._proto.orders]
File "C:\Program Files\Python\lib\site-packages\sc2\unit.py", line 654, in from_proto
game_data.abilities[proto.ability_id],
KeyError: 412
File "C:\Program Files\Python\lib\site-packages\sc2\main.py", line 135, in _play_game_ai await ai.on_step(iteration) File "D:\games\SC2_AI\MyBot\Bot.py", line 154, in on_step await self.macro() File "D:\games\SC2_AI\MyBot\Bot.py", line 688, in macro for cc in self.townhalls.ready.idle: File "C:\Program Files\Python\lib\site-packages\sc2\units.py", line 286, in idle return self.filter(lambda unit: unit.is_idle) File "C:\Program Files\Python\lib\site-packages\sc2\units.py", line 161, in filter return self.subgroup(filter(pred, self)) File "C:\Program Files\Python\lib\site-packages\sc2\units.py", line 158, in subgroup return Units(list(units), self.game_data) File "C:\Program Files\Python\lib\site-packages\sc2\units.py", line 286, in
return self.filter(lambda unit: unit.is_idle)
File "C:\Program Files\Python\lib\site-packages\sc2\cache.py", line 50, in inner
self.cache[f.name] = f(self)
File "C:\Program Files\Python\lib\site-packages\sc2\unit.py", line 560, in is_idle
return not self.orders
File "C:\Program Files\Python\lib\site-packages\sc2\cache.py", line 60, in inner
self.cache[f.name] = f(self)
File "C:\Program Files\Python\lib\site-packages\sc2\unit.py", line 480, in orders
return [UnitOrder.from_proto(o, self._game_data) for o in self._proto.orders]
File "C:\Program Files\Python\lib\site-packages\sc2\unit.py", line 480, in
return [UnitOrder.from_proto(o, self._game_data) for o in self._proto.orders]
File "C:\Program Files\Python\lib\site-packages\sc2\unit.py", line 654, in from_proto
game_data.abilities[proto.ability_id],
KeyError: 412