You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have no idea about it and I can not find anything through directly searching the error.
The code is like this:
voidCSetAndStart(Coordinator&cor, intport, intargc, char*argv[], Agent*bot1, Agent*bot2)
{
cor.LoadSettings(argc, argv);
cor.SetParticipants({CreateParticipant(Terran, bot1), CreateParticipant(Terran, bot2)});
cor.SetPortStart(port);
cor.SetMapPath("PCANP_EnemyZealotModVSMarines.SC2Map"); // map designed by myselfcor.SetStepSize(1);
cor.LaunchStarcraft();
cor.StartGame();
}
intmain(){
std::vector<Coordinator>cors(100);
ANBotbots1[100];
ANBotbots2[100];
intcount=100; // num of sc2 processes
std::vector<std::future<void>> cors_futures(100);
for (inti=0; i<count; ++i) // launch, the error occured during the launch process
{
cors_futures[i] =std::async(std::launch::async, CSetAndStart, std::ref(cors[i]), 4000+10*i, argc, argv, &(bots1[i]), &(bots2[i]));
}
for (inti=0; i<count; ++i)
{
cors_futures[i].wait();
}
return0;
}
The text was updated successfully, but these errors were encountered:
monarchBacilluscoli
changed the title
Get error when I opend many coordinators simultaneously
Get error when opened many coordinators simultaneously
Jul 28, 2020
I want to launch many (about 100-200) sc2 games at the same time.
during their launch, there is always an error shown 2-3 times like this :
I have no idea about it and I can not find anything through directly searching the error.
The code is like this:
The text was updated successfully, but these errors were encountered: