Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Stackmaster
Turn a messy Viking inventory into a tidy, adventure-ready loadout.
| Date uploaded | a day ago |
| Version | 1.4.5 |
| Download link | JStack424-Stackmaster-1.4.5.zip |
| Downloads | 48 |
| Dependency string | JStack424-Stackmaster-1.4.5 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2350README
Stackmaster
Turn a messy Viking inventory into a tidy, adventure-ready loadout.
Stackmaster by JStack424 brings inventory sorting, Quick Stack, and building and crafting from nearby storage into one Valheim workflow.
Stackmaster 1.4.5: Player gravestones are never sorted. Opening your own tombstone leaves its contents exactly as you died with them: no auto-sort on open or close, no post-deposit sort, and no auto-sort toggle on the gravestone itself. Ordinary chests are unchanged.
About this project
I'm a Valheim-loving software engineer with an interest in mild game design. I built Stackmaster with the assistance of AI as a personal quality-of-life project: smooth out the frustrating bits, preserve the developers' intended experience, and never make progression feel cheesed. I didn't set out to build a widely used mod, but it's been lovely to see people enjoying it. If you've been using Stackmaster and enjoy it, please share any issues or requests through GitHub Issues. I keep playing, testing, and looking for further improvements, so I'll take thoughtful ideas into account.
Vanilla-plus by design
Stackmaster removes repetitive container management without adding free resources, carrying capacity, powers, cheats, or progression shortcuts. Quick Stack stays deliberate: nothing leaves your backpack just because you walk near a base, and every build or craft still consumes real materials from your inventory or accessible storage.
TL;DR
- Automatically sort your backpack and opted-in vanilla chests.
- Use Quick Stack to deposit matching items and replenish protected targets with one deliberate shortcut.
- Keep durable per-player, per-world material reservations from valid Quick Grab Materials clicks, even away from supplies.
- Build and craft using materials from accessible chests.
- Pull fuel for supported devices with
Left Alt + E, without loading or operating the device. - Use one valid crafting station throughout the same connected workbench home when the option is enabled.
Controls
Inventory
| Control | Behavior |
|---|---|
| Open inventory | Sort movable player slots when player Auto-sort is enabled. |
Left Alt + left-click an unprotected item |
Protect it immediately, with no restocking target or dialog. |
Left Alt + left-click any protected item |
Fully unprotect it and clear its restocking target. |
Left Alt + right-click a stackable item |
Open the restocking quantity dialog. Confirming protects the item and adds or edits its target; canceling preserves the previous state. |
Left Alt + right-click a non-stackable item |
Leave its protection unchanged. Non-stackable items cannot have restocking targets. |
| Ordinary inventory clicks | Keep Valheim's normal left- and right-click behavior. |
Chests
| Control | Behavior |
|---|---|
| Open or close a vanilla chest | Sort that chest when its Auto-sort chest setting is enabled. |
Left Alt + E while targeting a vanilla container |
Run Quick Stack: deposit matching items and replenish protected targets. |
Left Alt + E while a vanilla chest is open |
Run Quick Stack using that chest as the target without closing it. |
Left Alt + E while targeting a supported fuel-consuming piece |
Pull one prioritized fuel type from eligible chests in the same connected workbench home, up to one full carried stack. The press does not operate or load the piece. |
Build menu
| Control | Behavior |
|---|---|
Left Alt + click a build piece |
Add one persistent reservation, then grab one complete material set when safely available, without closing the menu. Pieces whose localized name contains Stack or Pile are material-only: they still gather the complete set but never create a reservation. |
The modifier follows the configured Quick Stack shortcut, which uses Left Alt + E by default. While the build menu is open, its keyboard/mouse action list shows Quick Grab Materials with Left Alt + Click by default and updates that shortcut text when the configured modifiers change. Version 1.2.0 does not add a controller-specific action.
Detailed mechanics
- Inventory sorting
- Sorts movable backpack slots alphabetically when the inventory opens; the quick bar, equipped items, and protected stacks stay fixed.
- Adds an Auto-sort chest checkbox to supported vanilla chests and remembers each choice locally per player, world, and chest.
- Sorts enabled chests on open, close, and once after a successful Quick Stack deposit.
- Keeps protected quantities and reservation-backed materials at the front of the movable region without changing fixed slots.
- Clears protection only after the whole tracked stack is manually transferred or dropped; partial moves preserve the remainder.
- One consistent home and storage scope
- Inside a workbench build zone, follows overlapping canonical vanilla Workbench zones as one connected home mesh.
- Includes loaded supported chests in that exact mesh within 100 metres of the player; a mesh chest farther away contributes no resources, and nearby chests outside the mesh are excluded.
- Outside every workbench mesh, uses the configurable player-centered radius (20 metres by default) for chest-powered features.
- Applies the same scope to Quick Stack, building, crafting, Quick Grab Materials, and fuel Quick Grab.
- Never uses other crafting stations as graph links between separate workbench homes.
- Quick Stack and protected targets
Left Alt + Eon a vanilla chest deposits matching stackable items and replenishes protected targets and reserved build materials.- Fills matching stacks first, prioritizes the targeted chest, and can reuse a remembered exact-item destination when it is still valid.
- Keeps unmatched items, overflow, non-stackables, protected quantities, and reserved quantities safely in the backpack.
- Shows exact deposited, replenished, and left-behind totals, with quantity-specific warnings for eligible items that could not move.
- Sorts each successfully touched destination at most once, and only when that chest has Auto-sort enabled.
- Uses safe ownership, revision, capacity, conservation, persistence, and rollback checks before shared inventory changes are accepted.
- Fuel Quick Grab
Left Alt + Eon a recognized fuel-consuming piece pulls fuel from eligible chests in the same connected workbench home only.- A matching
[Alt + E] Get <fuel>hint appears below the device's normal interaction text and follows the first available device-priority fuel. - Supports refillable fireplaces, smelters and the Charcoal Kiln, fuel-enabled cooking stations, the Shield Generator, and the Battering Ram.
- Chooses one fuel type per press by device priority, uses the first type with any available stock, and never mixes fuel types.
- Pulls partial available stock when needed, but never exceeds the selected item's normal maximum stack size or backpack capacity.
- Does not use fuel already carried by the player as source stock and does not fall back to the outside-home radius.
- A recognized fuel chord suppresses the same press's normal use/load interaction; ordinary
E, invalid targets, and container Quick Stack routing remain unchanged.
- Storage-aware build, craft, and stations
- Independently controls chest-backed building, chest-backed crafting, storage-total display, and whole-home crafting-station coverage.
- Uses player materials first, then the minimum eligible chest set needed for the complete action, without duplicate costs or whole-stack overconsumption.
- Supports rapid consecutive chest-backed crafts without requiring every other click; each craft owns an isolated reservation and exact cleanup cannot invalidate the next one.
- Shows exact
required / availabletotals for building, crafting, upgrades, quality, and multi-craft quantities when display is enabled. - When whole-home stations are enabled, one loaded valid station inside the connected Workbench mesh satisfies that exact station requirement throughout the same mesh.
- The same exact rule applies to the Hammer station display, building, repairing, and dismantling, so an available same-home station is never shown as
None. - Vanilla in-range station access is always checked first; outside a valid mesh, with the option off, or for mismatched/unloaded stations, vanilla behavior is unchanged.
- Station coverage changes eligibility only: it does not enlarge station radii, bridge homes, bypass DLC/free-build rules, or provide materials.
- Quick Grab Materials and reservations
- Hold the configured modifier and click a build piece to save one reservation and gather one complete material set when safely available.
- Repeated clicks add counts even away from supplies; localized
StackorPilematerial pieces gather only and never create reservations. - Material transfer is all-or-nothing, capacity-checked, and largest-stock-first; a shortage keeps an ordinary reservation but moves nothing.
- Reservation cards appear beside the inventory and above the active Hammer menu, select the exact piece, and provide separate one-count release controls.
- Each genuinely successful paid local placement removes one exact reservation; selection, failure, cancel, free-build, repair, dismantle, and other players do not.
- Quick Stack retains the exact additive reserved quantities, and orange inventory markers show only the reservation-served share.
- Safety
- Reads requirement totals without claiming ownership and requests ownership only for the exact chests required by an action.
- Rechecks scope, access, use state, stable identity, ownership, revisions, stack identity, quantities, and persisted inventory before accepting mutation.
- Rolls back completed steps if a later step fails and verifies global item conservation before crediting the player.
- Lets a valid readable but temporarily ownerless chest wait up to three seconds for Valheim's exact local assignment, then asks the player to retry the ordinary action; a timeout consumes nothing.
- Cancels with a specific diagnostic when a required chest is busy, stale, denied, unloaded, out of scope, beyond the supported 100-metre resource distance, unreadable, or changed.
- Releases exact acquired ownership on completion, cancellation, disable, disconnect, logout, unload, shutdown, and exceptions.
- Disables item-changing behavior if a required Valheim runtime contract is missing, changed, or ambiguous.
Configuration
Stackmaster has exactly seven settings:
- Auto-sort enabled — on by default and also controlled by the checkbox below the player inventory. Chest auto-sort is controlled separately in each chest UI and is not a seventh global setting.
- Nearby-storage radius — 20 metres by default; configurable from 1 to 50 metres and used by all chest-powered features only while the player is outside every valid connected workbench mesh.
- Quick Stack keybind — Left Alt + E by default. Existing custom shortcuts are migrated automatically from the legacy setting name. Its modifier keys also activate protected-item left/right clicks in the player inventory and Quick Grab Materials left-clicks in the build menu; the main E key is not required for either click action.
- Allow building from storage — on by default and independently controls building eligibility and consumption from storage.
- Enable whole-home crafting stations — on by default; allows an exact required build-gating station anywhere inside the same connected canonical Workbench mesh to cover that home without changing vanilla station radii.
- Allow crafting from storage — on by default and independently controls crafting/upgrade eligibility and consumption from storage.
- Show storage amounts in craft and build menus — on by default; independently shows player-plus-eligible-storage totals in both requirement UIs without granting permission to consume those stored items.
All seven global settings are available through the normal r2modman/BepInEx configuration editor after the first launch. Existing building/crafting opt-outs migrate automatically to the renamed permission settings, so an explicit false remains off and the obsolete keys disappear after launch. Per-chest auto-sort choices are local-only preferences scoped to the current player, world, and stable chest identity; a missing or unreadable identity safely skips chest sorting.
Installation
Install with r2modman, Thunderstore Mod Manager, or another Thunderstore-compatible manager. BepInExPack Valheim is installed as a separate dependency; Stackmaster does not bundle BepInEx or Harmony.
For a manual install, install denikson-BepInExPack_Valheim 5.4.2350 or newer, then place Stackmaster.dll in BepInEx/plugins/Stackmaster/.
Compatibility and support
Stackmaster 1.4.5: Automated tests cover the exact startup contracts, the 100-metre mesh resource limit and its boundary, too-far classification for building, crafting, and both Quick Grab paths, the gravestone sort exclusion, transaction safety, and the existing gameplay suite.
Stackmaster 1.4.5 is compiled from a documented Valheim/Unity/BepInEx/Harmony reference bundle, but exact version strings, file hashes, and assembly MVIDs are provenance and diagnostics—not a runtime allowlist. It supports vanilla containers only. On startup, Stackmaster checks the complete API surface it relies on, including exact overload parameters and every Harmony target, before installing any patch. A missing, changed, or ambiguous contract disables the mod before item-changing hooks are installed; a patching error disables the runtime and removes all Stackmaster patches.
Inside a base, Stackmaster discovers the complete connected union of loaded canonical vanilla workbench build zones using each station's current game-reported build range. Outside a base, the configurable player-centered radius is the fallback. Nearby build/craft totals read stable serialized snapshots from accessible vanilla containers in that active scope without claiming them, including containers owned by another peer. Mutation remains stricter: after player-first allocation, Stackmaster requests ownership only for the minimum required chests, revalidates their owner/data revisions and exact contents, reserves them for the transaction, and cancels before mutation if any required chest is busy, denied, stale, or unavailable. Valheim’s owner-authorized request is asynchronous. Remote-owned building actions use the existing prepared-ownership retry window; chest-backed crafting and Quick Grab Materials clicks instead wait in their client-side coroutines for the exact required ownership and proceed from the original click only after a fresh matching plan and reservations are ready. After a successful chest-backed building placement, only the exact acquired chests actually used remain locally owned on a 30-second sliding lease, renewed by each subsequent successful build use. Crafting and quick-grab withdrawals release their reservations and exact acquired ownership immediately and never create or renew that lease. A remote player's manual open request immediately invalidates the build lease and continues through vanilla's normal ownership transfer. Every cancellation, failure, rollback, disable, disconnect, logout, unload, shutdown, exception, or unused acquisition releases only ownership Stackmaster can still prove it acquired, with identity, session, owner-revision, and current-owner guards. If exact local reservation cleanup cannot finish immediately, Stackmaster keeps the matching ownership cleanup record and retries the reservation first; it never clears a later or unrelated owner's in-use state.
Plugin GUID: com.jstack424.stackmaster
Source, issue tracker, and MIT license: https://github.com/JStack424/Stackmaster
Development
The repository keeps pure inventory policy separate from Valheim/Unity adapters. The deployable plugin targets .NET Framework 4.8, pure planners target .NET Standard 2.0, and automated tests target .NET 8.
Private compile-time references must come from your own Valheim/BepInEx installation and remain under the ignored lib/local/StackmasterReferences/ directory (or an ignored path override). They are never committed or packaged. On Windows, scripts/Inspect-StackmasterEnvironment.ps1 performs a read-only environment inventory, and scripts/Collect-StackmasterReferences.ps1 copies only the required compile-time assemblies from paths you explicitly provide.
./scripts/build.sh
The build restores locked dependencies, builds Release, runs the pure-domain suite, runs repository safety checks, and rejects copied runtime/game assemblies in plugin output. See the approved behavior contract and implementation/test plan for the full design and release gates.
CHANGELOG
Changelog
1.4.4
Fuel Quick Grab, connected-home crafting-station coverage, more reliable distant chest-backed actions, and a supported resource-distance limit for connected Workbench homes.
- Adds
Left Alt + Efuel Quick Grab for refillable fireplaces, smelters and the Charcoal Kiln, fuel-enabled cooking stations, the Shield Generator, and the Battering Ram. It selects one device-prioritized fuel type per press, uses partial stock when necessary, never mixes types, and caps the withdrawal at the item's canonical maximum stack size and backpack capacity. - Draws fuel only from eligible vanilla chests in the player's connected canonical Workbench mesh; player-carried stock and outside-home radius fallback are not fuel sources. A localized
[Alt + E] Get <fuel>line appears beneath vanilla hover text for recognized targets, and a recognized fuel press never also operates or loads the device. - Adds a default-on Enable whole-home crafting stations option. One loaded valid station inside the connected Workbench mesh satisfies that exact build-station requirement throughout the same mesh, including the Hammer requirement display and ordinary deconstruction. Non-Workbench stations never enlarge ranges or link separate homes, and vanilla in-range access is always checked first.
- Improves chest-backed reliability: a valid readable chest with no current owner now waits up to three seconds for Valheim's exact local assignment instead of failing the click, with precise no-consumption diagnostics when assignment, routing, or identity checks fail. Rapid consecutive chest-backed crafts stay reliable, and reservation rows are recreated safely after logout, world changes, and reconnects.
- Adds the supported resource-distance limit, resolving the distant one-click failures from issue #3 by defining the range Stackmaster supports instead of racing Valheim's active-area ownership sweep. Inside a connected Workbench mesh, a chest more than 100 metres from the player (straight-line) contributes no resources: it is excluded from build/craft totals, withdrawal planning, Quick Grab Materials, and fuel Quick Grab. Player inventory and the separate outside-home fallback radius are unchanged.
- If an attempted build, craft, or grab could be satisfied only by stock beyond the limit, the action refuses immediately — no ownership wait — with "You're too far away from the required resources (over 100 m)" and consumes nothing. Mixed near/far stock counts only the near stock. The limit is re-measured from the live player and chest positions at every transaction validation and reservation check.
- Ownership behavior inside the limit is unchanged: no ownership claiming was added, and all identity, revision, reservation, rollback, and conservation checks are preserved. Bounded, read-only, transition-only diagnostics were added for the distance behavior and write only to the local log.
1.3.5
Durable Quick Grab build reservations, reservation-aware Quick Stack behavior, and live-verified conservation and Hammer-menu fixes. Joe live-tested and approved this release.
- Adds durable per-player, per-world build reservations from valid Quick Grab Materials clicks, including reservation-only clicks when a complete material set is not currently available. Every successful paid placement consumes exactly one reservation for the exact piece.
- Shows one shared reservation card model beside the inventory and directly above the active Hammer menu. Card bodies select the exact piece through vanilla routing; separate
-/Xcontrols release one count without moving materials or selecting the card underneath. - Keeps exact additive reservation requirements during Quick Stack, assigns reserved materials first among movable stacks, displays the reserved share in orange, and sorts each touched destination chest once when that chest's own auto-sort option is enabled.
- Ignores non-stackable carried items during Quick Stack deposit routing and failed-deposit warnings. Full exact material sets for
StackandPilebuild pieces still gather normally; shortages stay all-or-nothing and create no reservation. - Fixes the shared sufficient-material Quick Grab path for every ordinary and
Stack/Pilerecipe. Detached ZDO snapshots remain read-only planning inputs; after ownership and refresh, the transaction rebuilds and identity-checks the exact plan against each authoritative liveContainer.GetInventory()before reserving or mutating anything. - Fails closed before and during every move unless the runtime source is reference-identical to that live container inventory. The player cannot be credited from a detached planning snapshot.
- Requires every live source chest to lose its exact planned quantity, the player to gain the same exact quantity, and the combined authoritative total to remain unchanged across one or many chests, ingredients, source stacks, and destination slots.
- Requires each source mutation to advance its owned ZDO data revision and verifies that a freshly decoded serialized inventory exactly matches the live chest before the transaction can commit.
- Rejects capacity, ownership, reservation, and timeout failures before mutation whenever possible. Once movement begins, full live-inventory snapshots for player and sources restore partial movement, exceptions, or any conservation/persistence mismatch; Stackmaster disables safely if exact restoration cannot be proven.
- Leaves the insufficient-material path indivisible and mutation-free: an incomplete set exposes no withdrawal steps and cannot partially debit, credit, or reserve a material-only
Stack/Pilepiece. - Anchors the optional Hammer reservation row to BuildUi's actual
m_tabContainer(Categories / Materials / Recent / Favorites) instead of the full-screen controller rect, while keeping card selection on Valheim's exact ordinaryOnSelectPiecepath so the exact piece is selected and the menu closes normally. - Preserves 1.3.4's material-only Stack/Pile policy and all approved 1.3.3/1.3.4 reservation, sorting, allocation, placement-decrement, and UI interaction behavior.
1.2.0
A clearer, safer Quick Stack update, live-tested before release.
- Renamed the deposit-and-replenish action to Quick Stack and its setting to Quick Stack keybind while preserving existing custom shortcuts.
- Quick Stack remembers the last directly observed chest for each exact item type, even after that chest reaches zero stock. The chest is freshly checked before use; unavailable, inaccessible, busy, or full destinations leave the item safely carried.
- Genuine failed or partial deposits mark only the surviving eligible quantity with a red border and
!quantity. Quick-bar, equipped, protection-only, and target-retained quantities are excluded. The warning follows the surviving item through sorting and clears when that item is hovered once, the inventory closes, or another Quick Stack begins. - The result summary is now a compact three-line bullet list for deposited, replenished, and left-behind quantities, including zeros.
- Kept the straightforward requirement-display behavior from before the unsuccessful optimization experiment. This release makes no performance-improvement claim.
1.1.5
Public release of the live-tested, fail-closed repair for chest-backed crafting transactions.
- Fixed remote crafting so prepared withdrawals are recaptured from each selected owned
Container.GetInventory()rather than from detached ZDO inventory snapshots used only for read-only discovery and planning. - The prepared transaction now requires the live owned-inventory plan to match the original exact plan, reserves and revalidates only selected chests, and rejects any detached inventory identity before removal.
- Centralized the exact withdrawal journal: every observed player or chest mutation is recorded once, exact quantities are required, incomplete debits cannot commit, and cancellation or failure rolls receipts back in reverse order.
- Preserved vanilla charge suppression after Stackmaster's exact debit, so successful remote crafts pay once—not zero times or twice. Storage-disabled and NoCost modes remain vanilla.
- Added regressions for mixed player/chest debit, selected-chest-only mutation, duplicate-charge prevention, incomplete-debit rejection, and exact cancellation/failure rollback.
- Strengthened the pinned Valheim release gate to verify that successful-output crafting still reaches the exact string-based
Inventory.RemoveItemoverload andPlayer.ConsumeResources, after the output-add call shape Stackmaster's transaction depends on. - Live-tested the corrected chest-backed crafting debit in Valheim before promoting this exact gameplay candidate to production.
1.1.4
Harmony-target manifest correction and release-gate hardening with no gameplay or configuration changes. This build supersedes 1.1.3.
- Fixed startup patch preflight for
InventoryGui.SetupRequirement(Transform, Requirement, Player, bool, int, int): the compatibility gate correctly validated this Valheim API asstatic, but the separate patch installer incorrectly searched for an instance method. - Replaced every duplicated target declaration, including target-bearing patch attributes and the hot-unload cleanup resolver, with one canonical Harmony target manifest consumed by compatibility validation and every installation path. Each descriptor pins the declaring type, exact overload, static/instance shape, return type, patch entrypoints, and whether it belongs to the cleanup-safety subset.
- Added fail-closed Harmony patch-signature validation for original arguments,
__instance,__result,__state,__exception, and injected fields before any patch is installed. - Added the release-gating
HarmonyTargetManifestReleaseGate, which resolves all 32 patch operations against the pinned Valheim assemblies and provesPatchInstaller.Prepare()returns those exact resolvedMethodInfoobjects. Packaging now runs the complete build/test gate itself and refuses to create a ZIP if this check fails. - Made release binaries byte-reproducible across clean checkout paths by enabling deterministic source paths and requiring the generated Source Link map to use the normalized
/_/root and pinned release revision. - Runtime identity, version, SHA-256, and MVID remain diagnostic-only. All Stackmaster 1.1.0 gameplay and settings remain unchanged, including the rule that modifier + right-click never clears protection.
1.1.3
Compatibility-gate static-method correction with no gameplay or configuration changes. This build supersedes 1.1.2.
- Corrected four contract declarations that accidentally requested instance methods even though Stackmaster and Valheim expose the APIs statically:
ZDOMan.GetSessionID(),GameCamera.InFreeFly(),ZInput.ResetButtonStatus(string), andPrivateArea.CheckAccess(Vector3, float, bool, bool). - Preserves fail-closed validation for all four APIs. Session identity remains mandatory for ownership and reservation safety; free-fly detection and input reset remain mandatory input guards; ward access remains mandatory before guarded containers can be used.
- Added regressions for each missing API and instance-shaped lookalike, plus pinned metadata checks for the exact static signatures in both
assembly_valheim.dllandassembly_utils.dll. - Runtime identity, version, SHA-256, and MVID remain diagnostic-only. All Stackmaster 1.1.0 gameplay and settings remain unchanged.
1.1.2
Compatibility-gate correction with no gameplay or configuration changes.
- Replaced exact Valheim label, Unity/BepInEx/Harmony version,
assembly_valheimSHA-256, and MVID runtime enforcement with a contract-based fail-closed gate. - Runtime identity values remain diagnostics only; the pinned private-reference hashes remain build provenance and are not a client allowlist.
- Validates every declared dependency in the runtime contract—required types, exact method overloads and parameters, constructors, fields, properties, static/instance shape, Harmony targets, and patch entrypoints—before installing the first patch.
- A missing or ambiguous contract disables Stackmaster before patching. Any Harmony installation failure fully disables the runtime and removes all patches installed under Stackmaster's Harmony ID.
- Added focused executable/static tests proving differing identity metadata is accepted when contracts match, exact-version constants are absent from the runtime gate, required contracts are covered, and missing or ambiguous members fail closed.
- Preserves the 1.1.0 gameplay, settings, networking, ownership, reservation, and persistence behavior exactly.
1.1.1
Release package prepared with the exact DLL bytes supplied for live validation.
- Revalidated the unchanged 1.1.0 gameplay and configuration against Valheim 1.0.14, anonymous Steam dedicated-server build 25364309, and Unity 6000.0.75f1.
- Updated the fail-closed Valheim assembly fingerprint and private reference bundle.
- Added deterministic private-reference fingerprint validation plus 84 independent metadata/IL compatibility checks, including exact left-click/right-click inventory routing.
- No gameplay behavior, settings, networking, ownership, reservation, or persistence semantics changed.
1.1.0
Public release, preserving the live-validated 1.1.0 behavior without gameplay or configuration changes.
- Replaced the former all-in-one protected-item modifier-click prompt with separate mouse controls using the configured storage-action modifier (Left Alt by default).
- Modifier + left-click now toggles protection immediately with no dialog: an unprotected item becomes protection-only, while any protected item is fully unprotected and loses its target in one click.
- Modifier + right-click now opens the restocking quantity dialog for stackable items. Confirming protects the item and adds or edits its target; canceling or entering an invalid quantity preserves the prior state exactly.
- Non-stackable items remain protection-only: modifier + right-click is consumed without changing their state. All unmodified inventory clicks remain vanilla.
- Added Quick Grab Materials to the active build-piece menu: hold the configured storage-action modifier (Left Alt by default) and click a piece to grab all materials for one complete copy from eligible storage while keeping the menu open.
- Every modified click requests a fresh complete material set and intentionally ignores materials already carried by the player.
- For each ingredient, withdraws from the eligible chest holding the largest total stock first, then smaller sources, with deterministic tie-breaking.
- Preflights the complete material set against exact inventory slots and added carry weight before requesting any chest ownership.
- Replans from fresh storage after asynchronous ownership acquisition, requires an identical plan, reserves and revalidates every required chest, then performs exact source-to-destination moves.
- Cancels without moving anything on shortage, access or ownership changes, busy storage, stale contents, insufficient slots, or insufficient carry capacity. Late transfer failures roll back completed moves before guarded ownership cleanup.
- Emergency snapshot rollback restores the original player item objects and their complete captured state, preserving every equipped-item reference; chest snapshots remain detached.
- A failed exact local in-use cleanup is retained and retried before Stackmaster may relinquish its matching ownership acquisition, including disable and hot-unload paths, without clearing later or unrelated owners' state.
- Logging out now performs a recoverable session teardown rather than permanently disabling Stackmaster for the remaining Valheim process. Joining a new server session rearms every feature without requiring a game restart.
- Reconnect rearming is fail-closed: rollback and reservation-before-ownership cleanup must complete successfully, the network-session object must change, permanent compatibility failures stay disabled, and stale coroutines are generation-isolated from later sessions.
- Chest-backed crafting is now one click: Stackmaster captures the exact recipe/upgrade/variant/multi-craft intent, acquires only the minimum required chest set before starting vanilla crafting, marks every selected chest in use, and resumes that original intent automatically.
- Ownership waiting no longer starts a disposable progress bar. The normal vanilla craft duration and animation begin exactly once, only after every required chest is reserved, and the atomic withdrawal occurs only when vanilla reaches
DoCrafting. - Craft cancel, recipe or tab changes, inventory close, scope/station changes, failed validation, exceptions, timeout, disable, disconnect, and shutdown immediately clear reservations and release only exact proven Stackmaster acquisitions; delayed callbacks are generation- and session-isolated.
- Uses the existing configured shortcut modifier, connected-workbench/fallback storage scope, vanilla ownership handshake, and access/in-use protections without Jötunn, custom RPCs, server data, or networking.
- Ordinary build-piece clicks, the existing 30-second chest-backed building lease, and all existing features remain unchanged.
- Final automated verification passes with zero compiler warnings/errors, 133/133 pure-domain tests, and 65/65 static/repository safety checks. In-game validation passed; broader multiplayer, dedicated-server, workbench-extension, and load/unload edge-case testing remains incomplete.
1.0.0
Public release, preserving the live-validated 0.4.2 behavior without gameplay or configuration changes.
- Added independent, default-on controls for storage-backed crafting, storage-backed building, and aggregate storage totals in crafting, upgrade, and building requirement rows.
- Preserved explicit legacy building/crafting opt-outs through one-time migration to the renamed settings.
- Added adaptive exact requirement totals for longer values such as
45 / 172, with affordability and flashing tied to the resources the active action is actually allowed to consume. - Added a guarded 30-second sliding ownership lease for successful chest-backed building, with immediate remote manual-access preemption and immediate cleanup across every non-success lifecycle path.
- Fixed full-stack chest transfers and world drops leaving stale protected-item targets; partial transfers and internal player-inventory moves continue to retain protection.
- Pruned orphaned target records before storage actions so removed items no longer produce stale
target item missingshortages. - Final verification passes with zero compiler warnings/errors, 99/99 pure-domain tests, and 57/57 static/repository safety checks.
- In-game validation passed. Broader multiplayer, dedicated-server, workbench-extension, and load/unload edge-case testing remains incomplete.
0.4.2
Development-only build; not published.
- Split nearby-resource behavior into three independent, default-on settings: Allow crafting from storage, Allow building from storage, and Show storage amounts in craft and build menus.
- Existing
Enable building from nearby chestsandEnable crafting from nearby chestschoices migrate once to the renamed permissions; explicit opt-outs remain off, and obsolete keys are removed from the saved configuration. - Storage totals can now remain visible as exact
required / total availablevalues in crafting, upgrade, and building rows even when the corresponding action is restricted to player-held materials. - Requirement affordability and red/white flashing now follow actual action permission on both code paths: player-only stock when that action's storage permission is off, aggregate player-plus-eligible-storage stock when it is on.
- Turning storage totals off preserves vanilla count text and typography while storage-backed crafting or building can remain enabled independently; turning both display and the relevant permission off leaves that requirement UI untouched.
- Preserved the connected-workbench mesh / fallback scope, exact aggregate accounting, adaptive long requirement-count fit, independent crafting/building consumption paths, and all 0.4.1 ownership and protected-item cleanup behavior.
- Automated tests cover all eight combinations of the three new booleans across both crafting and building UI decisions. Live in-game validation remains pending.
0.4.1
Development-only build; not published.
- Added a 30-second sliding Valheim ownership lease after a successful chest-backed building placement. Only exact chests Stackmaster demonstrably acquired and actually used are retained, and each successful build use renews that chest's lease.
- Logical
in-usereservations still end immediately after the atomic transaction; crafting behavior is unchanged and does not retain the new build lease. - A remote player's manual chest-open request immediately invalidates an idle retained build lease and continues through Valheim's normal request and ownership-transfer path. The local owner's own manual access remains available and does not invalidate the lease.
- Lease expiry returns the exact tracked chest to Valheim owner
0only while identity, local session, current owner, and successor owner-revision guards still prove it is the ownership Stackmaster acquired. - Cancellation, failure, rollback, partial or unused acquisition, disable, disconnect, logout, scene unload, shutdown, hot unload, compatibility disable, and exceptions preserve immediate guarded cleanup. Unrelated, merely inspected, already-local, or non-acquired chests are never retained or released.
- Preserved exact nearby-resource accounting, minimum mutated-chest planning, connected-workbench/20 m fallback scope, chest auto-sort opt-outs, and the exact busy message
The required materials are currently in use. - Crafting and upgrade requirement labels now keep every digit visible by using the normal vanilla font size when it fits and bounded TextMeshPro auto-sizing for longer exact totals such as
45 / 172and999 / 999; pooled rows and disabled/fail-open paths restore their original typography. - Manually transferring a whole protected/targeted stack into a chest or dropping it into the world now clears that stack's protection immediately. Partial external moves retain the protected remainder, while moves and merges wholly inside the player inventory keep existing item-following behavior.
- Storage hotkey planning now prunes older orphaned target records that cannot resolve any compatible player-inventory item, preventing stale
target item missingshortage notices without disturbing valid moved targets. - Automated verification passes with zero build warnings/errors, 95 pure-domain tests, and 55 static/repository safety checks.
- The ownership-lease change has not yet been independently tested in multiplayer, on dedicated servers, with workbench extensions, or across broader load/unload topologies.
0.4.0
Public release.
- Added one uniform storage scope for auto-deposit, protected-stack replenishment, building, and crafting.
- While the player is inside a valid vanilla workbench build zone, Stackmaster now searches the complete connected graph of overlapping loaded workbench zones and treats their exact union as one base mesh.
- Chests inside the connected mesh are eligible throughout the base; nearby chests outside that mesh are excluded.
- While the player is outside every valid workbench mesh, all four chest-powered features use the existing configurable player-centered fallback radius (20 metres by default).
- Preserved targeted-chest-first then nearest-to-player routing, exact minimum-chest build/craft planning, loaded-only discovery, and read-only planning before ownership.
- The per-chest Auto-sort chest checkbox still controls sorting only; disabled, manually organized chests remain fully eligible for every chest-powered feature.
- Added one fresh immutable scope snapshot per mutation phase plus topology-aware HUD/resource caching. A connected mesh is never silently truncated by the ordinary nearby-action inspection budget.
- Added fail-closed compatibility checks for the current workbench instances, build-range, prefab-identity, and ZDO APIs used by the mesh resolver.
- Automated verification passes with zero build warnings/errors, 78 pure-domain tests, and 51 static/repository safety checks.
- Core connected-workbench storage behavior has been live-tested in Valheim. Multiplayer behavior, dedicated-server behavior, workbench extensions, and broader load/unload edge cases have not yet been independently verified.
0.3.0
- Added an Auto-sort chest checkbox beneath supported opened vanilla chests.
- Each chest defaults to enabled and remembers its choice locally per player, world, and stable chest identity. The preference is never written to shared ZDO/world state and cannot affect another player.
- Enabled chests sort on both UI open and UI close, so removing items no longer requires reopening the chest to restore order.
- Disabling one chest takes effect immediately without disabling player-inventory sorting or changing deposit, replenishment, nearby build/craft, or manual organization behavior.
- Chest sorting fails safely when stable identity, local preference storage, ownership, or inventory access is unavailable.
- Automated verification passes with zero build warnings/errors, 64 pure-domain tests, and 50 static/repository safety checks.
0.2.2
- Updated the README for clarity and readability. No gameplay changes.
0.2.1
Early public testing release.
Version 0.2.1 reissues the approved nearby-resource release under a fresh Thunderstore version number so package managers can distinguish it from an earlier 0.2.0 upload. There are no gameplay changes from the approved build.
Added
- Added independently switchable building and crafting from eligible nearby vanilla chests; both settings default to on and use the existing configurable nearby-storage radius.
- Added exact all-or-nothing material planning across the player inventory and nearby chest stacks, including duplicate-requirement normalization, quality-specific ingredients, and multi-craft quantities.
- Added
required / total availablematerial rows for selected build pieces and crafting or upgrade menus at workbenches, forges, cauldrons, and equivalent stations. - Added aggregate shortage coloring: satisfied combined stock stays white, while true shortages retain red flashing.
Changed
- Material withdrawals now use the player inventory first, then select only the minimum distinct chest set required by the complete plan.
- Display-only scans read stable serialized snapshots from accessible vanilla chests regardless of current network owner and never request ownership.
- Remotely owned actions use Valheim's owner-authorized asynchronous handoff. The first attempt consumes nothing while ownership is prepared and prompts one normal retry; the second attempt performs fresh validation before any withdrawal.
- Ownership prepared by Stackmaster gets a 10-second retry window. Cleanup then returns it to Valheim's native unowned state after success, cancellation, validation failure, rollback, timeout, disable, or disconnect, and retries later rather than releasing ownership it can no longer prove it acquired.
Safety and fixes
- Revalidates container identity, access, distance, use state, owner revision, serialized data revision, stack identity, quality, world level, and quantity before mutation.
- Briefly reserves only required chests during the synchronous transaction, withdraws exact quantities, and rolls back completed removals if any later step fails.
- Cancels the whole action without partial consumption when any required chest is busy, denied, stale, changed, inaccessible, or out of range.
- Fixed remote ownership outliving build, craft, or Left Alt + E actions and blocking vanilla peers after the modded player disconnected.
- Fixed detached serialized chest items being omitted from totals by hydrating their item metadata from resolved prefabs; any incomplete chest snapshot is rejected as a whole.
- Fixed nearby-resource UI failures interrupting vanilla chest, build, or crafting interfaces; these paths now fail open to vanilla behavior.
- Fixed crafting requirement overlays for Valheim's current static requirement-row method.
Testing status
- Release build passes with zero warnings and zero errors.
- 61/61 domain tests and 48/48 static/repository safety checks pass.
- Initial live testing passed, including the corrected ownership cleanup behavior.
- The full co-op host, co-op guest, and unmodded dedicated-server matrix remains in progress; this release does not claim proven multiplayer safety.
0.1.0
Initial public testing release.
- Added automatic alphabetical sorting for movable player-inventory slots and opened vanilla containers.
- Added protected stacks with optional replenishment targets.
- Added one configurable nearby-storage action for matching-item deposits and loadout replenishment.
- Added targeted-container-first, partial-stack-first, nearest-to-farthest routing.
- Added compact visual result feedback and a fail-closed runtime compatibility gate.
- Added exactly three settings: auto-sort, nearby-storage radius, and storage-action keybind.
- Passed automated domain/repository checks and solo smoke testing.
- Co-op host, co-op guest, and unmodded dedicated-server testing remain in progress; this release does not claim proven multiplayer safety.