LinkedLightsCraft
Links crafting stations, light sources, wards, and chests into a unified build perimeter for building, crafting, station refueling, item despawn protection, and ward coverage.1.2.3
Fixed
- Fixed
MissingMethodException: Character.Message(MessageHud/MessageType,string,int,UnityEngine.Sprite)insidePrivateArea.CheckAccesson newer Valheim builds (whereCharacter.Messagegained an additional optionalboolparameter), 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.Messagecall 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 setExtendWardsToPerimeter = false.
Fixed
- Fixed existing personal Wards locking players out of their own chests and crafting tables across light-linked bases: changed
ExtendWardsToPerimeterto defaultfalse(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_forceDisableInitwith lazynview.IsValid()checks) so chests, lights, and wards are reliably tracked regardless of UnityAwake()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.Imageacross 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/FieldAccessExceptionon dedicated server login and world load caused by compiling against publicizedValheimGameLibswhile liveassembly_valheim.dll/assembly_guiutils.dllkeep 15 accessed members (ZNet.GetPeer,CraftingStation.m_allStations,PrivateArea.*,Smelter.*,InventoryGui.*,DLCMan.IsDLCInstalled,UITooltip.UpdateTextElements) private; replaced all 15 with cachedAccessToolsreflection helpers and addedIgnoresAccessChecksTo/SkipVerification. - Fixed Harmony patch signature mismatches for
CraftingStation.HaveBuildStationInRange,Player.HaveRequirementItems, andPlayer.ConsumeResourcesthat 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.OnAddOrenull-reference risk when container items lackm_dropPrefab, excluded auto-destroying containers (m_autoDestroyEmpty), and respectedNoCostCheat/ 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
ZRoutedRpcchest deduction (LinkedLights_RemoveFromChest) for safer multiplayer chest pulls and avoided redundant ZDO saves on owned chests. - Decoupled
ServerConfigSyncfromZNet.RPC_PeerInfowith a 2-second post-login delay and added anEnableServerConfigSyncconfig 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.
