TOPIC · 17 GUIDES

Debugging Screeps guides

Focused English articles connected to debugging, organized with the same filters used by the main article library.

17 matching guides

Controllers and ExpansionIntermediateGuide

How to Detect Controller Downgrade Risk and Recover Safely

Compare ticksToDowngrade with configurable enter and recovery thresholds, use CONTROLLER_DOWNGRADE for context, select an owned ready Upgrader with Energy and active WORK, move to range 3, save upgradeController() results, and exit emergency mode only after recovery.

18 min read
Movement and VisionIntermediateDebugging

How to Fix ERR_NOT_IN_RANGE in Screeps

Identify which action returned ERR_NOT_IN_RANGE, use its real range, save the moveTo() result separately, and retry the original action on a later tick instead of assuming movement is immediate.

15 min read
Movement and VisionIntermediateDebugging

How to Debug ERR_NO_PATH in Screeps

Distinguish ERR_NO_PATH, ERR_NOT_FOUND and PathFinder incomplete results; validate target range; correct CostMatrix walkability; inspect callbacks, maxOps, maxRooms and cross-room routes; and separate temporary traffic from a failed search.

18 min read
Movement and VisionAdvancedGuide

How to Use StructureObserver.observeRoom() Safely

Schedule Observer vision, store the accepted request, read the target Room on the next tick, preserve bounded intel, handle return codes, and avoid claiming that current visibility proves the new request completed.

18 min read
Operations and DebuggingIntermediateGuide

How to Measure and Control CPU Usage in Screeps

Measure CPU with Game.cpu.getUsed() deltas, understand limit, tickLimit, and bucket, avoid Simulation-only conclusions, collect bounded samples, and gate optional work without hiding essential room logic.

17 min read