Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2026 Kyler Ramsey
Copyright (c) 2026 Timbermods

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ When updating, replace the whole `PersistentWorkAreas` folder. The new DLL reads
## Install

1. Close Timberborn.
2. Extract `PersistentWorkAreas-v1.1.0.zip` into your Timberborn `Mods` folder (normally `Documents\Timberborn\Mods`). The result should be `Mods\PersistentWorkAreas\version-1.1\manifest.json` and `PersistentWorkAreas.dll` beside it.
3. Start Timberborn and enable **Persistent Work Areas** in the mod manager. Restart if prompted.
2. Download `PersistentWorkAreas-v1.1.0.zip` from **Assets** on the [latest release](https://github.com/timbermods/PersistentWorkAreas/releases/latest). Don't use the `-source.zip` or the **Source code** archives.
3. Extract it into your Timberborn `Mods` folder (normally `Documents\Timberborn\Mods`). The result should be `Mods\PersistentWorkAreas\version-1.1\manifest.json` with `PersistentWorkAreas.dll` beside it.
4. Start Timberborn and enable **Persistent Work Areas** in the mod manager. Restart if prompted.

Requires Timberborn **1.1.2.4** or a compatible 1.1 build. Built and tested on Timberborn 1.1.2.4. Later versions may change the internal renderer API.

No extra dependency is required. Keep your existing BeaverBuddies Stability Fork installation as it is. For co-op, install this mod on both players' computers; that is the tested setup. Pins are always local to each player. The code does not require the other player to install it, but running it on only one computer has not been playtested.
No other mods are required: not Harmony, Mod Settings or BeaverBuddies. The mod works the same in single-player and in co-op. If you play co-op with the BeaverBuddies Stability Fork, keep that installation as it is. For co-op, every player installs the same version of the mod and runs the same game version; that is the tested setup. Pins are always local to each player. The mod sends nothing over the network, so a player without it shouldn't cause a desync, but running it on only one computer has not been playtested.

## Use

Expand All @@ -44,13 +45,26 @@ No extra dependency is required. Keep your existing BeaverBuddies Stability Fork
- For a keyboard shortcut, assign **Clear all pinned working areas** under **Persistent Work Areas** in the game's key-binding settings. It starts unbound to avoid taking an existing shortcut.
- To remove just one pin, select its building and uncheck the checkbox.

The currently selected building still uses its normal game outline. Clearing pins restores normal selection behavior; deselecting that building then hides its normal outline. Pins are remembered for each settlement on your own computer, in `PersistentWorkAreas\Pins.txt` next to your Timberborn `Saves` folder (on Windows, `Documents\Timberborn\PersistentWorkAreas\Pins.txt`), and come back when you load any save of that settlement, as the latest pins you set there. A different settlement starts with none. They are never written into the save, so co-op players each keep their own. A co-op guest's game names the settlement after the host's save, which changes with every resynchronization, so a guest's pins usually do not come back. The file keeps the 100 settlements you loaded or changed most recently. To forget every pin, delete that file. Deleting a pinned building removes its pin.
The currently selected building still uses its normal game outline. After you clear the pins, deselecting a building hides its outline again, as in the base game. Deleting a pinned building removes its pin.

The mod supports navigation-based working areas. It does not pin district road coloring, every kind of effect-radius overlay, or building-placement ghosts. UI text is currently English. The panel, button and key-binding text is all in `version-1.1/Localizations/enUS_PersistentWorkAreas.csv` (in the repository, under `packaging/PersistentWorkAreas/`), so a translation is one more file in that folder with the same keys, named for the game's language code (for example `deDE_PersistentWorkAreas.csv`). Keep `{0}` in the clear-button text: it becomes the pin count.
### Where pins are kept

Pins are remembered for each settlement on your own computer, in `PersistentWorkAreas\Pins.txt` next to your Timberborn `Saves` folder (on Windows, `Documents\Timberborn\PersistentWorkAreas\Pins.txt`). When you load any save of that settlement, the latest pins you set there come back. A different settlement starts with none.

- Pins are never written into the save, so co-op players each keep their own.
- A co-op guest's game names the settlement after the host's save, which changes with every resync, so a guest's pins usually do not come back. The host's should come back.
- The file keeps the 100 settlements you loaded or changed most recently.
- To forget every pin, delete that file.

### Limits and translations

The mod supports navigation-based working areas. It does not pin district road coloring, effect-radius overlays that are not navigation-based, or building-placement ghosts.

UI text is currently English. The panel, button and key-binding text is all in `version-1.1/Localizations/enUS_PersistentWorkAreas.csv` (in the repository, under `packaging/PersistentWorkAreas/`), so a translation is one more file in that folder with the same keys, named for the game's language code (for example `deDE_PersistentWorkAreas.csv`). Keep `{0}` in the clear-button text: it becomes the pin count.

## Compatibility and validation

Designed for compatibility with the **BeaverBuddies Stability Fork**. The mod does not patch game methods, change simulation or building data, send multiplayer events, or modify saves; the pins live in their own small local file. It uses the same navigation queries as the game's selected-building visualizer and a separate instance of its outline renderer.
Designed for compatibility with the **BeaverBuddies Stability Fork**, but it doesn't depend on any BeaverBuddies build and works in single-player without one. It is a local display only. It does not patch game methods, change simulation or building data, send multiplayer events, or modify saves; the pins live in their own small local file. It uses the same navigation queries as the game's selected-building visualizer and a separate instance of its outline renderer. The Stability Fork's co-op join check compares only the game and BeaverBuddies builds, so this mod doesn't affect joining. Co-op has been tested only with the Stability Fork, not with the original [BeaverBuddies](https://github.com/thomaswp/BeaverBuddies) or BeaverBuddies MultiColony.

The release build passes 142 automated checks. 77 of them test the pin, refresh-planning, planting-tool and pin-file logic without the game, and 65 check the mod against the installed game's assemblies and blueprints. Version 1.0.0 was tested in game on Timberborn 1.1.2.4, both single-player and in a two-player BeaverBuddies Stability Fork session with the mod installed on both computers. The features new in 1.1.0 have not been playtested in game yet. See `VALIDATION.md` for what was checked and how.

Expand Down
4 changes: 2 additions & 2 deletions VALIDATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
- Compiled for `netstandard2.1` against the installed Timberborn 1.1.2.4 assemblies: zero errors and zero warnings.
- 142 checks passed. 77 need no game files and also run on GitHub Actions for every pull request: pin-set identity and change tracking, refresh planning against a fake navigation world that counts range queries and outline rebuilds, the planting-tool rule and shown-building bookkeeping, and the pin-file format, escaping, 100-settlement cap, restore by entity id and atomic on-disk writes. 65 need the installed game: reference-identity pins, duplicate pin/unpin, independent pins, replacement/deletion behavior, global clear, new-map isolation, native renderer constructors/methods/cleanup fields, delegate binding to internal renderer methods, lifecycle/navigation/event interfaces, no simulation persistence interfaces, no Harmony/BeaverBuddies dependencies, package/key-binding consistency, manifest/assembly version agreement, presence of the Builder's Hut marker component used to exclude it from pinning, the navigation-change bounds against the game's `BoundingBox`, the service's refresh wiring on a live instance, planting-tool events and the planter pairing against the game's own blueprints, localization CSV layout and the absence of hard-coded UI text in the DLL, and pin-file saving, restoring and retrying on a live instance with the game's settlement and entity-registry types.
- Compared the display path with the installed game's `BuildingRangeDrawer`, `BoundsNavRangeDrawer`, and navigation query calls. The mod uses those same range queries and its own outline-renderer instance.
- Reviewed the BeaverBuddies Stability Fork's `IO/BuildCompatibility.cs`: its handshake identifies Timberborn and the BeaverBuddies/TimberNet binaries. This mod changes none of them.
- The display service only implements frame-update, input, load, and navigation-notification interfaces. Pin state is per game-scoped service instance. Each settlement's pins are also kept, by entity id, in a local text file next to the `Saves` folder (`Documents\Timberborn\PersistentWorkAreas\Pins.txt` on Windows). It is read once after the map loads, and rewritten from the frame update after the pins change, and once after a load that finds the settlement below the top of the file, to keep it among the 100 most recent. A failed write is retried every 10 seconds and again on leaving the map, which never erases the file. A file this version cannot read is kept as `Pins.txt.bak` before it is replaced. There are no Harmony patches, replay events, simulation ticks, random calls, or save writes.
- Reviewed the BeaverBuddies Stability Fork's `BeaverBuddies/IO/BuildCompatibility.cs`: its handshake identifies Timberborn and the BeaverBuddies/TimberNet binaries. This mod changes none of them.
- The display service only implements frame-update, input, load, and navigation-notification interfaces. Pin state is per game-scoped service instance. Each settlement's pins are also kept, by entity id, in a local text file next to the `Saves` folder (`Documents\Timberborn\PersistentWorkAreas\Pins.txt` on Windows). The file is read once after the map loads. The frame update rewrites it after the pins change. It is also rewritten once after a load that finds the settlement below the top of the file, to keep that settlement among the 100 most recent. A failed write is retried every 10 seconds and again on leaving the map, which never erases the file. A file this version cannot read is kept as `Pins.txt.bak` before it is replaced. There are no Harmony patches, replay events, simulation ticks, random calls, or save writes.
- Each pinned or planting-tool building caches its own range. A navigation change re-queries only the buildings whose range it can reach (road-spill ranges are always re-queried), with those refreshes capped at five per second. Selection and visible-level changes redraw from the cache without a query; construction-mode changes re-query every building. With no pins and no planting tool open, nothing is queried or drawn. All outlines share a combined mesh, and the renderer's owned meshes and cloned materials are released once nothing is drawn.

## Not established by the automated checks
Expand Down
7 changes: 4 additions & 3 deletions docs/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h2>Safety and compatibility</h2>
</details>
<details class="q" id="multiplayer">
<summary>Does it work in multiplayer? Do both players need it?</summary>
<div class="a"><p>It's designed for compatibility with the <strong>BeaverBuddies Stability Fork</strong>. The mod sends no multiplayer events and pins are purely local, so what one player pins never appears for another. It has been tested in a two-player co-op session with the mod installed on both computers, and that's the recommended setup. It shouldn't strictly need to be installed by both players, but using it on only one hasn't been playtested.</p></div>
<div class="a"><p>Yes. It's designed for compatibility with the <strong>BeaverBuddies Stability Fork</strong>, but it doesn't need BeaverBuddies and works the same in single-player. The mod sends nothing over the network and pins are purely local, so what one player pins never appears for another. For co-op, every player installs the same version of the mod and runs the same game version. That's the setup tested in a two-player co-op session. Because the mod only draws on your own screen, it shouldn't strictly need to be installed by both players, but using it on only one hasn't been playtested. It hasn't been tested with the original BeaverBuddies or BeaverBuddies MultiColony.</p></div>
</details>
<details class="q" id="advantage">
<summary>Does it change gameplay or give an advantage?</summary>
Expand Down Expand Up @@ -165,8 +165,8 @@ <h2>The project</h2>
<footer class="site-footer">
<div class="container foot">
<div>
<p><strong>Persistent Work Areas</strong>, an unofficial Timberborn mod.</p>
<p>Timberborn is made by Mechanistry. This is a fan project and is not affiliated with or endorsed by them.</p>
<p><strong>Persistent Work Areas</strong>, maintained by <a href="https://github.com/timbermods">Timbermods</a>.</p>
<p>An unofficial community mod for Timberborn. Not affiliated with or endorsed by Mechanistry.</p>
</div>
<ul aria-label="Links">
<li><a href="install.html">Install</a></li>
Expand All @@ -175,6 +175,7 @@ <h2>The project</h2>
<li><a href="https://github.com/timbermods/PersistentWorkAreas">Source</a></li>
<li><a href="https://github.com/timbermods/PersistentWorkAreas/releases">Releases</a></li>
<li><a href="https://github.com/timbermods/PersistentWorkAreas/issues">Report a problem</a></li>
<li><a href="https://timbermods.github.io/">More mods from Timbermods</a></li>
</ul>
</div>
</footer>
Expand Down
11 changes: 6 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h3><span class="ico" aria-hidden="true">1</span>Pin any working area</h3>
</article>
<article class="card">
<h3><span class="ico" aria-hidden="true">2</span>Stays after you deselect</h3>
<p>Paint crops, mark trees for planting or place new buildings with the outline still on screen, instead of re-selecting the building every few seconds.</p>
<p>Paint crops, mark trees for planting or place new buildings with the outline still on screen, instead of re-selecting the building every few seconds. Pick a crop or tree and the farmhouses or foresters that plant it are outlined for you.</p>
</article>
<article class="card">
<h3><span class="ico" aria-hidden="true">3</span>Pin as many as you like</h3>
Expand Down Expand Up @@ -183,8 +183,8 @@ <h3>Fails on its own</h3>
<table>
<tbody>
<tr><th scope="row">Game version</th><td>Timberborn <strong>1.1.2.4</strong> or a compatible 1.1 build. Built and tested on 1.1.2.4; later versions may change the internal renderer API.</td></tr>
<tr><th scope="row">Multiplayer</th><td>Designed for compatibility with the <strong>BeaverBuddies Stability Fork</strong>. Tested in two-player co-op with the mod on both computers, which is the recommended setup. It sends no multiplayer events and pins are always local.</td></tr>
<tr><th scope="row">Other mods</th><td>No required mods. No Harmony patches and no BeaverBuddies dependency.</td></tr>
<tr><th scope="row">Multiplayer</th><td>Works in single-player and in co-op. Designed for compatibility with the <strong>BeaverBuddies Stability Fork</strong>, but doesn't need any BeaverBuddies build. For co-op, every player installs the same version of the mod and runs the same game version; that's the tested setup. It sends nothing over the network and pins are always local.</td></tr>
<tr><th scope="row">Other mods</th><td>No required mods, not even Harmony or Mod Settings. No Harmony patches and no BeaverBuddies dependency.</td></tr>
<tr><th scope="row">Saves</th><td>Untouched. Pins live in their own small local file. You can remove the mod at any time.</td></tr>
<tr><th scope="row">Language</th><td>English UI text, translatable with one CSV file.</td></tr>
</tbody>
Expand All @@ -207,8 +207,8 @@ <h2>Ready to try it?</h2>
<footer class="site-footer">
<div class="container foot">
<div>
<p><strong>Persistent Work Areas</strong>, an unofficial Timberborn mod.</p>
<p>Timberborn is made by Mechanistry. This is a fan project and is not affiliated with or endorsed by them.</p>
<p><strong>Persistent Work Areas</strong>, maintained by <a href="https://github.com/timbermods">Timbermods</a>.</p>
<p>An unofficial community mod for Timberborn. Not affiliated with or endorsed by Mechanistry.</p>
</div>
<ul aria-label="Links">
<li><a href="install.html">Install</a></li>
Expand All @@ -217,6 +217,7 @@ <h2>Ready to try it?</h2>
<li><a href="https://github.com/timbermods/PersistentWorkAreas">Source</a></li>
<li><a href="https://github.com/timbermods/PersistentWorkAreas/releases">Releases</a></li>
<li><a href="https://github.com/timbermods/PersistentWorkAreas/issues">Report a problem</a></li>
<li><a href="https://timbermods.github.io/">More mods from Timbermods</a></li>
</ul>
</div>
</footer>
Expand Down
Loading
Loading