Repository navigation
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 PillowDownload 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.
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.zipor theTIMBERBORN_BLUEPRINTSenvironment variable. Checks terrain height against the game's ownMapSizeSpec. The Steam install is searched automatically on macOS, Linux and Windows. -
--reference path/to/shipped-map.timberorTIMBERBORN_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.
python3 bridge/timberborn_mcp.py --selftest | lessThat 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.
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 assembliesSee Modding Guide for what the mod does and how it is built.
| 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 |
timberborn-tools
Maps
Colonies
Modding