oxwhirl / smacv2

MIT License
195 stars 29 forks source link

[Bug] AttributeError about 'state_feature_names' in starcraft.py #35

Closed stranger117 closed 9 months ago

stranger117 commented 10 months ago

When I try to use 'python -m smacv2.examples.random_agents' to test smacv2, it says 'StarCraft2Env' object has no attribute 'state_feature_names'.

Screenshot from 2023-10-17 17-47-45

duanyiqun commented 10 months ago

Same here, anyone have any idea to solve this?

RupaliBhati commented 9 months ago

I uncommented line 417 self.state_feature_names = self.build_state_feature_names() in smacv2 -> smacv2 -> env -> starcraft2 -> starcraft2.py and that got rid of the error. Not sure if that changes the logic of the file though.

benellis3 commented 9 months ago

Thanks very much for reporting this -- I've fixed it now. Sorry it took so long!

benellis3 commented 9 months ago

Closing but please reopen if you have more issues