CPU bucket only filling occasionally

  • I recently just got back into screeps, so I decided that I wanted to start from scratch and make my scripts again. While I was doing this I noticed that I kept getting the error message "Script execution has been terminated: CPU bucket is empty". However whenever I look my scripts never go above 2-4 CPU usage. Then I decided that maybe one of my modules was being weird so I started commenting out code until all that's in my main export is a console.log of the CPU bucket, which counts down from 20, displays the error message and then goes back up to 20.

    It's not a huge deal, but I am curious why this happens.


  • @conn332 Check your CPU assignments on the https://screeps.com/a/#!/shards screen to make sure these are sane. check your Game.cpu.limit also alongside cpu used.

    Otherwise it sounds like you should send in a support ticket, your bucket should grow up to 10000 if you do not use all of your CPU.