Sc2LadderServer icon indicating copy to clipboard operation
Sc2LadderServer copied to clipboard

Configuring to run commandcenter

Open jmugan opened this issue 3 years ago • 6 comments

Sorry for the stupid question. I'm trying to run commandcenter and it just says "Failed to start CCBot."

My laddermanager.json looks like this

{
    "CommandCenterPath": "/Users/jmugan/bin/Sc2LadderServer/build/bin/Bots/CCBot/CommandCenter",
    "LocalReplayDirectory": "./Replays/",
    "MaxGameTime": 60480,
	"MaxRealGameTime": 3600,
	"MatchupGenerator": "file",
    "MatchupListFile": "./MatchupList",
    "ErrorListFile": "./errorlist",
    "ResultsLogFile": "./Results.json",
    "PlayerIdFile": "./PlayerIds",
	"PythonBinary": "python",
	"ReplayBotRenameProgram": "ReplayNameChange.exe",
	"BaseBotDirectory":  "./Bots/",
	"RealTimeMode": true,
    "Maps": [
        "Simple64.SC2Map",
        "Simple128.SC2Map"
    ]
}

The base directory is where I run ./Sc2LadderServer is /Users/jmugan/bin/Sc2LadderServer/build/bin.

The directory /Users/jmugan/bin/Sc2LadderServer/build/bin/Bots/CCBot contains CommandCenter, BotConfig.txt and ladderbots.json. The file ladderbots.json looks like this

{
    "Bots": {
        "CCBot": {
            "Race": "Terran",
            "Type": "CommandCenter",
            "RootPath": "./",
            "FileName": "BotConfig.txt"
        }
    }
}

On the output, data/stderr.log only says 04-01-2021 22-26-21: Starting game vs Bob (the name of the other bot).

I'm able to run other bots fine. It's just something about the commandcenter configuration. I am also able to run commandcenter by itself, just not with the ladder server. Any ideas?

jmugan avatar Jan 05 '21 04:01 jmugan