Spawn.createCreep does not throw an error when body arg has more than 30 parts
-
Yea I didn't mean throw. I meant return an error code. but you can't edit posts here
-
I've got the same issue: is
bodyparts max == 30
a feature that is not described in API yet,
or it's just a silent bug?
-
How do I see players with 50 part creeps that have not gathered any power?
-
@jooki this is an old post, the current maximum body size is fifty.
-
@tedivm Not for me I still see this "bug" and get error codes when trying to add more than 30 body parts.
-
@jooki Can you provide us with screencaptures of the event?
You can do this by running the following in the console:
Game.spawns['Spawn1'].createCreep([TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH, TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH, TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH, TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH, TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH]);
-
@jooki what's the availability energy of your room?
-
@dissi-mark said in Spawn.createCreep does not throw an error when body arg has more than 30 parts:
Game.spawns['Spawn1'].createCreep([TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH, TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH, TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH, TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH, TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH,TOUGH])
This works in the console, perhaps I have another problem in my code. Thanks for your help.
-
@tedivm I'm full level 8 with 12900 room capacity, but Dissi's test worked in my console so I think the problem is elsewhere.
-
@jooki said in Spawn.createCreep does not throw an error when body arg has more than 30 parts:
This works in the console, perhaps I have another problem in my code. Thanks for your help.
Thank you for confirming this.