-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config file not found? #72
Comments
Are you running the executable with the bin folder as the cwd? |
Its the same result whether I'm working in commandcenter and run bin/CommandCenter or if I'm in bin and run CommandCenter. |
I was also having this problem- changing the line
in main.cpp to the full file address fixed the problem for me. EDIT: you will also need to change the address in botConfig.cpp I believe |
It's definitely a problem with your working directory then
…On Tue, May 15, 2018, 11:51 PM wfawwer, ***@***.***> wrote:
I was also having this problem- changing the line
std::string config = JSONTools::ReadFile("BotConfig.txt");
in main.cpp to the full file address fixed the problem for me.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABIkqOzx7xtH4nEhbblHGU4IQiaix-Liks5ty40pgaJpZM4T-OdO>
.
|
Thanks @wfawwer! That fixed my issues. If someone else has this issue in the future there are two spots in the main.cpp to fix the path and one in BotConfig.cpp. |
This is the result of running the CommandCenter executable. The BotConfig.txt is located in the bin folder with the executable. The only change I made to it was the map to be played on. I believe I've followed all the instructions for the Mac install. I had to edit a file in the the s2client-api code, comment out line 17867 in civetweb.c, to stop warnings from being treated as errors. The only part I wasn't sure about was downloading the maps from
https://github.com/Blizzard/s2client-proto#downloads
. I downloaded one map pack and extracted the map files in to a folder that I created in my starcraft2 application called maps. I had to create maps folder because there wasn't a folder with that name already.Does anyone have a suggestion for what I may have done wrong?
The text was updated successfully, but these errors were encountered: