Skip to content

Code: Terraform Wiki

Player documentation for Code: Terraform as an offline wiki. You are connected to a remote terminal on the frozen planet Nocturna; you terraform it by writing Python-like scripts that run inside machines.

Source

Built from the official player documentation PDF (Build 441ad76, 1,246 pages, rebuilt 2026-09-12). The PDF sits next to this vault as Code_ Terraform.pdf.

Scripts run inside machines. self is the machine the script runs on; hardware actions (marked SELF ONLY) only work through self. Anything else is read via get_component(id). Every world-changing command returns a result object: branch on result.status, never on result.message. Full explanation: Self & Components, Components Overview, and Command Results.

How This Game Works · Choosing Your First Credit Path · Power & Terraforming Machines · First Biology Loop · First Harvesting Route · Contracts Tutorial · Reading Errors and Console Output · First Pioneer · Using Plan Mode · First Outpost · Expanding Production

Variables · Print · Self & Components · Loops & Scripts · Operators · Numbers · Strings & F-Strings · Lists & Tuples · Dictionaries · Match & Case · Regular Expressions · Exceptions · Writing Classes · Docstrings · Imports & Libraries · Utility Helpers · Built-in Functions Overview · Conversion Functions

Code Editor · Debug Mode · Vim Mode · Keyboard Shortcuts · Script Commands · Script Variants · Control Room · External Editor

Contracts · Earth Orders Guide · Signal Bus Guide · Data Archive Guide · Map Markers Guide · Drones · Vehicle Proximity & Service

Batteries & Charging · Refinement & Storage · Input & Output · Battery Holder · Cargo Rack · Portable Battery · Portable Storage Bin

Flow Networks & Fluids · Infrastructure & Pipes · Power Networks · Thermal Vents · Water & Oil Wells · Tier 3 Progression · Weather System

Biosphere Biomass Tier · Biosphere Plants · Plant Terraformer Guide · Wildlife Overview · Wildlife Supply · Wildlife Husbandry · Habitat Development · Wildlife Progression · Wildlife Creature Profiles

I want to…Go to
See the whole game at a glanceBeginner Roadmap
Copy-paste a working scriptStarter Scripts
Repair the starting sensorsOxygen Sensor · Pressure Sensor
Write a solar trackerSolar Generator + Clock
Earn my first creditsChoosing Your First Credit Path (biology: Bio CollectorBio LabBio Exchange)
Understand a weird result.statusCommand Results + ActionResult
Sweep the sector gridScanner + Harvester
Set up smeltingRefinement & Storage + Smelter + Smelter Recipes
Drive somewhereNav Module on the Rover or Pioneer
Find sites in the fieldSonar Module + Journal + Nocturna points_of_interest()
Mine a surveyed siteDrill Module (vehicle) or Mining Drill (fixed)
Capture vent steamThermal Vents + Thermal Cap + Steam Turbine
Turn steam into waterSteam Condenser
Pump water or oilWater & Oil Wells + Water Pump / Oil Pump
Build pipes and power linesInfrastructure & Pipes + Construction Blueprint + Constructor Module
Found an outpostFirst Outpost + Outpost Network
Ship materials to EarthEarth Orders Guide + Supply Dock
Solve a contractContracts + Contract (all 15 in Types Index)
Coordinate my scriptsSignal Bus Guide (queues) or Data Archive Guide (durable state)
Build a dashboardDashboard Cards (ready-made suite) + Control Room + Panel API
Keep vehicles chargedBatteries & Charging + Vehicle Charging Station
Run a drone routeDrones + Drone + Drone Depot
Refuel or rescue dronesDrone Service Station
Check why a transfer failedTransferResult (every outcome code explained)
Match items by propertiesInput & Output + ItemStack
Move Raw Uranium safelyDrones hot cargo + Lead Cask + Shield Plating (Modules & Vehicle Gear)
Run the ReactorReactor + Fuel Assembler + Fuel Assembler Recipes
Catch lightningLightning Rod + Weather System
Chase a stormWeather System + Weather Station + Drone collect()
Discover seedsFirst Biology Loop + Seed Maker
Grow cropsBiosphere Plants + Harvester + Crop Automator
Boost crop yieldAgriculture & Feeds (fertilizer table) + Grow Lamp / Sprinkler / Dispenser
Convert Forage into Plants km²Plant Terraformer Guide + Plant Terraformer
Make biomassBiosphere Biomass Tier + Essence Liquifier + Biomass Mixer
Revive a creatureWildlife Husbandry + Habitat + CatalogedCreature
Feed a colonyWildlife Supply + Feed Maker + Feed Maker Recipes
Tap exotic fluidsExotic Gas Cap / Exotic Spring Tap + Refiner
Toggle machines remotelyPower Control (breaker) or Run Control (run/stop)
Check my power gridPower Networks + Power Control + PowerGrid
Annotate the mapMap Markers Guide + Map Markers
Plan researchResearch Database + Research
Look up an item idItem Catalog + the Database item pages
Not lose progress at Tier 3Tier 3 Progression