SYSTEM 01 · 12 GUIDES

Memory and Code Structure

State, modules, global cache, RawMemory, flags, and maintainable game-loop structure. This page connects the system overview to focused lessons, diagnostics, and operational boundaries.

START HERE

Read the system in a useful order

Begin with lessons or foundational guides, then move to debugging, safety, and advanced operations. Each article states the evidence level it actually reached.

Open the first guide →

SYSTEM MAP

From ticks to maintainable state

Separate per-tick runtime objects from persistent state first, then move into role state, caching, and module boundaries.

  1. 01Tick

    The main loop runs again

  2. 02Game objects

    Read current world state

  3. 03Memory

    Persist cross-tick state

  4. 04Roles and cache

    Reduce repeated decisions and work

  5. 05Module boundaries

    Keep systems maintainable and isolated

01

Published guides in this system

Use the labels to distinguish sequential lessons, task-focused guides, debugging workflows, safety pages, and references.

  1. LessonWhat Is Screeps? A Programming Strategy Game8 min read · Beginner
  2. LessonScreeps Ticks and Game Loop: Why Your Code Runs Repeatedly8 min read · Beginner
  3. GuideScreeps Memory: Persistent State, Heap Cache, and Creep Data12 min read · Intermediate
  4. GuideScreeps Working State: Switch Only at Empty and Full11 min read · Intermediate
  5. GuideScreeps Game.getObjectById(): Resolve Saved Targets Safely12 min read · Intermediate
  6. GuideScreeps: Clean Dead Creep Memory Safely11 min read · Intermediate
  7. GuideScreeps Global Cache: Rebuildable Data Across Runtime Ticks12 min read · Intermediate
  8. GuideScreeps RawMemory Segments: Request, Read, and Write Across Ticks13 min read · Intermediate
  9. GuideScreeps Flags: Bind Configuration to Room and Target Identity12 min read · Intermediate
  10. GuideScreeps Modules: One Main Loop, Small Contracts, Fresh Tick Data13 min read · Intermediate
  11. GuideScreeps InterShardMemory: Versioned Cross-Shard State Without Remote Writes19 min read · Intermediate
  12. GuideScreeps RawMemory Foreign Segment: Publish and Read Public Segments Safely19 min read · Intermediate
Need a guide that is not listed?

Search by API method, error code, or symptom first. Zero-result English searches are recorded anonymously and can be submitted as a public content request.

Search the English section →