Skip to content

Timber Map Format

Guy Friley edited this page Nov 6, 2026 · 2 revisions

Timber Map Format

A .timber map is a plain zip. You can write one directly from any language without touching the in-game editor. This page documents the format as reverse-engineered against game version 1.0.13.1 and confirmed by loading generated maps.

The four members

map_metadata.json   {"Width","Height","MapNameLocKey","MapDescriptionLocKey","MapDescription",...}
map_thumbnail.jpg   preview shown in the map picker
version.txt         must match world.json's GameVersion
world.json          {"GameVersion","Timestamp","Singletons","Entities"}

Leave the localisation keys empty on a user map. The map list falls back to the file name.

Timestamp is "%Y-%m-%d %H:%M:%S" with no trailing Z.

Terrain

Singletons.TerrainMap.Voxels.Array is a space-separated string of 0 and 1, indexed:

index = z * Width * Height + y * Width + x

A column must be solid from z=0 upward with no gaps.

The vertical size is global, not per-map, and is not inferred from the array length. It comes from Blueprints.zip at Configurations/MapSize.blueprint.json, field MapSizeSpec.MaxGameTerrainHeight (22), plus one. That is 23 slots per column for every map, whatever its width and height. The metadata carries only Width and Height; there is no depth field anywhere.

Getting this wrong is a silent killer. The game reads the metadata, starts the new game, then throws IndexOutOfRangeException in MapIndexService.Unpack3D from TerrainMap.Load() and dies with no in-game error. The trace only appears in Player.log. Terrain itself should stay at or below MaxMapEditorTerrainHeight (16).

The 1.1.2.7 terrain loader carries the strings "Loaded map has heights exceeding map size" and "Terrain data height exceeds map size, truncating to fit", plus a TerrainCutOffIssue loading issue, so newer builds may truncate a wrong depth instead of crashing. That is inferred from string literals, not yet observed. Keep the depth right regardless.

Water and soil

WaterMapNew, WaterEvaporationMap, SoilMoistureSimulator and SoilContaminationSimulator all use arrays of Width * Height * 2, two stacked water levels, indexed:

index = level * Width * Height + y * Width + x

Simulation state may be left at defaults, 0 everywhere or 1 for evaporation modifiers. The game fills the river in from the water sources on load.

In a save, as opposed to a fresh map, a water column is a string "depth:contamination:?:floorZ:prevDepth", or "0" when empty.

Entities

{"Id": "<uuid4>", "Template": "<name>", "Components": {...}}
  • BlockObject.Coordinates.Z is the first air voxel, which equals the column's solid height.
  • BlockObject.Orientation is optional: Cw90, Cw180 or Cw270. Omit it for 0.
  • Omitted components fall back to the template's defaults, so entities can be written minimally.
  • ReserveTank must not carry StockpileVisualizers.

Valid template names live in the game install under StreamingAssets/Modding/Blueprints.zip, in NaturalResources/ and MapEditor/. The folder name is not always the template name: Bushes/Blueberry is the template BlueberryBush.

Cut yields are fixed per species: Birch 1 log, Pine 2, Oak 8. RuinColumnH<N> yields N * 15 ScrapMetal.

Starting supplies

Maps cannot change the faction's starting goods. The only map-level lever is the Reserve* caches. Their blueprints have PlaceFinished: true with the BuildingCost (10 ScrapMetal) already sitting in the serialised Inventory:ConstructionSite, so they cost the player nothing.

Capacity is hard-capped per building by StockpileSpec.MaxCapacity:

Cache Footprint Capacity Accepts
ReserveWarehouse 2x2 200 Box goods (Berries, Gear, Bread, ...)
ReserveTank 2x2 300 Liquid goods (Water, Badwater, ...)
ReservePile 2x2 160 Pileable goods (Log, Plank, Dirt, ScrapMetal, ...)

Exceeding the cap or putting a good in the wrong storage type is invalid. The validator checks both.

All three Reserve* buildings declare BlockObjectSpec.Entrance at local (1, -1), a tile outside the 2x2 footprint. Anything standing on that tile is deleted on load. See Map Design Rules.

Validate against the real thing

The fastest way to catch a shape mistake is to compare your world.json against a map the game ships with. The validator does this when given --reference: it walks every singleton and every entity component, and checks that each key exists in the reference and has the same value type. Shipped maps are game content, so keep your copy out of the repo.

Clone this wiki locally