SCREEPS KNOWLEDGE BASE

Browse Screeps by system

Browse 81 published English guides through eight indexable system pillars. Newly published guides appear in the relevant system automatically.

01

Memory and Code Structure

State, modules, global cache, RawMemory, flags, and maintainable game-loop structure.

12 published guides · Open system page
  1. GETTING STARTED · BEGINNER LESSON 1 OF 12What Is Screeps? A Programming Strategy Game8 min read · Beginner · Lesson
  2. GETTING STARTED · BEGINNER LESSON 3 OF 12Screeps Ticks and Game Loop: Why Your Code Runs Repeatedly8 min read · Beginner · Lesson
  3. FOUNDATION · PERSISTENT STATEScreeps Memory: Persistent State, Heap Cache, and Creep Data12 min read · Intermediate · Guide
  4. FOUNDATION · ENERGY PHASE HYSTERESISScreeps Working State: Switch Only at Empty and Full11 min read · Intermediate · Guide
  5. FOUNDATION · SAVED TARGET RESOLUTIONScreeps Game.getObjectById(): Resolve Saved Targets Safely12 min read · Intermediate · Guide
  6. MEMORY · DEAD-CREEP CLEANUPScreeps: Clean Dead Creep Memory Safely11 min read · Intermediate · Guide

View all 12 guides in this system →

02

Spawn and Creep Lifecycle

Body design, spawn return codes, role memory, renewal, recycling, and emergency recovery.

13 published guides · Open system page
  1. GETTING STARTED · BEGINNER LESSON 6 OF 12Screeps Creep Body Parts: WORK, CARRY, and MOVE8 min read · Beginner · Lesson
  2. GETTING STARTED · BEGINNER LESSON 7 OF 12Screeps spawnCreep(): Create Your First Creep8 min read · Beginner · Lesson
  3. GETTING STARTED · BEGINNER LESSON 8 OF 12Screeps Creep Roles: Harvester, Upgrader, and Builder8 min read · Beginner · Lesson
  4. SPAWNING · RETURN-CODE DIAGNOSISScreeps spawnCreep() Errors: Diagnose Every Return Code12 min read · Intermediate · Debugging
  5. SPAWNING · BODY BUDGET POLICYScreeps Dynamic Creep Body: Minimum, Target, and Emergency Plans13 min read · Intermediate · Guide
  6. SPAWNING · COLLAPSE RECOVERY STATEScreeps Emergency Harvester Recovery: Track the Exact Spawn Request17 min read · Intermediate · Guide

View all 13 guides in this system →

03

Room Economy

Harvesting, hauling, storage, links, terminals, minerals, and stable energy flow.

10 published guides · Open system page
  1. GETTING STARTED · BEGINNER LESSON 4 OF 12Screeps Harvest Energy: Your First Creep Script9 min read · Intermediate · Guide
  2. GETTING STARTED · BEGINNER LESSON 5 OF 12Screeps Energy Delivery: Creep to Spawn10 min read · Beginner · Lesson
  3. FOUNDATION · CONTAINER WITHDRAWALHow to Make a Screeps Creep Withdraw Energy from a Container11 min read · Intermediate · Guide
  4. RESOURCE RECOVERY · DROPPED ENERGYHow to Make a Screeps Creep Pick Up Dropped Energy14 min read · Intermediate · Guide
  5. LOGISTICS · STORAGE BUDGET AND EVENT IDENTITYScreeps Storage Energy: Reserve Budgets and Verify Transfers18 min read · Intermediate · Guide
  6. LOGISTICS · LINK ENERGY COORDINATIONScreeps Link transferEnergy(): Coordinate Capacity and Verify Events16 min read · Intermediate · Guide

View all 10 guides in this system →

04

Movement and Vision

moveTo(), fatigue, RoomPosition, PathFinder, routes, observers, and room visibility.

12 published guides · Open system page
  1. GETTING STARTED · BEGINNER LESSON 2 OF 12Screeps First Room: Find the Editor and Console8 min read · Beginner · Lesson
  2. MOVEMENT · ACTION RANGE DEBUGGINGScreeps ERR_NOT_IN_RANGE: Use the Correct Action Range11 min read · Intermediate · Debugging
  3. MOVEMENT · MULTI-TICK PROGRESS DEBUGGINGScreeps moveTo() Returns OK but the Creep Stays Put13 min read · Intermediate · Debugging
  4. MOVEMENT · PATH SEARCH DEBUGGINGScreeps ERR_NO_PATH: Diagnose Range, Matrices, and Routes15 min read · Intermediate · Debugging
  5. MOVEMENT · FATIGUE AND BODY DESIGNHow to Calculate Screeps Creep Movement Speed16 min read · Intermediate · Guide
  6. MOVEMENT · ROOMPOSITION DISTANCEWhich Screeps RoomPosition Distance Method Should You Use?15 min read · Intermediate · Guide

View all 12 guides in this system →

05

Controllers and Expansion

Upgrading, downgrade recovery, reserving, claiming, safe mode, and remote control.

5 published guides · Open system page
  1. GETTING STARTED · BEGINNER LESSON 9 OF 12Screeps upgradeController(): Build Your First Upgrader Loop10 min read · Beginner · Lesson
  2. CONTROLLER · SAFE MODE ACTIVATIONScreeps activateSafeMode(): Prevent Same-Tick Intent Overwrite17 min read · Advanced · Guide
  3. CONTROLLER · DOWNGRADE RECOVERYScreeps Controller Downgrade Recovery: Verify Emergency Upgrades15 min read · Intermediate · Guide
  4. CONTROLLER · RESERVE AND CLAIM IDENTITYScreeps reserveController() vs claimController(): Verify the Exact Mission22 min read · Intermediate · Guide
  5. CONTROLLER · FIXED UPGRADER DIAGNOSTICSWhy a Fixed Screeps Upgrader Is Not Upgrading20 min read · Intermediate · Guide
06

Construction and Defense

Construction sites, Creep combat, towers, walls, ramparts, repairs, and defensive priorities.

13 published guides · Open system page
  1. BEGINNER · FIRST EXTENSIONHow to Build Your First Screeps Extension12 min read · Beginner · Lesson
  2. BEGINNER · BUILD AND REPAIRHow to Make a Screeps Creep Build and Repair Automatically14 min read · Beginner · Lesson
  3. API SAFETY · CONSTRUCTIONHow to Remove a Construction Site Safely in Screeps12 min read · Intermediate · Safety
  4. DEFENSE · TOWER ATTACK EVENTSScreeps Tower.attack(): Verify One Multi-Tower Volley15 min read · Advanced · Guide
  5. DEFENSE · TOWER HEAL PRIORITYScreeps Tower Healing: Injury Ratio, Missing Hits, and Range17 min read · Intermediate · Guide
  6. DEFENSE · TOWER REPAIR EVENTSScreeps Tower.repair(): Verify Exact Repair Events16 min read · Intermediate · Guide

View all 13 guides in this system →

07

Market and Advanced Resources

Orders, deals, terminals, labs, boosts, factories, power, and late-game resources.

9 published guides · Open system page
  1. MARKET · ORDER CREATION IDENTITYScreeps createOrder(): Bind One Request to the New Order ID19 min read · Advanced · Guide
  2. MARKET · DEAL SETTLEMENT IDENTITYScreeps market.deal(): Reserve the Terminal and Verify Actual Amount21 min read · Advanced · Guide
  3. LOGISTICS · TERMINAL INTENT IDENTITYScreeps Terminal.send(): Prevent Intent Overwrite and Verify Actual Amount21 min read · Advanced · Guide
  4. RESOURCES · OWNED LAB REACTIONScreeps runReaction(): Verify One Owned Lab Reaction14 min read · Advanced · Guide
  5. RESOURCES · BOOST TARGET IDENTITYScreeps Lab boostCreep(): Requirements, Usage, and Return Codes14 min read · Advanced · Guide
  6. RESOURCES · FACTORY BATCH VERIFICATIONScreeps Factory.produce(): Verify One Production Batch15 min read · Advanced · Guide

View all 9 guides in this system →

08

Operations and Debugging

Return codes, CPU, bucket, event logs, notifications, diagnostics, and safe operations.

7 published guides · Open system page
  1. BEGINNER · FIRST ROOM LOOPScreeps First Room Code: A Small Loop You Can Verify14 min read · Beginner · Lesson
  2. RUNTIME · CPU PROFILINGScreeps CPU Profiling: Measure Code with Game.cpu.getUsed()12 min read · Intermediate · Guide
  3. OBSERVABILITY · RATE-LIMITED NOTIFICATIONSScreeps Game.notify(): Send Rate-Limited Alerts Safely11 min read · Intermediate · Guide
  4. OBSERVABILITY · ROOM EVENT LOGScreeps Room.getEventLog(): Read Previous-Tick Events11 min read · Intermediate · Guide
  5. OBSERVABILITY · ROOM VISUAL DEBUGGINGScreeps RoomVisual: Transparent Fills, Labels, and Paths10 min read · Intermediate · Debugging
  6. OPERATIONS · ROOM ERROR ISOLATIONScreeps Room Error Isolation: Keep Other Rooms Running18 min read · Intermediate · Debugging

View all 7 guides in this system →

API QUICK REFERENCE

Common Screeps APIs

Search Game, Creep, Room, Structure, Market, and PathFinder APIs, then continue to a matching guide or official documentation.

Open API quick reference →

ERROR REFERENCE

Return codes

Use common Screeps return codes as the first branch in an action debugging process.

Open error codes →

GLOSSARY

Core terminology

Review concise definitions for the objects, resources, limits, and runtime concepts used across Screeps.

Open the glossary →

RECENTLY VERIFIED

Runtime evidence

See English guides whose shared source records explicitly contain Console testing or live multi-tick verification.

Browse verified guides →

TOOLS

Calculate and diagnose before editing production code

Use the English body, room, Market, Controller, Lab, Spawn, hauling, and Tower tools without connecting a Screeps account.

Browse tools →