calling a failing createcreep causes memory issues



  • After the latest patch, the standard object cleanup code is saying that creeps are dying every so often. What I'm believing is happening is that when you call createCreep and it fails for whatever reason (namely busy), it creates a blank entry in the memory which needs to be cleaned up.

     

    for(var name in Memory.creeps) {
    if(!Game.creeps[name]) {
    delete Memory.creeps[name];
    console.log(name + ' has died.');
    }
    }



  • I'm having the same issue, even when I've code in place to check if a spawn already has been used that tick



  • Same, although I can circumvent by pre-checking all creep creation conditions myself instead of relying on the creep creation function.