Mix goods by percentage
Give any good the building normally accepts a share of its capacity, down to 0.01%. Shares must total exactly 100%, so every slot has a purpose.
diff --git a/CHANGELOG.md b/CHANGELOG.md index e40d029..56084bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,13 +62,11 @@ First official release. Everything from v0.5.8, plus fixes from a code review be - Align percentage controls and limits with their headers; wrap the capacity summary and reduce horizontal padding. - Widen the editor to 440 UI units, bounded by the viewport, expanding left from the sidebar edge. Preserve the fixed Apply/Revert/total footer and screen-height cap. - ## v0.5.1 - Bound the allocation panel to available screen height and scroll its content independently. - Keep allocation totals and Apply/Clear/Revert controls outside the scrolling body. - ## v0.5.0 - One MixedStorage download and mod entry for single-player and multiplayer. @@ -76,27 +74,23 @@ First official release. Everything from v0.5.8, plus fixes from a code review be - Reject the obsolete separate addon with clear upgrade instructions. Preserve allocation save keys. - Add isolated loading tests with and without BeaverBuddies and legacy-addon detection. - ## v0.4.3 - Replace triangle clipping with complete native cell selection at allocation boundaries. - Validate primary/secondary mesh topology before selecting cells. Fit continuous or unrecognized meshes into their sections without cutting faces. - Keep exact gameplay limits; visual proportions approximate whole cells. Add partition and topology regression checks. - ## v0.4.2 - Replace the small inline contents summary with readable cards: 30px goods icons, bold names, 19px stored/limit counts, allocation percentages and stock fill bars. - Keep incoming and excess counts visible, and bound the summary height for large goods lists. - ## v0.4.1 (visual prototype fix) - Fix ambiguous native method lookup that caused mixed visuals to fall back to one good. - Resolve rendering methods by their argument types and validate nine native API signatures against the installed game assemblies. - Include full exception details in rendering fallback warnings. - ## v0.4.0 (visual prototype) - Divide native goods meshes into deterministic allocation-sized sections, filling each from its actual stock. @@ -104,13 +98,11 @@ First official release. Everything from v0.5.8, plus fixes from a code review be - Coalesce visual updates to at most five rebuilds per building per second. - Add offline mesh-clipping tests. In-game appearance and performance remain unverified. - ## v0.3.1 - Add a live top summary of applied percentages, stored quantities and limits for all allocated or stocked goods. - Include incoming deliveries and excess stock, independently of search and filters. - ## v0.3.0 - Add per-good Max buttons to assign 100% with one click. @@ -118,11 +110,9 @@ First official release. Everything from v0.5.8, plus fixes from a code review be - Preserve exact percentages and recalculate limits for each destination capacity. - Reject incompatible pastes atomically; apply changes through the existing multiplayer event path. - ## v0.2.0 - Use MixedStorage naming throughout the mod, multiplayer addon, assemblies, IDs, UI identifiers and allocation save data. - - Add Folktails small, large and underground piles. - Add Iron Teeth small and large industrial piles. - Preserve each storage building's native accepted goods and capacity. diff --git a/LICENSE b/LICENSE index 889aa57..9e2e92d 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/README.md b/README.md index 0fac20a..c9b3c01 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Divide a building's capacity by percentage. For example, a 1,200-capacity wareho 1. Download **MixedStorage-v1.1.1.zip** above. On the release page, choose that file under **Assets**, not **Source code**. 2. Close Timberborn. Extract the ZIP's **MixedStorage** folder into your Timberborn **Mods** folder—normally `Documents\Timberborn\Mods` on Windows. 3. Check that `Documents\Timberborn\Mods\MixedStorage\version-1.1\manifest.json` exists. Avoid an extra nested MixedStorage folder. -4. Install **Harmony 2.4.1 or newer** if needed. Enable **Harmony** and **MixedStorage** in the game's mod manager, then restart when prompted. +4. Install **Harmony** 2.4.1 or newer from the [Steam Workshop](https://steamcommunity.com/sharedfiles/filedetails/?id=3284904751) if you don't have it. Enable **Harmony** and **MixedStorage** in the game's mod manager, then restart when prompted. **Upgrading?** Replace the existing MixedStorage files while the game is closed. Existing MixedStorage allocations are preserved. @@ -52,7 +52,7 @@ For the example above, enter `50` for carrots and `50` for gears, with everythin | **Copy allocations** | Copies a valid draft totaling 100%. | | **Paste allocations** | Pastes copied percentages into another building's draft. Click Apply there to confirm. | -Percentages allow **two decimal places**. Copy/paste adjusts item limits to the destination's capacity. The destination must accept every copied good with a nonzero percentage; an incompatible paste leaves the draft unchanged. Stock, hauling mode, and hauler priority are not copied. Copied settings last only for the current game process. +Percentages allow **two decimal places**. Copy/paste adjusts item limits to the destination's capacity. The destination must accept every copied good with a nonzero percentage; an incompatible paste leaves the draft unchanged. Stock, hauling mode, and hauler priority are not copied. Copied settings are kept until you close the game. ## Supported buildings @@ -65,7 +65,7 @@ Buildings keep their normal accepted goods. Warehouses do not gain pile-only goo ## Multiplayer with BeaverBuddies -Install the **same MixedStorage version on every computer**, alongside matching BeaverBuddies versions and Harmony. Enable BeaverBuddies as usual; MixedStorage automatically activates its bundled integration. +Co-op needs the [BeaverBuddies Stability Fork](https://timbermods.github.io/BeaverBuddies-Stability-Fork/). Every player installs the **same version of MixedStorage** (and the same Stability Fork build) and runs the **same game version**. Enable the Stability Fork as usual; MixedStorage turns on its bundled integration automatically. See [Compatibility and testing](#compatibility-and-testing) for which BeaverBuddies builds work. There is **no separate MixedStorage multiplayer download**. Single-player users do not need BeaverBuddies. @@ -78,7 +78,10 @@ Applied allocations synchronize through BeaverBuddies. Apply may briefly show a - **Incoming deliveries count toward limits.** If a reduction conflicts with goods already on their way, wait for delivery and try again. - **Storage modes still matter.** Accept, Obtain, Supply, Empty, and hauler priority continue to use the game's hauling system. - **World visuals are approximate.** Whole visible cells cannot always match a percentage exactly. Tiny shares may have no visible cell, some models may look narrower, and banners still show one representative good. Excess goods may not be fully represented. Use the summary for exact amounts; unsupported meshes fall back to the original visuals. -- **The game's Duplicate settings tool works with mixed storage.** Copying from a mixed building gives the target the same percentages. If the target does not accept all of those goods, or an incoming delivery conflicts, the target keeps its current goods and percentages and Player.log says why; the tool's other settings, such as the storage mode, are still copied. Copying from a building set to store nothing, such as one just built, leaves a mixed building's allocation as it is, so copying its storage mode (Accept, Obtain, Supply or Empty) from it does not wipe the allocation. Copying from a normal building that stores a good this one accepts turns a mixed building back into a normal one, unless a delivery already on its way would no longer fit (then it stays mixed and Player.log says why). To make such a normal building, pick a good for a building without an allocation in the goods dropdown of the game's building list. +- **The game's Copy settings tool works with mixed storage.** + - Copying from a mixed building gives the target the same percentages. If the target does not accept all of those goods, or an incoming delivery conflicts, the target keeps its current goods and percentages and Player.log says why. The tool's other settings, such as the storage mode, are still copied. + - Copying from a building set to store nothing, such as one just built, leaves a mixed building's allocation as it is. So copying its storage mode (Accept, Obtain, Supply or Empty) does not wipe the allocation. + - Copying from a normal building that stores a good this one accepts turns a mixed building back into a normal one. If a delivery already on its way would no longer fit, the building stays mixed and Player.log says why. To make such a normal building, pick a good for a building without an allocation in the goods dropdown of the game's building list. - **The mod's own text is in English.** Good names follow your game language. ## Having trouble? @@ -91,7 +94,7 @@ Applied allocations synchronize through BeaverBuddies. Apply may briefly show a | Lower limit is rejected | Wait for incoming deliveries to finish. | | Startup mentions the old addon | Remove or disable MixedStorage-BeaverBuddies, then fully restart. | | Apply says multiplayer support could not start with the installed BeaverBuddies | Install the BeaverBuddies build named under [Compatibility and testing](#compatibility-and-testing) on every computer. Player.log names what is missing. Single-player usually still works; if even that is refused, disable BeaverBuddies for single-player games. | -| Apply says MixedStorage cannot change allocations with this game version | A game update changed something MixedStorage relies on. Existing allocations still apply, but none can change (by Apply or Copy Settings) until you install the MixedStorage version made for your game version. In co-op, every player needs the same game version. | +| Apply says MixedStorage cannot change allocations with this game version | A game update changed something MixedStorage relies on. Existing allocations still apply, but none can change (by Apply or Copy settings) until you install the MixedStorage version made for your game version. In co-op, every player needs the same game version. | | Apply shows "Apply failed" | Report it with your Player.log; the message and log say what went wrong. | | Panel or visuals look wrong | Include a screenshot, resolution/UI scale, building type, and allocations in a report. | @@ -103,9 +106,11 @@ Close Timberborn, then disable MixedStorage in the mod manager or delete its fol ## Compatibility and testing -Built against **Timberborn 1.1.2.4**. Multiplayer integration was developed against **BeaverBuddies Stability Preview for Timberborn 1.1**; other builds are not guaranteed compatible. +Built against **Timberborn 1.1.2.4**. -Players have reported successful use of earlier builds, and the **v0.5.8 layout, including the dev-mode panel, and the v0.5.7 storage visuals have been verified in game**; v1.0.0 and v1.1.x leave both unchanged. The v1.0.0 and v1.1.x changes (Duplicate settings, error messages, loading damaged saves, the Supply mode order, the panel's reason for an unavailable Apply, patch order, and leaving mixed storage with a removed good or through the map editor's undo) have not been played in game yet. Automated allocation, geometry, native API, and optional multiplayer loading checks also pass, but these do not replace live gameplay testing. +The bundled multiplayer integration is built against the **[BeaverBuddies Stability Fork](https://github.com/timbermods/BeaverBuddies-Stability-Fork)** (formerly called Stability Preview), which is the build to use. Every Stability Fork release so far, 1.0.0 through 1.1.12, has everything the integration needs; install the latest. At startup, MixedStorage checks the installed BeaverBuddies for every part it uses. If anything is missing, it turns co-op Apply off rather than risk a desync, and Player.log names what is missing. The original [BeaverBuddies](https://github.com/thomaswp/BeaverBuddies) by thomaswp and contributors, and BeaverBuddies MultiColony (Beta), have not been tested with MixedStorage. + +Players have reported successful use of earlier builds, and the **v0.5.8 layout, including the dev-mode panel, and the v0.5.7 storage visuals have been verified in game**; v1.0.0 and v1.1.x leave both unchanged. The v1.0.0 and v1.1.x changes (Copy settings, error messages, loading damaged saves, the Supply mode order, the panel's reason for an unavailable Apply, patch order, and leaving mixed storage with a removed good or through the map editor's undo) have not been played in game yet. Automated allocation, geometry, native API, and optional multiplayer loading checks also pass, but these do not replace live gameplay testing. See the [changelog](CHANGELOG.md) for version history and [developer notes](docs/DEVELOPMENT.md) for build instructions and technical details. diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index d413607..3dbf9c0 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -2,10 +2,10 @@ ## Build -Use .NET SDK 8 and local Timberborn 1.1.2.4, Harmony, and BeaverBuddies dependencies. From the repository root: +Use .NET SDK 8 and local copies of Timberborn 1.1.2.4, Harmony, and the BeaverBuddies Stability Fork (its `BeaverBuddies.dll`). From the repository root: ```powershell -.\build.ps1 -GameDir 'C:\Games\Timberborn' -HarmonyPath 'C:\Mods\Harmony\0Harmony.dll' -BeaverBuddiesPath 'C:\Mods\BeaverBuddies\version-1.1\BeaverBuddies.dll' +.\build.ps1 -GameDir 'C:\Games\Timberborn' -HarmonyPath 'C:\Mods\Harmony\0Harmony.dll' -BeaverBuddiesPath 'C:\Mods\BeaverBuddies-Stability-Fork\version-1.1\BeaverBuddies.dll' ``` Replace example paths with your installation paths. BeaverBuddies is required to build the bridge, although optional for players. The script builds the base API, compiles the bridge, then rebuilds the main DLL with the bridge embedded. A bootstrap build alone is not a distributable release. Checks run before the unified ZIP is written to `dist/`. The ZIP is made with Windows' `tar.exe`, because `Compress-Archive` in Windows PowerShell 5.1 writes `\` path separators that some macOS and Linux tools extract as flat file names. The staging folder is emptied first, and the ZIP is written under a temporary name and only renamed once its file list is exactly the README, manifest and DLL under `MixedStorage/`. Game and third-party DLLs are referenced locally, not distributed. @@ -18,7 +18,7 @@ The allocation checks need no game files, so GitHub Actions also runs them on ev Percentages use integer units totaling 10,000. Whole-item limits use largest-remainder rounding with ordinal good-ID ordering for ties. Incoming reservations guard against conflicting limit reductions; existing excess stock is preserved. Copy/paste transfers percentages atomically into a draft and rejects incompatible goods. Hauling mode and priority are not copied. In Supply mode a mixed building offers its allocated goods with the most unreserved stock first, ordinal good IDs breaking ties (`AllocationPlan.SupplyCandidates`). Goods without unreserved stock are skipped: the game's search for a building to take one scans the whole district and can only fail, so skipping them never changes which good is carried. Those searches did fill the building's cached road route map, which a few of the game's path queries use only when it is already filled, so co-op players still need the same MixedStorage build. -The game's Duplicate settings tool calls `SingleGoodAllower.DuplicateFrom`. A mixed source applies its allocation to the target through the same checks as Apply. They run before the base game's copy of the single good, so when they reject it that copy is skipped and logged, and the target keeps its allocation or single good whether or not it was mixed. The tool copies each of the building's other settings separately, such as the storage mode (`StockpilePriority`), so those still apply. A source set to store nothing, such as a building just placed, leaves a mixed target's allocation alone (the base game would clear the target's good), so copying the storage mode from a new building does not wipe a tuned allocation, which has no undo. Any other source gives the target that building's single good, as in the base game, so a mixed target first leaves mixed mode (`StorageState.Deactivate`). That is the only way back to the base game's rules. The storage panel stores a single good as a 100% allocation, so such a source is a building given a single good in the goods dropdown of the game's building list (`StockpileDropdownProvider`, which still works on a building without an allocation; `AllowPatch` and `DisallowPatch` ignore it on a mixed one), a warehouse or pile from before the mod, or a storage the mod does not manage, such as the map editor's reserve storage or another mod's storage. Leaving lowers limits too, so it gets Apply's incoming-delivery guard: the base game has room only for the kept good, and none for it while any other good is in stock. A delivery that would no longer fit refuses the copy the same way, before the base game's copy runs. The decision is `AllocationPlan.PlanCopy`, and what the patch then does (leave, run the base game's copy, apply, or log a refusal) is `AllocationPlan.Steps`; the allocation tests cover both. BeaverBuddies replays the tool on every player (`DuplicationEvent`), and the decision reads only simulation state (accepted goods, capacity, stock and reservations), so every player decides the same. Leaving mixed mode announces every formerly allocated good the building accepts, because the game's `InventoryRegistry` caches which buildings have room for each good and only updates a good when it is announced. A good the building does not accept is limited to 0 by the game whatever the allocation says, and a saved allocation can name a good the game no longer knows (after a goods mod is removed), which `InventoryRegistry` would throw on, so neither is announced. During those announcements the visuals are pointed at the representative good, so the pile keeps showing what it holds. Loading also mirrors the save: a mixed building reloaded without an allocation (the map editor's undo) leaves mixed mode the same way, and one reloaded with another allocation announces the goods of both. A building loaded from a save is never mixed before its own load, so a normal save load announces nothing. A redraw queued before a building left mixed mode finds no allocation and puts the native pile back instead of disabling the mixed visuals. +The game's Copy settings tool (called Duplicate settings in the game's code and in these notes) calls `SingleGoodAllower.DuplicateFrom`. A mixed source applies its allocation to the target through the same checks as Apply. They run before the base game's copy of the single good, so when they reject it that copy is skipped and logged, and the target keeps its allocation or single good whether or not it was mixed. The tool copies each of the building's other settings separately, such as the storage mode (`StockpilePriority`), so those still apply. A source set to store nothing, such as a building just placed, leaves a mixed target's allocation alone (the base game would clear the target's good), so copying the storage mode from a new building does not wipe a tuned allocation, which has no undo. Any other source gives the target that building's single good, as in the base game, so a mixed target first leaves mixed mode (`StorageState.Deactivate`). That is the only way back to the base game's rules. The storage panel stores a single good as a 100% allocation, so such a source is a building given a single good in the goods dropdown of the game's building list (`StockpileDropdownProvider`, which still works on a building without an allocation; `AllowPatch` and `DisallowPatch` ignore it on a mixed one), a warehouse or pile from before the mod, or a storage the mod does not manage, such as the map editor's reserve storage or another mod's storage. Leaving lowers limits too, so it gets Apply's incoming-delivery guard: the base game has room only for the kept good, and none for it while any other good is in stock. A delivery that would no longer fit refuses the copy the same way, before the base game's copy runs. The decision is `AllocationPlan.PlanCopy`, and what the patch then does (leave, run the base game's copy, apply, or log a refusal) is `AllocationPlan.Steps`; the allocation tests cover both. BeaverBuddies replays the tool on every player (`DuplicationEvent`), and the decision reads only simulation state (accepted goods, capacity, stock and reservations), so every player decides the same. Leaving mixed mode announces every formerly allocated good the building accepts, because the game's `InventoryRegistry` caches which buildings have room for each good and only updates a good when it is announced. A good the building does not accept is limited to 0 by the game whatever the allocation says, and a saved allocation can name a good the game no longer knows (after a goods mod is removed), which `InventoryRegistry` would throw on, so neither is announced. During those announcements the visuals are pointed at the representative good, so the pile keeps showing what it holds. Loading also mirrors the save: a mixed building reloaded without an allocation (the map editor's undo) leaves mixed mode the same way, and one reloaded with another allocation announces the goods of both. A building loaded from a save is never mixed before its own load, so a normal save load announces nothing. A redraw queued before a building left mixed mode finds no allocation and puts the native pile back instead of disabling the mixed visuals. Every announcement goes through the game's private `SingleGoodAllower.InvokeDisallowedGoodsChangedEvent(string)`, looked up by signature when `ModStarter` starts. If a game update renames or changes it, `ModStarter` logs why and allocations are frozen instead of half-applied: Apply is refused with that reason, and so is every copy that would set or leave an allocation (from a mixed building, or onto one), while copies between single-good buildings work as in the base game. A mixed building stays mixed, and saved allocations keep limiting their buildings. The game still starts: `ModStarter` reads this through `AllocationProblem`, which also reports, rather than throws, a `StorageState` that cannot load at all. Frozen mode depends on the installed game, so every co-op player must run the same game version; BeaverBuddies only warns when they differ, and a player whose game lacks the method would refuse changes the others apply. @@ -32,7 +32,7 @@ Inspection of Timberborn 1.1.2.4's ModCodeStarter showed recursive DLL loading f The main DLL has no BeaverBuddies assembly reference. The bridge is an embedded resource named `MixedStorage.OptionalMultiplayer`, loaded only when BeaverBuddies is present. A scoped assembly resolver finds the already-loaded main mod, bridge, and BeaverBuddies assemblies. Initialization is idempotent. The obsolete separate addon is rejected to prevent conflicting integrations. -The runtime only binds a method's calls into BeaverBuddies when that method first runs, so at startup the bridge looks up every BeaverBuddies member it uses and loads its event type. If the installed BeaverBuddies lacks any of them, the bridge is skipped and Player.log names what is missing, instead of Apply failing silently later. Throwing instead would stop every later mod and the game itself from starting, because the game's mod starter does not catch exceptions. Without the bridge, Apply only changes allocations locally when BeaverBuddies reports no connection (`EventIO.IsNull`); in multiplayer, or when that cannot be read, it is refused with the startup reason, so nobody desyncs. Errors during Apply are shown in the panel's message line and logged in full. +The bridge is compiled against the BeaverBuddies Stability Fork. Every Stability Fork release so far (1.0.0 through 1.1.12) has the members it uses. The runtime only binds a method's calls into BeaverBuddies when that method first runs, so at startup the bridge looks up every BeaverBuddies member it uses and loads its event type (`MultiplayerStarter.CheckCompatibility`). If the installed BeaverBuddies lacks any of them, the bridge is skipped and Player.log names what is missing, instead of Apply failing silently later. Throwing instead would stop every later mod and the game itself from starting, because the game's mod starter does not catch exceptions. Without the bridge, Apply only changes allocations locally when BeaverBuddies reports no connection (`EventIO.IsNull`); in multiplayer, or when that cannot be read, it is refused with the startup reason, so nobody desyncs. Errors during Apply are shown in the panel's message line and logged in full. The bridge sends allocation changes through BeaverBuddies replay events. Its assembly identity differs from the former addon, so historical replay recordings may require the old mod versions. Allocation save keys remain unchanged. diff --git a/site/404.html b/site/404.html index 836649f..c7afa3c 100644 --- a/site/404.html +++ b/site/404.html @@ -51,7 +51,7 @@
No. Percentages only reserve space. They don't create goods or instantly fill the building. Normal hauling rules decide what arrives and when.
Folktails: small, medium, and large warehouses; small, large, and underground piles. Iron Teeth: small, medium, and large warehouses; small industrial and large industrial piles.
Buildings keep their normal accepted goods. Tanks and map-editor reserve storage aren't included. See the supported buildings table.
It's built against Timberborn 1.1.2.4. Other versions aren't guaranteed to work.
Newer builds are published as pre-releases first, and marked as the latest release once they've been checked in game. Automated checks cover the allocation math, geometry, native game API calls, and optional multiplayer loading, but they don't replace live gameplay testing.
Not sure which to download? The download button on this site offers the release marked Latest on GitHub (or, while there is none, the newest pre-release). To try a newer pre-release, choose it on the releases page.
No. Single-player doesn't need it. You only need BeaverBuddies for multiplayer.
Some builds have been published as pre-releases for testing before a full release. Automated checks cover the allocation math, geometry, native game API calls, and optional multiplayer loading, but they don't replace live gameplay testing.
Not sure which to download? The download button on this site offers the release marked Latest on GitHub (or, while there is none, the newest pre-release). To try a newer pre-release, choose it on the releases page.
No. Single-player doesn't need it. You only need BeaverBuddies for multiplayer, and the build to use is the BeaverBuddies Stability Fork.
Buildings you haven't given an allocation keep working with the game's normal single-good setting, and the editor starts from that setting. Allocations you apply are saved with the building in your save file, and existing MixedStorage allocations are preserved when you upgrade.
Close Timberborn, then disable MixedStorage in the mod manager or delete its folder. In saves that used it, each mixed building goes back to storing only its largest allocated good. As when you switch a warehouse to a different good in the base game, haulers empty out the other goods, and may move some of the kept good too, before the building fills with it again.
No. It's an independent community mod and isn't affiliated with Mechanistry.
No. It's an unofficial community mod and isn't affiliated with or endorsed by Mechanistry.
So the building's whole capacity is allocated. Apply stays unavailable until the total is exactly 100%, and the line under the list tells you how much is remaining or over.
A good at 0% is disabled in that building. Leave goods you don't want at 0%.
Two decimal places, so down to 0.01%.
Max sets that good to 100% and every other good to 0% in your draft. Click Apply 100% to confirm. That's also how you give one good the whole building again.
To turn a mixed building back into a normal single-good one, use the game's Duplicate settings tool from a normal building that stores a good this one accepts. To make such a building, pick a good for a building without an allocation, such as one just built, in the goods dropdown of the game's building list. If a delivery already on its way would no longer fit, the building stays mixed and Player.log says why; copy again once it has arrived. Once it is a normal building, clearing its good in that dropdown makes it store nothing. Copying from a building set to store nothing leaves the allocation as it is.
Max sets that good to 100% and every other good to 0% in your draft. Click Apply 100% to confirm. That's also how you give one good the whole building again.
To turn a mixed building back into a normal single-good one, use the game's Copy settings tool from a normal building that stores a good this one accepts. To make such a building, pick a good for a building without an allocation, such as one just built, in the goods dropdown of the game's building list. If a delivery already on its way would no longer fit, the building stays mixed and Player.log says why; copy again once it has arrived. Once it is a normal building, clearing its good in that dropdown makes it store nothing. Copying from a building set to store nothing leaves the allocation as it is.
No. Edits are drafts until you click Apply. Revert discards them, and Clear all clears the draft. Current allocations stay active until you apply a valid replacement.
Yes. Click Copy allocations, select another building, click Paste allocations, then Apply. Item limits are recalculated for the destination's capacity, and the destination must accept every copied good with a nonzero percentage. Stock, hauling mode, and hauler priority aren't copied, and the copied settings last only for the current game session.
The game's own Duplicate settings tool works too and applies the percentages straight away. If the target doesn't accept all of those goods, or an incoming delivery conflicts, the target keeps its current goods and percentages and Player.log says why. The tool's other settings, such as the storage mode, are still copied.
Yes. Click Copy allocations, select another building, click Paste allocations, then Apply. Item limits are recalculated for the destination's capacity, and the destination must accept every copied good with a nonzero percentage. Stock, hauling mode, and hauler priority aren't copied, and the copied settings are kept only until you close the game.
The game's own Copy settings tool works too and applies the percentages straight away. If the target doesn't accept all of those goods, or an incoming delivery conflicts, the target keeps its current goods and percentages and Player.log says why. The tool's other settings, such as the storage mode, are still copied.
Yes. Those continue to use the game's own hauling system.
No. It always shows the applied settings and actual stock, including incoming and excess goods, regardless of search or filters.
Whole visible cells can't always match a percentage exactly. Tiny shares may have no visible cell, some models may look narrower, and excess goods may not be fully represented. Use the summary for exact amounts.
Banners are single-good by design and show one representative good. If a model can't be divided, MixedStorage falls back to the original visuals.
Yes, through BeaverBuddies. Install the same MixedStorage version on every computer, alongside matching BeaverBuddies versions and Harmony. Applied allocations synchronize through BeaverBuddies, and Apply may briefly show a queued message until the next simulation tick.
Yes, through the BeaverBuddies Stability Fork. Every player installs the same version of MixedStorage (and the same Stability Fork build) and runs the same game version. Applied allocations synchronize through BeaverBuddies, and Apply may briefly show a queued message until the next simulation tick.
No. The integration is bundled and switches on automatically when BeaverBuddies is present. If you still have the old MixedStorage-BeaverBuddies add-on, remove or disable it.
Old recordings may reference the former add-on and may need the original mod versions. The integration was developed against BeaverBuddies Stability Preview for Timberborn 1.1, and other builds aren't guaranteed to be compatible.
Old recordings may reference the former add-on and may need the original mod versions.
The integration is built against the Stability Fork (formerly called Stability Preview), and every Stability Fork release so far, 1.0.0 through 1.1.12, has everything it needs. Install the latest. At startup MixedStorage checks the installed BeaverBuddies, and if something is missing it turns multiplayer Apply off and names what's missing in Player.log. The original BeaverBuddies and BeaverBuddies MultiColony (Beta) haven't been tested with MixedStorage.
Other mods haven't been specifically tested. If you run into a conflict, open an issue and list your enabled mods.
No. The mod's own text is in English. Good names follow your game language.
Give any good the building normally accepts a share of its capacity, down to 0.01%. Shares must total exactly 100%, so every slot has a purpose.
Summary cards show each good's icon, stored / limit count, allocated percentage, and a fill bar, including incoming deliveries and excess stock.
Search the goods list, show only allocated goods, click Max to give one good everything, or copy an allocation and paste it into another compatible building. The game's own Duplicate settings tool copies allocations too. Edits stay drafts until you Apply.
Search the goods list, show only allocated goods, click Max to give one good everything, or copy an allocation and paste it into another compatible building. The game's own Copy settings tool copies allocations too. Edits stay drafts until you Apply.
Lowering a limit never deletes goods. Extras are flagged as excess and leave the normal way, and deliveries already on their way are counted before a change is accepted.
Warehouses and piles show the mix using the game's own goods models, divided by allocation. The panel always has the exact numbers.
BeaverBuddies support is built in and switches on automatically when BeaverBuddies is installed. Applied allocations synchronize between players.
Co-op support for the BeaverBuddies Stability Fork is built in and switches on automatically when it is installed. Applied allocations synchronize between players.
Uses the game's own panel frames, buttons, input fields, checkbox, and scrollbar.
Try it
This is a working copy of the Storage Allocation panel, styled like the game. Edit percentages, then Apply, just as you would in Timberborn. It uses the mod's own rounding and messages.
+This is a working copy of the Storage Allocation panel, styled like the game. Edit percentages, then Apply, as you would in Timberborn. It uses the mod's own rounding and messages.
Built against Timberborn 1.1.2.4.
Harmony 2.4.1 or newer, enabled alongside MixedStorage.
BeaverBuddies for multiplayer. Support is bundled; there's no separate add-on.
The BeaverBuddies Stability Fork for multiplayer. Support is bundled; there's no separate add-on.
MixedStorage 1.1.1 is the current release. Its panel layout and storage visuals are unchanged from v0.5.8, which was checked in game. The changes since then (the game's Duplicate settings tool, clearer error messages, loading damaged saves, the Supply mode order, the reason shown when Apply is unavailable, patch order, and in 1.1.1 leaving mixed storage safely) haven't been played in game yet. Players have reported successful use of earlier builds, and automated checks cover the allocation math, mesh geometry, native game API calls, and optional multiplayer loading. Those checks don't replace live gameplay testing, particularly for multiplayer.
+MixedStorage 1.1.1 is the current release. Its panel layout and storage visuals are unchanged from v0.5.8, which was checked in game. The changes since then (the game's Copy settings tool, clearer error messages, loading damaged saves, the Supply mode order, the reason shown when Apply is unavailable, patch order, and in 1.1.1 leaving mixed storage safely) haven't been played in game yet. Players have reported successful use of earlier builds, and automated checks cover the allocation math, mesh geometry, native game API calls, and optional multiplayer loading. Those checks don't replace live gameplay testing, particularly for multiplayer.
Found something odd? Check the troubleshooting guide or open an issue.
The version MixedStorage is built and tested against. Other versions aren't guaranteed.
A required mod. Get it from the Steam Workshop if you don't have it.
Only for multiplayer. Single-player doesn't need it.
Only for multiplayer. Single-player doesn't need it.
Percentages allow two decimal places. Copy and paste adjusts item limits to the destination's capacity, and the destination must accept every copied good with a nonzero percentage. Stock, hauling mode, and hauler priority are not copied. Copied settings last only for the current game session.
+Percentages allow two decimal places. Copy and paste adjusts item limits to the destination's capacity, and the destination must accept every copied good with a nonzero percentage. Stock, hauling mode, and hauler priority are not copied. Copied settings are kept until you close the game.
The multiplayer integration was developed against BeaverBuddies Stability Preview for Timberborn 1.1. Other builds aren't guaranteed to be compatible.
+The integration is built against the Stability Fork (formerly called Stability Preview), and every Stability Fork release so far, 1.0.0 through 1.1.12, has everything it needs. Install the latest. The original BeaverBuddies and BeaverBuddies MultiColony (Beta) haven't been tested with MixedStorage.
MixedStorage requires Harmony 2.4.1 or newer, and declares it as a required mod.
Install Harmony from the Steam Workshop, enable both Harmony and MixedStorage in the mod manager, and restart when prompted.
Since v0.5.0, multiplayer support is built into MixedStorage. The old separate add-on conflicts with it, and MixedStorage stops with this message: “MixedStorage now includes multiplayer support. Remove or disable the old MixedStorage-BeaverBuddies addon and restart Timberborn.”
Remove or disable MixedStorage-BeaverBuddies, then fully restart Timberborn. Keep BeaverBuddies itself if you play multiplayer.
BeaverBuddies is loaded, but the MixedStorage file doesn't contain its embedded multiplayer integration. That happens with a partial or incorrectly built copy. The message reads: “MixedStorage's bundled multiplayer integration is missing. Reinstall the complete release.”
Close the game, delete the existing MixedStorage folder from your Mods folder, and install the ZIP from the official release again.
MixedStorage's multiplayer support is built for a specific BeaverBuddies build. If the installed BeaverBuddies lacks something it needs, MixedStorage switches its multiplayer support off rather than let players' games drift out of sync, and writes the reason to Player.log at startup. The game still starts, and single-player allocations usually still work.
[MixedStorage] to see what's missing, and include that line if you report it.MixedStorage's multiplayer support is built against the BeaverBuddies Stability Fork. If the installed BeaverBuddies lacks something it needs, MixedStorage switches its multiplayer support off rather than let players' games drift out of sync, and writes the reason to Player.log at startup. The game still starts, and single-player allocations usually still work.
[MixedStorage] to see what's missing, and include that line if you report it.Something unexpected went wrong while applying the allocation. The panel shows a short reason, and Player.log has the full details.
Report it with the Player.log lines that start with [MixedStorage] and the steps that led to it.
[MixedStorage] Ignoring an unreadable saved allocation.Set the percentages again and click Apply 100%. If a save keeps losing allocations, report it with that log line.
The game's Duplicate settings tool applies a mixed building's percentages to the target straight away, using the same checks as Apply. If the target doesn't accept every allocated good, or an incoming delivery conflicts with a lower limit, the allocation isn't copied and the target keeps its current goods and percentages. The tool's other settings, such as the storage mode, are still copied. Copying from a normal building, which turns a mixed building back into a normal one, is skipped the same way when a delivery already on its way would no longer fit. Player.log has a line starting [MixedStorage] Copied allocations were not applied with the reason.
Copy to a building that accepts the same goods, or wait for incoming deliveries to finish and copy again. For a building that accepts different goods, set its percentages in its own Storage Allocation panel.
[MixedStorage] Ignoring an unreadable saved allocation.Set the percentages again and click Apply 100%. If a save keeps losing allocations, report it with that log line.
The game's Copy settings tool applies a mixed building's percentages to the target straight away, using the same checks as Apply. If the target doesn't accept every allocated good, or an incoming delivery conflicts with a lower limit, the allocation isn't copied and the target keeps its current goods and percentages. The tool's other settings, such as the storage mode, are still copied. Copying from a normal building, which turns a mixed building back into a normal one, is skipped the same way when a delivery already on its way would no longer fit. Player.log has a line starting [MixedStorage] Copied allocations were not applied with the reason.
Copy to a building that accepts the same goods, or wait for incoming deliveries to finish and copy again. For a building that accepts different goods, set its percentages in its own Storage Allocation panel.
Only the supported warehouses and piles get the panel. Tanks, map-editor reserve storage, and other storage buildings don't. It's also missing if the mod isn't enabled or failed to load.
Player.log for [MixedStorage]. A working install logs a “loaded” line at startup, and a failure shows an error there.Apply only unlocks when the draft is valid. The line under the goods list tells you which rule you're breaking:
Fix the box or total the message points at. Max on one good gives you a valid draft instantly, and Revert restores the current settings. If a multiplayer change is queued, wait a moment for the next simulation tick.
Apply only unlocks when the draft is valid. The line under the goods list tells you which rule you're breaking:
Fix the box or total the message points at. Max on one good gives you a valid draft instantly, and Revert restores the current settings. If a multiplayer change is queued, wait a moment for the next simulation tick.
Haulers are already carrying goods to this building, and the new limit would be lower than what's stored plus what's on its way. Incoming deliveries count toward limits.
Wait for the deliveries to finish, then click Apply again.
Copy from a valid building, select a compatible destination, click Paste, and then click Apply to confirm. Stock, hauling mode, and hauler priority are never copied.
Copy from a valid building, select a compatible destination, click Paste, and then click Apply to confirm. Stock, hauling mode, and hauler priority are never copied.
Percentages become whole-item limits, and a tiny share of a small building can round down to zero items. The panel warns you: “N allocated good(s) round to 0 items. Increase their shares or use larger storage.” The limits still add up to the building's full capacity.
Increase that good's share, or use a larger storage building. The demo on the home page shows how the rounding works.
You lowered a limit or changed the split while goods were already stored. MixedStorage never deletes goods; it flags the extras as excess in the summary.
Nothing is broken. The extra goods stay until they're used or hauled out through the game's normal hauling rules.
Allocations reserve space. They don't create goods or move them. Normal hauling rules still decide what arrives and when.
Check the building's storage mode (Accept, Obtain, Supply, or Empty), hauler priority, and that the goods actually exist in the same district. Then let your haulers work.
The in-world split is approximate on purpose. Whole visible cells can't always match a percentage exactly. Tiny shares may have no visible cell, some models look narrower, banners show one representative good, and excess goods may not be fully represented.
Use the summary cards for exact amounts. If a model can't be divided, MixedStorage falls back to the original visuals. If something looks truly broken, report it with a screenshot.
In multiplayer, applied allocations synchronize through BeaverBuddies, so Apply may briefly show a queued message until the next simulation tick. That's normal. Different settings between players usually mean mismatched installs.
In multiplayer, applied allocations synchronize through BeaverBuddies, so Apply may briefly show a queued message until the next simulation tick. That's normal. Different settings between players usually mean mismatched installs.
The editor is sized to your window and shares the entity window with the game's own panels. Older versions could push the Construction site panel off the bottom of the screen on unfinished buildings.
Update to the newest release. v0.5.5 fixed the cut-off Construction site panel, and v0.5.8 keeps the dev-mode panel on screen too. If it still looks wrong, report it with a screenshot, your resolution and UI scale, the building type, and its allocations.