You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ai.on_step(iteration)
Inside
Python36\lib\site-packages\sc2\main.py", line 135, in _play_game_ai
Logs:
Traceback (most recent call last):
File "C:\Users\tause\AppData\Local\Programs\Python\Python36\lib\site-packages\sc2\main.py", line 135, in _play_game_ai
await ai.on_step(iteration)
File "S:\Starcraft 2 API\Python Files\pythonStarcraftPart13.py", line 44, in on_step
self.time = (self.state.game_loop/22.4) / 60
AttributeError: can't set attribute
ERROR:sc2.main:resigning due to previous error
--- on_end called ---
Result.Defeat False
The text was updated successfully, but these errors were encountered:
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 ai.on_step(iteration)
Inside
Python36\lib\site-packages\sc2\main.py", line 135, in _play_game_ai
Logs:
Traceback (most recent call last):
File "C:\Users\tause\AppData\Local\Programs\Python\Python36\lib\site-packages\sc2\main.py", line 135, in _play_game_ai
await ai.on_step(iteration)
File "S:\Starcraft 2 API\Python Files\pythonStarcraftPart13.py", line 44, in on_step
self.time = (self.state.game_loop/22.4) / 60
AttributeError: can't set attribute
ERROR:sc2.main:resigning due to previous error
--- on_end called ---
Result.Defeat False
The text was updated successfully, but these errors were encountered: