CPU bucket is empty on shards with zero cpu
-
Repro Steps Expanded to a new shard (shard2) which meant allocating cpu there, claiming rooms, creating creeps and creating memory.
Then after unclaiming those rooms, deleting all memory there and not running any creeps and allocating my cpu back to zero for that shard I get CPU bucket warnings on that shard.
I'm using the isolated VM
-
Duplicate: https://screeps.com/forum/topic/2279
-
https://screeps.com/forum/topic/2279 sounds like code wasn't running when it should've been and my issue is about code running when it shouldn't have been (zero cpu).
Could it be related to my tamper monkey scripts? Set a shard's cpu to zero, then view a room on that shard with tamper monkey script injection and that starts up execution?
-
Your code is running when you have at least one object of any type on the shard: a creep, a structure, even a tombstone. Setting the CPU limit to zero means your bucket won't grow, but the warning will still appear if you have game objects.