Closed breadbread1984 closed 7 years ago
Yeah it's a bit messed up at the moment.
Right now there are constants like this being used in the examples:
const char* kMapBelShirVestigeLE = "Ladder/(2)Bel'ShirVestigeLE (Void).SC2Map";
The problem is it's a relative path and in most cases your path will not be the root of sc2 directory.
You can replace the constant in coordinator.startGame(...) with your full path.
Also, as a side note, specifying the map path in the command line gets ignored, which seems wrong in my opinion.
What string did you pass into StartGame? Can you also post the path to the map you are trying to run?
When you specify a relative path, it checks:
It also looks like the library assumes the "maps" folder is lower case. That will fail on linux if it is wrong. (We should probably change it to ignore case...)
Proch92 is also correct that it should just work if you use an absolute path instead.
Yes it does seem like setting the map on the command line is broken. Do you want to enter a separate issue for that?
Thanks for the help. I managed to launch the built bot successfully, giving full path to coordinator.
楼主,我看你也是中国的吧,我个人也在做一款星际2的AI,偶尔也会遇到一些问题,加个好友相互学习研究下,也可以相互检测AI的实战水平,我的QQ:86000090 微信:ayu-wx
I successfully built the sample program. I launched it with the command
./bot -e ~/opt/StarCraftII/Versions/Base55958/SC2_x64
where~/opt/StarCraftII/Versions/Base55958/SC2_x64
is the path to the executable of Linux Package 3.16.1. Then, I got the following errorsIt seems the bot program can't find the map package which I already unpacked into Maps directory. How can I launch the bot properly? Thx.