Skip to content
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

Open
chrik119 opened this issue May 14, 2018 · 5 comments
Open

Config file not found? #72

chrik119 opened this issue May 14, 2018 · 5 comments

Comments

@chrik119
Copy link

Config file could not be found, and is required for starting the bot
Please read the instructions and try again
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

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?

@davechurchill
Copy link
Owner

Are you running the executable with the bin folder as the cwd?

@chrik119
Copy link
Author

Its the same result whether I'm working in commandcenter and run bin/CommandCenter or if I'm in bin and run CommandCenter.

@wfawwer
Copy link

wfawwer commented May 16, 2018

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.

EDIT: you will also need to change the address in botConfig.cpp I believe

@davechurchill
Copy link
Owner

davechurchill commented May 16, 2018 via email

@chrik119
Copy link
Author

chrik119 commented May 16, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants