Game Screeps. Error during simulation. Limit reached

I am going to run Screeps ( http://screeps.com/ ). I go on stage when I need to send an employee to collect resources. So I put the code from the tooltip on the script tab, the code:

var creep = Game.creeps.Worker1;    
var sources = creep.room.find(Game.SOURCES);    
creep.moveTo(sources[0]);    
creep.harvest(sources[0]);    

My creep began to move to its original position, but then it froze, and I got an error (light red text) in the console:

CPU limit reached

What do I need to do to complete this step and why am I getting this error?

+4
source share
3 answers

This is a limitation of the Simulation Room mode. Fix the scripts, refresh the page and start simulating again, and it should work.

+2
source

:

, , script , . script . , script 5 .

, ,

+2

, , Internet Explorer 11 (, , , ). , , , . , , , Chrome 39.blah.blah.blah. Chrome, .

0

All Articles