davechurchill / commandcenter

Starcraft AI Bot
MIT License
522 stars 112 forks source link

Run example of Commandcenter,* homeBase = getPlayerStartingBaseLocation(player) is NULL #94

Closed Timkeeper2018 closed 3 years ago

Timkeeper2018 commented 3 years ago

When I try to run CommandcenterDefinitely with VS, I get a null pointer error. This error appears in the 308th sentence in the BaseLocationManager.cpp file: "Const BaseLocation * homeBase = getPlayerStartingBaseLocation(player);" My code is not very good, and I can't figure out why the "homeBase" here is a null pointer. I have installed the required SC2API environment and can successfully run the sample programs in SC2API. Thanks in advance.

davechurchill commented 3 years ago

CommandCenter is no longer being maintained and I'm not even sure the last time it worked properly :(

alkurbatov commented 3 years ago

Hi @Timkeeper2018 Please try on this version https://github.com/cpp-sc2/commandcenter