Closed Zymrael closed 5 years ago
Hi @Zymrael ,
Thanks for pointing this out. I'm aware of the issue and will fix it as soon as possible.
In the meanwhile, you can use an older version of SC2 by passing corresponding version to SMAC, e.g., env = StarCraft2Env(map_name="3s5z", game_version="4.6.2")
.
To check which versions of SC2 you have installed, check the Versions
directory in SC2 dir. For instance, I have Base60321 Base67926 Base69232 Base71663 Base74071
installed. You can use https://github.com/deepmind/pysc2/blob/master/pysc2/run_configs/lib.py to map these base numbers to StarCraft II versions.
Thanks for the swift reply and for the work done to maintain SMAC.
Hi, I have a same problem and try to solve by changing the version.
I added parameter 'game_version' and set to '4.6.2'.
but, still have same error : "ValueError: cannot reshape array of size 128 into shape (32,32)"
And I checked SC2 version in my starcraft2 file, there was only the latest version '74456' which is 4.9.1 maybe.
Do I have to download old version? or changing the parameter is all?
Thank you!
Fixed in 260b2fbc188e9696bd0f411e76aa5f53bb986cc3.
Any version of SC2 should work now @LeeKanghoon
New version of SCII is causing problems to several APIs (smac included). The first problem caused by the update seems to be related to the pathing grid's shape (data values have been turned into bits).
Other users are encountering similar problems when using python-sc2: https://github.com/Dentosal/python-sc2/issues/283