createCreep returning -10
-
I am seeing -10, ERR_INVALID_ARG when calling create creep. An example of my code is
Game.spawns.Spawn2.createCreep([WORK,WORK,WORK,CARRY,CARRY,CARRY,MOVE,MOVE,MOVE.MOVE,MOVE,MOVE], null, {role:'harvester', homeRoom:'W48N19'})
This worked as recently as yesterday but now it's throwing the error.
Smaller bodys seem to work ok. I have plenty of resources available.
-
You have a dot between MOVE.MOVE
-
I see the dot. That was just an issue with the code I posted here. It turns out the actual issue is that I was trying to build creeps with more than 50 body parts. Didn't realise that was too many.
-
FYI You can reference this dynamically from MAX_CREEP_SIZE. Found at the bottom of the page (http://support.screeps.com/hc/en-us/articles/203084991-API-Reference)