You are viewing a potentially older version of this package. View all versions.
Terramods-InventoryLink-1.0.5 icon

InventoryLink

I use AI to review code, assist with optimization and integrity; I manually test and review every mod, and all decisions and code remain my own. Build/craft from nearby containers and sort inventories.

Date uploaded 2 weeks ago
Version 1.0.5
Download link Terramods-InventoryLink-1.0.5.zip
Downloads 348
Dependency string Terramods-InventoryLink-1.0.5

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 icon
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.2350

README

InventoryLink

I use AI to review code and assist with optimization and integrity; I manually test and review every mod, and all decisions and code remain my own.

Current release: 1.0.5, rebuilt against the current Valheim 1.0 assemblies.

InventoryLink is a client-side Valheim mod that links nearby accessible containers to building and crafting. Requirements show the combined materials available to you, and only the missing amount is pulled after placement or crafting succeeds.

The same DLL also includes safe, one-click sorting for player and container inventories.

Development note

This mod is human-directed and built from human structure, concepts, ideas, client/server testing, and gameplay improvement goals. AI is used as an assisting tool for code analysis, optimization review, implementation refinement, and verification support, while final decisions, packaging, and in-game validation remain under human direction.

Created and maintained by R4V9N1.

Features

  • Counts nearby chest contents for hammer building and normal workbench crafting or upgrades.
  • Pulls only the shortfall after the action succeeds; your carried materials are used first.
  • Mirrors Valheim’s normal/upgrader resource filtering before linked materials can be paid.
  • Searches within a configurable 50-metre radius and processes containers nearest-first.
  • Revalidates wards, private-container access, in-use state, and container readiness when counting and again before linked payment.
  • Always excludes LightMyFire coal and resin automation barrels from linked crafting pulls.
  • Gives the workbench, stonecutter, forge, black forge, Galdr table, and artisan table the same configurable build-range minimum (50 metres by default).
  • Adds vanilla-style Inv. Sort and Sort buttons plus a configurable keyboard shortcut.
  • Leaves equipped-capable items in their existing cells while organizing stackable items.

Installation

Install with a Thunderstore mod manager, or copy InventoryLink.dll into:

<Valheim>/BepInEx/plugins/InventoryLink/InventoryLink.dll

This is a client-side mod. Install it for each player who wants its building, crafting, and inventory UI features.

Configuration

After the first launch, BepInEx creates:

BepInEx/config/r4v9n1.inventorylink.cfg
BepInEx/config/r4v9n1.inventorylink.autosort.cfg

The auto-pull radius, access checks, extended station range, logging, sort buttons, button offsets, and sort shortcut are configurable.

Notes

Recipes using Valheim's special “require only one ingredient” mode retain vanilla inventory behavior to avoid unsafe ingredient selection.

CHANGELOG

Changelog

1.0.5

  • Repaired the interrupted 1.0.4 container-registry optimization against the current governed Valheim CLIENT API.
  • The 0.20-second cache now stores only nearby spatial candidates; ward, privacy, in-use and container-readiness checks are re-evaluated when requirements are counted and again before linked payment.
  • Fixed duplicate Harmony installation in the bundled DLL by making InventoryLink the single assembly-wide PatchAll owner; requirement counting and post-success payment can no longer be installed twice by Auto Sort.
  • Aggregated duplicate requirement entries before calculating player shortfall, retained the hard cap on linked removal, and now mirrors Valheim’s exact normal/upgrader requirement filter before creating any linked payment debt.
  • Renamed the player-inventory button to Inv. Sort; the container button remains Sort.
  • Revalidated the release against the current governed Valheim Client Assets and synchronized build/package/version gates.

1.0.4 (unpublished working state)

  • Replaced per-frame global Container discovery with lifecycle registration and a short movement-aware nearby-container cache.
  • Preserved ward, privacy, in-use and reserved automation-container eligibility checks.
  • Added an explicit remaining-recipe payment invariant: linked-container removal cannot exceed the outstanding recipe/piece cost.
  • Payment advances only by the amount actually confirmed removed.
  • Reduced build requirement CPU/allocation pressure without changing recipe costs.

1.0.3

  • Revalidated InventoryLink and Auto Sort against the current governed Valheim client assembly and generated Public client analysis.
  • Updated build and API-validation authority to the current Valheim Client Assets Managed set; this client-side mod no longer requires the dedicated-server assembly for validation.
  • Preserved nearby-container requirement linking, post-success shortfall pulling, access safeguards, crafting-station range behavior, and inventory sorting without gameplay redesign.
  • Build, package verification, and local publish complete as one governed release operation.

1.0.2

  • Fixed Auto Sort inventory refresh for the current Valheim Inventory.Changed(bool, bool) contract.
  • Added startup contract validation so Auto Sort disables safely instead of invoking an ambiguous or wrong-arity method.
  • Hardened Auto Sort against transient null item entries.
  • Reproducible governed build now uses the current Valheim/BepInEx references and canonical dotnet build; the retired TaleSpire fallback was removed.
  • Preserved the existing auto-pull architecture and access safeguards; no broad gameplay redesign was introduced.

1.0.0

  • Rebuilt against the current Valheim 1.0 assemblies.
  • Preserves nearby-container requirement linking, safe material pulling, and inventory sorting behavior.
  • Replaced the package icon with a custom-made, non-AI-generated icon.

0.2.8

  • Moves the human/AI development disclosure to the top of the Thunderstore details text so it is visible immediately.
  • Adds a concise human-directed, AI-assisted development note to the package manifest description.
  • Corrects the Thunderstore package layout so the DLL is placed under plugins/InventoryLink/InventoryLink.dll.
  • No gameplay changes intended relative to 0.2.7.

0.2.7

  • Adds the human/AI development disclosure to the Thunderstore package description.
  • No gameplay changes intended relative to 0.2.6.

0.2.6

  • Adds LightMyFire compatibility so linked crafting never pulls coal or resin from its automation barrels.

0.2.5

  • Improves nearby-container detection while objects are placed or streamed, keeping linked crafting responsive and reliable.

0.2.4

  • Gives the forge, black forge, Galdr table, and artisan table the same extended build-range minimum as the regular workbench.
  • Migrates the previous default station list automatically while preserving customized lists.

0.2.3

  • Packages InventoryLink auto-pull and inventory sorting for Thunderstore.
  • Uses the R4V9N1 creator identity and r4v9n1.* BepInEx config filenames.
  • Documents client-side installation, access safeguards, station range settings, and sorting behavior.