IG5ks-LinkedLightsCraft icon

LinkedLightsCraft

Extend your crafting station build zones using torches, braziers, and campfires—then craft, build, and refuel stations directly from chests anywhere inside your connected base perimeter.

CHANGELOG

1.2.6

Changed

  • Changed the minimap and full-map buildable zone overlay so it only displays when the Hammer (build mode) is equipped, hiding cleanly during normal exploration and combat.
  • Color-coded map zones by player presence: only the connected craftable zone you are currently standing inside renders light green, while other craftable zones render light grey (flipping immediately as you step in or out of a zone).

1.2.5

Added

  • Minimap & Full Map Buildable Zone Overlay: Added a soft light-green overlay (with a crisp outer edge) on both the corner minimap and the full map showing your connected buildable zone, scaling smoothly with map zoom and pan so you can immediately tell whether you are inside the buildable perimeter even in large bases. Added ShowMinimapZoneOverlay (default true) under 4 - Visuals.
  • Live Config Hot-Reload (No Restart Required): Added a debounced, main-thread FileSystemWatcher on BepInEx/config/com.tingits.linkedlightscraft.cfg. Saving edits to the config file on disk now automatically reloads settings, refreshes perimeter/storage caches, and immediately broadcasts updated server config values to all connected clients without needing a server or game restart.
  • Linked Ward State & Permission Sync (when ExtendWardsToPerimeter = true):
    • Newly placed Wards inside a linked craft/light zone now automatically inherit the existing accessible Ward's enabled/disabled state and permitted players list (preserving the reference Ward creator's access as well).
    • Enabling or disabling a Ward now toggles all other accessible Wards in the same linked craft/light zone together (works across both singleplayer and multiplayer).
    • When ExtendWardsToPerimeter = false (default), Wards remain strictly within their original vanilla zone with no linked-zone syncing.
  • Updated Thunderstore description and README.md for clarity and full feature documentation.

1.2.3

Fixed

  • Fixed MissingMethodException: Character.Message(MessageHud/MessageType,string,int,UnityEngine.Sprite) inside PrivateArea.CheckAccess on newer Valheim builds (where Character.Message gained an additional optional bool parameter), which broke opening doors, opening the Hammer build menu, and interacting with chests/stations even when Wards were disabled or absent.
  • Replaced the direct Character.Message call with a version-safe cached reflection helper (ValheimAccess.ShowCharacterMessage) that dynamically supplies optional parameter defaults across Valheim versions.

1.2.2

Upgrade Note: Delete your existing BepInEx/config/com.tingits.linkedlightscraft.cfg (on both client and dedicated server) so the new default config regenerates cleanly, or manually set ExtendWardsToPerimeter = false.

Fixed

  • Fixed existing personal Wards locking players out of their own chests and crafting tables across light-linked bases: changed ExtendWardsToPerimeter to default false (opt-in) and ensured a player's own active local Ward is never overridden by a distant unpermitted Ward in the same light network.
  • Fixed entity tracking in Awake() (!ZNetView.m_forceDisableInit with lazy nview.IsValid() checks) so chests, lights, and wards are reliably tracked regardless of Unity Awake() order.
  • Fixed the chest perimeter toggle button and Venn diagram icon not appearing by anchoring it directly beside Valheim's built-in chest buttons and resolving UnityEngine.UI.Image across the cloned hierarchy.

Changed

  • Replaced overlapping per-torch Hammer circles with an outer-perimeter-only animated dotted line (matching vanilla Workbench style) around the total connected zone.

1.2.1

Fixed

  • Fixed runtime MethodAccessException / FieldAccessException on dedicated server login and world load caused by compiling against publicized ValheimGameLibs while live assembly_valheim.dll / assembly_guiutils.dll keep 15 accessed members (ZNet.GetPeer, CraftingStation.m_allStations, PrivateArea.*, Smelter.*, InventoryGui.*, DLCMan.IsDLCInstalled, UITooltip.UpdateTextElements) private; replaced all 15 with cached AccessTools reflection helpers and added IgnoresAccessChecksTo / SkipVerification.
  • Fixed Harmony patch signature mismatches for CraftingStation.HaveBuildStationInRange, Player.HaveRequirementItems, and Player.ConsumeResources that caused runtime failures and connection stalls.
  • Fixed Ward owners being locked out of their own perimeter by using PrivateArea.HaveLocalAccess().
  • Fixed building pieces bypassing required crafting stations or DLC checks when materials were available in chests.
  • Fixed multiplayer Shift-fill loops over-consuming fuel/ore/ammo on peer-owned smelters, fires, and ballistas by capping fills to exact remaining capacity.
  • Fixed station refueling mutating chests or dropping items on the floor when a station was full; items are now deducted only if actually consumed.
  • Fixed ballista (Turret) reloading to match currently loaded ammo type and avoid mixing bolt types during Shift-fill.
  • Fixed Smelter.OnAddOre null-reference risk when container items lack m_dropPrefab, excluded auto-destroying containers (m_autoDestroyEmpty), and respected NoCostCheat / free-build mode.
  • Fixed placement ghosts being tracked as real lights/chests/wards, removed redundant hammer HUD requirement patch, and cleared tracked state cleanly on disconnect.

Changed & Added

  • Redesigned the per-chest perimeter toggle as a compact hovering square with a procedural Venn diagram icon outside the right edge of the chest window, complete with a native hover tooltip ("Include/exclude from perimeter pull").
  • Added support for "any one ingredient" (m_requireOnlyOneIngredient) crafting recipes from perimeter chests.
  • Added owner-routed ZRoutedRpc chest deduction (LinkedLights_RemoveFromChest) for safer multiplayer chest pulls and avoided redundant ZDO saves on owned chests.
  • Decoupled ServerConfigSync from ZNet.RPC_PeerInfo with a 2-second post-login delay and added an EnableServerConfigSync config toggle.
  • Added short-TTL caching and event invalidation for chest item counts and the perimeter graph, and cached reflection lookups to eliminate per-frame stutter and GC overhead.

1.2.0

  • Added perimeter-wide Ward coverage when an active Ward is inside a connected station/light network.
  • Added a Perimeter: ON / OFF toggle button inside the chest UI (default ON, persisted per chest via ZDO).

1.1.0

  • Added perimeter-linked container pulling for crafting, upgrading, building, and refueling smelters, kilns, cooking stations, fires, and ballistas.
  • Added color-coded Hammer perimeter rings (green-gold for connected lights, dim red-gray for unlinked lights).

1.0.0

  • Initial release with linked station & light source build perimeters, Workbench-linked item despawn protection, and server config sync.