Wubarrk-GetOffMyLawn icon

GetOffMyLawn

Server-side only, nothing for players to install. Active wards keep wild creatures and raids out, stop spawns inside, close doors left open and whisper the owner when someone walks in uninvited.

CHANGELOG

Changelog

0.3.4

Added

  • Nothing spawns inside an active ward (NoSpawnInsideWards, on). A wild creature a player's game spawns inside a switched-on ward (spawn system, creature spawners, raids) is removed the moment it reaches the server, instead of being bounced out at the gate. The bounce filters apply: tamed creatures (newborns and hatched chicks are tamed from birth), creatures being tamed, bosses, summons and excluded prefabs are never touched; raids follow IncludeEventCreatures. Works on a dedicated server, where every spawn arrives from a player's game.
  • The trespass whisper (new section 5 - Trespass Notice: Enabled on, CooldownSeconds 300, FlashShield on). When a player who is neither the ward's builder nor on its permitted list walks into an active ward, the owner (if online) gets a whisper in game chat naming them and the ward's spot, and the ward flashes. Once per visit, then not again for the cooldown. It is vanilla's own whisper, sent under the owner's own platform id: a client prints a chat line only for a sender it knows, and a made-up "server" sender is silently dropped.

Fixed

  • Bounced creatures landed at the wrong height. A creature kept the height it had inside the ward, corrected only to be no lower than the world generator's base height, which ignores terraforming and is off by metres at biome borders. On a hill or a raised base that dropped creatures from the air or buried them. The exit is now measured on the ground the players see (the game's own terrain recipe, terraforming included, shared with TortalPortal Lite): walkers land on it, serpents stay on the water, flyers keep their height above the ground.
  • The bounce always went straight out from the ward centre, which could end in the sea, in a neighbour's wall or against a rock. It now tries the straight line first, then angles around the ward (20 degree steps) for dry, lava-free ground clear of building pieces, trees, logs and rocks. If no angle passes, the straight-line spot is used with the height corrected, so a bounce never fails where it used to work.
  • Wards just outside the scanned area were missed. Wards were only collected from the sectors players simulate, but a ward centred one sector further out still reaches up to 32 m into them, and creatures in that strip walked in unbounced. Wards are now also read from one ring wider (cached every 2 s).

Changed

  • The 5-minute summary also counts stopped spawns and trespass notices.
  • Checked against Valheim 1.0.30 and 1.0.31: builds clean against the 1.0.31 server, and the ownership hold still rests on unchanged vanilla behaviour (the data-revision ordering in ZDOMan.RPC_ZDOData, ReleaseNearbyZDOS, the became-owner snap in ZSyncTransform). A headless 1.0.31 server boot loads it with no errors.
  • The store page is rebuilt to README schema v3.1, and the package carries GetOffMyLawn.pdb (matching the DLL).
  • (0.3.3 was published on Thunderstore on 2026-11-13 with no record in this source; 0.3.4 supersedes it.)

0.3.2

Changed

  • Rebuilt and checked against Valheim 1.0.21 (network version 41) and re-verified: a static reference check against both the client and dedicated-server assemblies, and a headless dedicated-server boot. No source changes were needed: 1.0.21 touched none of the ZDO, ZDOMan, ZNetScene or door code this mod relies on.
  • Website link moved to https://www.rossgilsonlabs.dev.
  • Needs BepInExPack Valheim 5.4.2360.

0.3.1

Changed

  • Rebuilt against Valheim 1.0.16 (client build 25527674 / dedicated server build 25527701, network version 40, unchanged from 1.0.15) and re-verified: a static reference check against both the client and dedicated-server assemblies, and a headless 1.0.16 dedicated-server boot. No source changes were needed for compatibility — 1.0.16 removed only ObjectDB.GetAllFoodItems() and ButtonSfx.Start(), and this mod calls neither.
  • Dropped stale references to a specific past Valheim patch (Steam build id, versioned-decompile citation) from the csproj, README and OwnershipHold.cs; they now read version-agnostically ("Valheim 1.0", "vanilla ZDOMan.RPC_ZDOData") since the mod targets whatever the current 1.0.x dedicated server is rather than one pinned patch.

0.3.0

Added

  • Configurable ward radius. Added WardRadius to [2 - Creature Blocking] with a 32m default matching vanilla guard stones (set to 0 to use each prefab's native radius). Governs creature barrier reach and door auto-close perimeter. RadiusBonus continues to work on top.
  • Continuous shield shimmer pulse option. Added AlwaysVisible (default false) and AlwaysVisibleInterval (default 1.3s) to [4 - Visible Shield]. Tightened the default pulse timer to 1.3s so when enabled, overlapping pulses create an undulating shimmer wave rather than spaced flickers.

Fixed

  • Independent reactive flash and periodic pulse throttles. Creature bounces flash immediately while automatically resetting the periodic shimmer timer, avoiding double-shimmer artifacts.
  • Shield scan gate. Wards now update visual shield presence whenever AlwaysVisible is active even if creature blocking and auto-door closing are both disabled.

0.2.1

Changed

  • Startup log line no longer pins a Valheim patch version. The Starting GetOffMyLawn v<version>... line read "built for Valheim 1.0.7", which had gone stale now that the mod is confirmed working unchanged through 1.0.12 (see MIGRATE-1.0.md). It now reads "built for Valheim 1.0+".

0.2.0

Added

  • Visible shield. An active ward now flashes its own vanilla shield effect - the same shimmer the game shows when a player is denied building in someone else's ward - every time it bounces or despawns a creature. This reuses PrivateArea's existing networked FlashShield effect; nothing new is installed on any client, and only players close enough to have that ward loaded ever see it. New 4 - Visible Shield config section: Enabled (default on) and MinInterval (default 1.5s, minimum seconds between flashes on the same ward so a creature repeatedly charging one edge doesn't spam it).

0.1.0

Added

  • Creature blocking for active wards. Any wild creature found inside a switched-on player ward is teleported back to just outside the ward's edge (Mode = Bounce, default) or removed (Mode = Despawn). Tamed creatures, creatures being tamed, bosses (configurable), player summons and anything on the configurable faction/prefab exclusion lists are left alone. Raid creatures are blocked by default (IncludeEventCreatures). Optional escalation: a creature bounced DespawnAfterBounces times inside BounceWindowSeconds is despawned.
  • Auto-closing doors. A door or gate standing inside an active ward that stays open longer than Delay (default 10s) closes itself, unless a player is within PlayerClearance metres of it. OnlyInsideWards = false extends it to every door near a player. Drawbridges and window shutters are excluded by default (ExcludedDoorPrefabs); key doors and one-way dungeon doors are never touched.
  • Live config reload. Edits to the cfg on a running server are picked up within 5 seconds.

How it works (read this before reporting "it moved the creature back inside")

  • Vanilla wards are pure client logic; a dedicated server has no ward, door or creature instances at all, only ZDO data owned by clients. This mod scans the ZDOs around every connected player from the server's own sector table, and corrects a creature or door by briefly taking ownership of its ZDO, jumping the ZDO's data revision past everything the owning client still has in flight, writing the correction, and handing ownership back a moment later so the client's own ZSyncTransform snaps the object to the new position. The OwnershipHandBackDelay (default 0.75s) is the window in which the corrected creature is frozen and cannot be hit.
  • Every fact this relies on was read from the Valheim 1.0.7 dedicated-server decompile (ZDOMan.RPC_ZDOData, ZDOMan.ReleaseNearbyZDOS, ZSyncTransform.OwnerSync/ClientSync, Door.UpdateState, PrivateArea.IsInside).