Skip to content

Getting Started

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

Getting Started

Everything runs on Python 3.8 or newer from a clone of the repo. The only third-party package is Pillow, and only the map generator needs it, for the thumbnail.

git clone https://github.com/0xguy07/timberborn-tools.git
cd timberborn-tools
pip install Pillow

Play the sample map

Download Practice Valley.timber from the latest release, or use maps/Practice Valley.timber from the clone. Copy it into your Timberborn maps folder and it appears in the custom map list under its file name.

Platform Maps folder
macOS ~/Documents/Timberborn/Maps/
Windows %USERPROFILE%\Documents\Timberborn\Maps\

See Practice Valley for what the map is designed to teach.

Regenerate and validate a map

python3 maptools/practice_valley_generator.py "maps/Practice Valley.timber"
python3 maptools/validate_map.py "maps/Practice Valley.timber"
python3 maptools/measure_arable.py "maps/Practice Valley.timber"

The generator is seeded, so terrain and placement are reproducible. Entity ids are fresh UUIDs on every run, so two outputs are not byte-identical but they validate the same.

The validator prints one PASS or FAIL line per check and exits non-zero on any failure. Two optional inputs make it stricter:

  • --blueprints path/to/Blueprints.zip or the TIMBERBORN_BLUEPRINTS environment variable. Checks terrain height against the game's own MapSizeSpec. The Steam install is searched automatically on macOS, Linux and Windows.
  • --reference path/to/shipped-map.timber or TIMBERBORN_REFERENCE_MAP. Compares the JSON shape of your map against one the game ships with, such as Plains. Shipped maps are game content, so copy one out of your install and keep it out of git.

The full list is on Validator Checks.

Ask a model about your colony

python3 bridge/timberborn_mcp.py --selftest | less

That runs every report against your newest save with no MCP client attached, which is the quickest way to confirm the bridge can see your saves. To register it with Claude Code:

claude mcp add timberborn -s user -- python3 "$PWD/bridge/timberborn_mcp.py"

Saves are read from ~/Documents/Timberborn or the platform save folder. Set TIMBERBORN_DIR to point elsewhere. The bridge never writes to a save. Tool list and caveats are on Save Bridge.

Build the mod and the tools

Both need the .NET SDK and nothing else; no packages are downloaded.

mods/BeaverBridge/install.sh                                   # build the mod and install it into the game's Mods folder
dotnet run --project tools/apidump -- --out /tmp/api "<game Managed folder>"   # dump the game's API to text
tools/sync-gamerefs.sh                                         # refresh a local copy of the game's assemblies

See Modding Guide for what the mod does and how it is built.

Where things live locally

Path What
~/Documents/Timberborn/Maps/ Custom maps the game can load
~/Documents/Timberborn/Saves/<settlement>/ Save files, one folder per settlement
~/Documents/Timberborn/Mods/<Name>/ Local mods: manifest.json plus Code.dll
Timberborn.app/Contents/Resources/Data/StreamingAssets/Modding/Blueprints.zip Every template, spec and configuration the game ships
~/Library/Logs/Mechanistry/Timberborn/Player.log The only place a map load crash is reported on macOS

Clone this wiki locally