Documentation
How Cairnheim works
Everything below describes the game as it runs today, version 0.2. Numbers are the live values from the game's balance file, not intentions.
First ten minutes
You start with a castle, ten colonists, and a stock of planks, stone, food and a starter set of tools. The castle is both your warehouse and your reserve of workers.
- Place a woodcutter within range of a forest. It does not need to touch the trees — its worker walks out, fells one, and carries the log home.
- Place a sawmill nearby and draw a road from the castle to both. Every building must touch a road or nothing will ever reach it.
- Add a forester. A woodcutter with no forester eventually clears the forest and stops for good.
- Quarry, then food. Farm → mill → bakery, plus a well: bread needs flour and water. A fisher on a lake is the quick alternative.
- Houses. 14 planks and 6 stone each; each one shelters 5 colonists.
The one mistake everyone makes: building far too much before the road network can feed it. A workshop with no delivery is a workshop that holds a worker hostage. Watch the icons above your buildings — ⛔ means unconnected, ⏳ means waiting on an input.
Controls
| Action | Input |
|---|---|
| Pan the camera | Right-click and drag |
| Zoom | Mouse wheel (centred on the cursor) |
| Draw a road | Road tool, then click-drag across tiles |
| Select a building | Click its cairn, not its sprite |
| Demolish | Demolish tool, then click the cairn |
| Traffic map | T |
| Tile grid | J |
| Turn a lamppost | R while placing it |
| Move the chat window | Drag it by its title |
| Pause · speed | None on the shared server: every colony runs on the same clock |
Buildings are drawn larger than the tile they sit on, so a sprite often overlaps its neighbours. Selection and demolition therefore go through the cairn, which is always exactly one tile.
Transport network
This is the heart of the game, ported from The Settlers. Three objects matter:
- Cairns — the stone markers that stand in for Settlers' flags. Every building has one at its door; you can also place them along a road.
- Roads — the segments between two cairns. A road can be as short as a single tile, and at a junction two cairns may even sit side by side, with nothing between them at all — the same way adjacent flags behave in The Settlers II.
- Carriers — one per road, and one only. A carrier works its own segment and nothing else.
A good therefore never travels in a straight line to its destination. It is set down on a cairn, picked up by the next leg's carrier, set down again, and so on. Routing picks the cheapest path through the graph — with a penalty for each good already waiting at the arrival cairn, so traffic spreads itself over parallel routes instead of piling onto one.
Congestion
A cairn holds 8 goods. Once it is full, nothing more can be dropped there and the queue backs up along the road. That is the signal to act, and you have four answers:
- Build a warehouse beside the cluster — surplus flows to the nearest storage by network distance, so a local warehouse absorbs it on the spot instead of pushing everything down one trunk to the castle. This is the answer that fixes the cause; the next three fix the road.
- Split the road with an extra cairn — shorter legs, and one more carrier on that stretch.
- Build a parallel route so the router has somewhere else to send goods.
- Move the consumer closer to its supplier and stop crossing the map.
Warehouses are part of the network, not an escape from it. A producer with no customer ships its surplus to storage instead of jamming; a consumer with no supplier draws from it. Both the castle and a warehouse hold 9 999 of each good — a warehouse is not there to give you room, it is there to shorten the walk.
Measured on the engine (a quarry-and-sawmill cluster 50 tiles from the castle, ten simulated minutes): without a local warehouse the trunk cairns sit at 8/8 and only 3 goods reach the castle — the rest is queuing. With one warehouse at the cluster: zero saturated cairns, 48 goods stored locally. Same colony, one building.
Priorities & distribution
There are two separate settings, and they are often confused.
Distribution — who gets the good
When several workshops want the same good, each one has a slider from 0 to 100 (50 is neutral). The claim is then weighted by what the workshop already holds:
priority = slider ÷ 2units already in stock
The highest priority wins; ties are broken by distance. Because the score halves with every unit delivered, a favoured workshop fills up fast and then automatically hands the queue to its rivals. Setting a slider to 0 excludes a building entirely.
These are the defaults, taken from the original game:
| Good | Priority order |
|---|---|
Coal |
Gold smelter 100 · Platinum smelter 100 › Weaponsmith 80 › Iron smelter 50 · Copper smelter 50 |
Iron ingot |
Weaponsmith 100 › Toolmaker 70 |
Wheat |
Pig farm 100 › Mill 50 |
Transport — who gets carried first
A separate ordering decides which good jumps the queue at a saturated cairn. Gems, gold, coins and tools go first; bulk materials like stone and planks go last, on the grounds that they can afford to wait. A slice of that order, highest first:
diamond · platinum · platinum ingot · spyglass · mine kit · ration · gold ore · gold ingot · coin · cooked meal · axe · saw · pickaxe · scythe · rod · cleaver · wheat · flour · water · sword · bow · shield · spear · meat · bread · egg · maize · fish · livestock · iron ore · copper ore · log · coal · iron ingot · copper ingot · stone · plank · marble
Workers & tools
Every production building needs one colonist to run, taken from your free population. Most of them also need a tool, consumed once when the worker is assigned. No tool, no worker, no production — the building sits there showing its icon.
| Tool | Required by |
|---|---|
Axe | Woodcutter |
Saw | Sawmill |
Pickaxe | Quarry, all mines |
Scythe | Farm, corn farm |
Fishing rod | Fisher, fish farm |
Cleaver | Butcher |
Hammer | Builder's hut |
Shovel | Digger's hut |
Tools come from the toolmaker, which is a made-to-order workshop: you pick which tool and how many, and it works through the queue. One iron ingot and one plank per tool — the plank is the handle. The exceptions: a spyglass takes one copper ingot, the geologist's copper pickaxe two copper ingots and a plank, and an expedition mine kit 40 planks and 40 iron ingots. The castle gives you a starter set, and running out of pickaxes with three mines idle is a normal mid-game crisis.
Woodcutters, quarrymen, fishers and farmers do not stand still. They leave the building, walk up to 8 tiles to the resource, work it on the spot and carry the result back — which is why an over-far placement quietly halves your output.
Population & attractiveness
Houses do not produce colonists — they shelter them. The castle holds 12, each house 5. Colonists are not bought: they move in.
- Attractiveness is added to a gauge every tick; each time the gauge reaches 20, one colonist arrives. It grows with a varied larder (two kinds of food count half again, three count double), a food surplus, coins in the treasury, morale — and with decorations and a restored shaft, the part you build and keep.
- The door stays shut while there is no free bed, or while your food production would not feed one more mouth. The gauge is frozen, not reset: the colonist who was on the way arrives when the door reopens.
Population is a hard ceiling on how much you can operate: every workshop holds one colonist for as long as it runs. Expanding means housing, feeding and attracting more of them — three separate constraints that fail at different times.
Food & morale
Each colonist eats one meal every 130 seconds. Foods are not equal:
| Food | Meals | Chain |
|---|---|---|
Meat | 5 | Pig farm → butcher (needs a cleaver) |
Bread | 2 | Farm → mill → bakery (+ well) |
Fish | 1 | Fisher on water — no processing at all |
A house stores up to 8 meals as a buffer, and meals rotate across whatever foods it holds — a varied larder lasts longer than it looks. Measured on the engine, deliveries included: one bakery feeds about 13 colonists on bread alone, and past a dozen bakeries bread stops scaling — the carriers saturate before the ovens do. Big villages eat meat.
The twelve colonists who live in the castle do not eat. Miners do: every mine takes one food per descent, most of the time, and its miner waits if there is none.
Hunger cannot spiral. Morale tracks the share of colonists living in a supplied home, and it only modulates production speed, between 100% and a floor of 50%. Nobody ever starves to death, and nobody leaves because of hunger. A famine costs you an hour, not a save file.
Morale moves slowly on purpose — a smoothed average that takes 30–40 seconds to respond, so one house briefly running dry doesn't make the whole colony stutter.
Military
Weapons are the last sink of the iron chain. The weaponsmith is a made-to-order workshop like the toolmaker — you choose what it forges.
| Item | Cost | Made by |
|---|---|---|
Sword | 1 iron ingot + 1 coal + 1 plank | Weaponsmith |
Shield | 1 iron ingot + 1 plank | Weaponsmith |
Spear | 1 iron ingot + 1 coal + 1 plank | Weaponsmith |
Bow | 1 plank | Fletcher |
The training camp turns a free colonist plus a kit into a soldier:
| Soldier | Kit |
|---|---|
| Swordsman | 1 sword + 1 shield |
| Spearman | 1 spear |
| Archer | 1 bow |
Note the trade-off: every soldier is a colonist who has stopped working. An army is paid for in production, twice over — the iron it consumes and the labour it withdraws.
The rune shaft
Every map carries one collapsed shaft it did not build. Restoring it is the long project the rest of the economy exists to serve — the endgame the whole colony works toward.
| Stage | Cost to reach it | Effect |
|---|---|---|
| Ruin | — | Where every colony starts |
| Shored | 30 stone + 30 planks | Raises Strike |
| Awakened | 200 marble + 200 platinum | Raises Strike · opens the charcoal burner, the platinum smelter and the comfort buildings |
Strike is the shaft's output — how much the restored pit brings up, and the plainest measure of how far a colony has come. It is bounded by construction: a bigger figure is a deeper working, built pick by pick and paid for in upkeep, never bought outright.
Thrift — the emberwood sink
The base shaft burns nothing and never stops. Every pick you set beyond it eats fuel: 40 per hundred strikes at first, down to a hard floor of 20. You buy that efficiency two ways — diamonds, and comfort.
Diamonds are set into the wellhead and never consumed. Each level of setting closes 8 % of whatever gap is left down to the floor, so the twentieth still helps and none is ever wasted — but a bigger shaft needs more stones per level: one per hundred added Strike. Prise one back out and it returns to you intact. Today they are bought in the shaft's window, at 125 runestones each; the harder expedition isles will drop them (roadmap).
Comfort closes the same gap, and it is free — the colony earns it by building well. Between them, comfort alone reaches about 14 %; only diamonds go the rest of the way to the floor.
| Building | Cost | Closes |
|---|---|---|
| Chapel | 40 planks + 40 stone + 60 coins | 3% of the remaining gap |
| Bathhouse | 60 planks + 60 stone + 40 copper ingots + 80 coins | 5% |
| Temple | 80 planks + 80 stone + 30 gold ingots + 120 coins | 6% |
One of each per colony, all three locked until the shaft is Awakened. They are the reason the copper and gold chains keep going past the toolmaker.
Upkeep — what a pick actually costs
A pick is not paid once. It raises Strike, and Strike is billed to the colony every hour, for as long as you run it. Emberwood alone at first; then the bill widens as the shaft goes deeper. Thresholds are on added Strike — the free base shaft is never charged, so a colony that runs dry loses the yield the picks were buying, never its monument.
| Added Strike | Per hour, at 100 added Strike | Why |
|---|---|---|
| from the first | 40 emberwood | the fire that drives the shaft |
| ≥ 80 | + 70 stone, 14 planks | roads chewed up by the hauling; shoring as it descends |
| ≥ 250 | + 8 iron ingots, 6 copper ingots | tools worn out at the face; pipes for the pumps |
| ≥ 500 | + 5 coins | wages for the crew |
The bill grows faster than the Strike: each line is multiplied by (added Strike ÷ 100)1.4, so a shaft twice as deep costs about 2.6 times as much. Thrift lightens the whole bill in the same proportion — at the floor of 20, everything costs half.
The rule is blunt: digging deeper pays more and costs more, for as long as you dig. That is also the real ceiling — 100,000 added Strike would burn over 300,000 emberwood an hour even at the best Thrift, about 4,000 charcoal burners running flat out. No colony can feed that, and no amount of coin shortcuts it.
Production chains
One tick is 1.3 seconds. Workshops have a fixed cycle, listed below and measured on the running engine. Extractors do not: their worker walks to the resource, spends 2.2 s on the spot and walks back, so their rate is set by distance, not by a timer. The figures given for them are the measured maximum with the deposit at the building's foot — placing a mine 8 tiles from the rock face instead of 4 costs half the output.
| Building | Consumes | Produces | Cycle |
|---|---|---|---|
| Woodcutter | a mature tree | 1 log | 6.75 / min measured |
| Sawmill | 1 log | 1 plank | 13 t · 16.9 s |
| Quarry | a stone deposit | 1 stone | 7.67 / min measured |
| Farm | its own fields | 1 wheat | 7.8 s per harvest, on its fields |
| Mill | 1 wheat | 1 flour | 8 t · 10.4 s |
| Well | — | 1 water | 13 t · 16.9 s |
| Bakery | 1 flour + 1 water | 1 bread | 8 t · 10.4 s |
| Fisher | a water tile | 1 fish | 5.0 s per catch, plus the walk |
| Pig farm | 2 wheat + 1 water | 1 livestock | 11 t · 14.3 s |
| Butcher | 1 livestock | 1 meat | 8 t · 10.4 s |
| Coal mine | a coal deposit + food | 1 coal | about 5.4 / min measured |
| Iron / copper mine | the matching deposit + food | 1 ore | about 5.4 / min measured |
| Gold mine | a gold deposit + food | 1 gold ore | about 3.9 / min — longer rest; 4.9 for 5 minutes after a cooked meal |
| Copper smelter | 1 copper ore + 1 coal | 1 copper ingot | 34 t · 44.2 s |
| Iron smelter | 1 iron ore + 1 coal | 1 iron ingot | 41 t · 53.3 s |
| Gold smelter | 1 gold ore + 1 coal | 1 gold ingot | 45 t · 58.5 s |
| Platinum smelter | 1 platinum + 1 coal | 1 platinum ingot | 50 t · 65 s |
| Mint | 1 gold ingot | 1 coin | 41 t · 53.3 s |
| Toolmaker | 1 iron ingot + 1 plank | 1 tool of your choice | 8 t · 10.4 s |
| Weaponsmith | see military | sword · shield · spear | 22 t · 28.6 s |
| Fletcher | 1 plank | 1 bow | 22 t · 28.6 s |
| Charcoal burner | 2 logs | 1 emberwood | 36 t · 46.8 s |
| Training camp | 1 colonist + a kit | 1 soldier | 15 t · 19.5 s |
| Corn farm | its own fields | 1 maize | on its fields, like the farm |
| Chicken coop | 2 maize | 1 egg | 16 t · 20.8 s |
| Kitchen | 1 egg + 1 meat + 1 bread | 1 cooked meal | 16 t · 20.8 s |
| Provisioner | 5 bread + 5 meat + 20 coins | 1 ration | 16 t · 20.8 s |
| Fish farm | 1 water + 1 maize | fish, released into emptied lakes | — |
The four smelters run at deliberately different speeds — copper fastest, platinum slowest. Coal is the shared input for all of them and for the weaponsmith, which is why coal priority is the most consequential slider in the game. Mines eat as well: one food per descent, most of the time, and a miner with nothing to eat waits.
Buildings
| Building | Cost | Needs | Notes |
|---|---|---|---|
| Castle | pre-placed | — | HQ · shelters 12 · stores 9 999 per good |
| Woodcutter | 5 planks | axe · forest within 8 | Fells one tree per log |
| Forester | 5 planks | — | Replants every ~16 s within 4 tiles |
| Sawmill | 6 logs + 3 stone | saw | 2 × 2 footprint |
| Quarry | 6 planks | pickaxe · stone within 8 | Deposits run out; a geologist reopens them |
| Farm | 12 planks + 4 stone | scythe | Works 5 fixed fields around itself |
| Corn farm | 12 planks + 4 stone | scythe | Maize, for the chicken coop and the fish farm |
| Mill | 12 planks + 6 stone | — | |
| Bakery | 10 planks + 10 stone | — | Needs water as well as flour |
| Well | 6 planks + 8 stone | — | No terrain requirement |
| Fisher | 6 planks | rod · water within 8 | Waters run dry (10 fish per tile) |
| Fish farm | 12 planks + 4 stone | rod | Restocks the lakes the fisher emptied |
| Pig farm | 18 planks + 8 stone | — | Large footprint |
| Butcher | 12 planks + 8 stone | cleaver | |
| Chicken coop | 16 planks + 8 stone | — | Eggs, for the kitchen |
| Kitchen | 14 planks + 10 stone | — | Cooked meals: a gold mine fed one works faster for 5 minutes |
| Provisioner | 14 planks + 8 stone | — | Rations for explorers and expeditions |
| Mines (coal, iron, gold, copper) | 12 planks + 4 stone | pickaxe · matching deposit · food | 3 × 2 footprint |
| Smelters (copper, iron, gold) | 10 planks + 6 stone | — | Lights up while working |
| Toolmaker | 10 planks + 6 stone | — | Made to order |
| Mint | 10 planks + 8 stone | — | The only source of coins |
| Weaponsmith | 10 planks + 8 stone | — | Made to order |
| Fletcher | 9 planks + 3 stone | — | |
| Training camp | 20 planks + 12 stone | — | Large footprint |
| House | 14 planks + 6 stone | — | Shelters 5 · stores 8 meals |
| Builder's hut | 8 planks + 4 stone | hammer | One more builder to raise your sites |
| Digger's hut | 8 planks + 4 stone | shovel | One more digger to level the ground |
| Warehouse | 16 planks + 10 stone | — | Stores 9 999 per good — shortens trips, not a capacity gate |
| Explorer hut | 10 planks + 4 stone | — | For the expedition mode |
| Charcoal burner | 16 planks + 14 stone + 8 gold ingots | Awakened shaft | Turns logs into emberwood, the shaft's fuel |
| Platinum smelter | 10 planks + 6 stone | Awakened shaft | Expedition metal |
| Geologists' guild | 24 planks + 26 stone + 16 coins | — | Trains and sends geologists · 25 coins a mission |
| Military school | 30 planks + 30 stone + 20 coins | — | Raises at most two generals, 30 coins each, 24 troops apiece |
| Expedition camp · Expedition mine | — · 12 planks + 4 stone | — | On expedition islands only |
| Chapel | 40 planks + 40 stone + 60 coins | Awakened shaft | Comfort · one per colony |
| Bathhouse | 60 planks + 60 stone + 40 copper ingots + 80 coins | Awakened shaft | Comfort · one per colony |
| Temple | 80 planks + 80 stone + 30 gold ingots + 120 coins | Awakened shaft | Comfort · one per colony |
| Rune Shaft | pre-placed, in ruin | — | Restored in three stages |
Buildings need one clear tile between them, and the door tile — south-east by default — must stay free for its road and cairn.
Goods
Forty-three goods circulate on the network.
Log
Plank
Stone
Wheat
Flour
Water
Bread
Fish
Livestock
Meat
Coal
Iron ore
Copper ore
Gold ore
Iron ingot
Copper ingot
Gold ingot
Coin
Axe
Saw
Pickaxe
Scythe
Rod
Cleaver
Hammer
Shovel
Sword
Shield
Spear
Bow
Diamond
Platinum
Maize
Egg
Cooked meal
Copper pickaxe
Spyglass
Ration
Mine kit
Marble
Platinum ingot
Emberwood
Cairn pickDecorations & attractiveness
Decorations are placed instantly, need no road and no worker, and are paid for out of stock — but they must stand within 6 tiles of a finished building. They all cost coins as well as materials — that is what the gold chain is ultimately for.
| Decoration | Cost | Attractiveness |
|---|---|---|
| Signpost | 2 planks + 3 coins | +1 |
| Flower bed | 3 planks + 3 coins | +1 |
| Hedge | 3 planks + 3 coins | +1 |
| Lamppost | 2 iron ingots + 2 copper ingots + 10 coins | +2 |
| Banner | 4 planks + 8 coins | +3 |
| Well | 4 planks + 3 stone + 8 coins | +3 |
| Market stall | 6 planks + 2 stone + 10 coins | +4 |
| Statue | 6 stone + 14 coins | +6 |
| Fountain | 10 stone + 8 planks + 24 coins | +12 |
Small pieces are deliberately the worst value per coin. Decorations are the lasting part of your colony's attractiveness: what they add keeps adding, tick after tick, while food and coins come and go. Lampposts light up at night and face any of four ways.
World & resources
| Property | Value |
|---|---|
| Map size | 156 × 156 tiles (24 336) |
| Forest cover | about 14% of the shared starting map |
| Deposits | stone, coal, iron, gold, copper — 15 on the shared starting map |
| Ore per deposit | 7,500, then a geologist refills it |
| Fish per water tile | 10; the fish farm restocks 3 per trip |
| Tree growth | 3 stages; only a mature tree can be felled |
| Simulation tick | 1.3 s |
Nothing renews itself, and nothing is beyond renewal either — each resource has a trade whose job is to put it back. A forester replants what the woodcutter fells. A fish farmer returns fish to the lake the fisher emptied. And an exhausted stone, coal or ore deposit is reopened on the spot by a geologist, refilled to a full seam rather than patched, so sending one is a decision and not a chore.
The pressure that eventually pushes you off your starting ground is therefore not scarcity — it is labour: every renewal costs a worker, a walk and a wage. What no trade can produce at home is platinum, with marble: beyond the share the two bandit camps on your own map hold, they come only from the expedition isles.
Drawing a road through a forest clears the tree in its way. Convenient, and a slow way to ruin a woodcutter's district if you are not paying attention.
Quests
A chain of objectives guides the early game. Most rewards are a choice — materials to reinvest, or coins; a few pay coins only.
The full, live quest chain — six acts, twenty-one objectives — is generated from the game's balance file on the Guide page, each with its exact reward.
Expeditions
Your home map is permanent, and only you can change it — other players can visit it, never touch it. Expeditions are the opposite: instanced maps you travel to, strip of what they hold, and leave.
- Explorers trained at the explorer's hut bring back charts to new sites.
- Rare veins — marble and platinum — exist only out there, mined by a single all-purpose expedition mine. Diamonds will be the prize of the harder isles (roadmap); today they are bought at the shaft.
Geologists are the other half of it, and the thing they do that matters most is not surveying — it is reopening. Send one to a worked-out stone, coal or ore deposit and, after about five minutes of digging on the spot, the seam is back to a full reserve. Not topped up: full. A deposit refilled to a third would just mean sending another geologist straight after, and the mechanic would become a chore instead of a decision.
Recruiting one costs 40 coins and a copper pickaxe — dearer than a general, because a general spends resources and a geologist creates them. Each mission then costs 25 coins: a rent on a repeated action, not a barrier. They carry their own skill tree, capped at 14 points, so no two end up identical and specialising by ore actually means something.
Islands, landings, bandit camps and the fight are all in the game. What is still moving is the balance of the loot they pay out.