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.
TortalPortal LITE
Strictly server-side Portal-network mod: progression-gated gates, one-way corpse-run recovery, fast-transit terminals, per-portal ore upgrades, portal caps, and self-repairing network health checks. Zero client install, full PlayFab/Xbox/crossplay.
| Date uploaded | 2 weeks ago |
| Version | 1.0.12 |
| Download link | Wubarrk-TortalPortal_LITE-1.0.12.zip |
| Downloads | 47 |
| Dependency string | Wubarrk-TortalPortal_LITE-1.0.12 |
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.2360README
π TortalPortal Lite
No client install, ever. Every gate, terminal and health check runs on the server, and the players never download a thing.
Install it once, on the server. Every player gets the whole portal network.
TortalPortal Lite is a strictly server-side portal mod. Every feature runs on the dedicated server, working directly on the world's own data instead of live game objects β so Steam, Xbox, PlayFab and full crossplay parties all get the identical experience, with nothing to download.
A private gate back to your grave when you die. Portals that open only once a boss falls. Terminals that walk you through in a couple of seconds. A per-player portal cap an unmodified client cannot dodge. And a network that checks itself, repairs itself, and can always be put back the way it was.
Both ends of your corpse-run gate always appear, and nothing can knock either one down.
| You | It |
|---|---|
| Die and log off at once | the gate is still raised β standing when you come back, and that is when you are told |
| Die anywhere | the death is noticed within a tick or two, not tens of seconds |
| Take a long Mistlands or Ashlands run | the gate stays until the grave is empty β it no longer expires on a timer (GateTtlMinutes = 0) |
| Die in a forest | the gate takes the closest spot with the most room that patch of map offers, never below MinRoomMeters |
| Lose an end | every maintenance pass checks both ends and rebuilds a missing one on the same spot |
| Watch a troll swing at it | nothing happens. Both gates are immune to all damage, and neither can be removed |
πΉ A raise that fails is retried, not dropped Β· πΉ every 5 minutes the server log says both ends are standing and what the protection refused Β· πΉ new settings MinRoomMeters and MaxGraveAgeMinutes.
π Read the saga β why the gates cannot be broken
Valheim never lets an attacker apply damage itself. Every source β a troll's swing and a fire's damage over time included β ends by sending a message to whichever machine owns the portal, and a message that finds no object there is dropped. A dedicated server never builds objects where players are, so a portal the server owns throws away every hit aimed at it.
TortalPortal Lite holds that ownership against the server's own two-second hand-off to nearby players, refuses both ways a portal can be deleted (including the one vanilla accepts from any client without checking who sent it), no-ops every path that could hurt the piece, writes a billion hit points and full wear immunity for the moments a client holds a copy, blocks hammer removal, and keeps a watchdog that puts health and ownership back β and counts every time it had to.
A death is picked up from the tombstone itself, not from the list of connected players, which is why logging off straight away still gets you a gate.
| If⦠| Then⦠| |
|---|---|---|
| π₯οΈ | you run a dedicated server | install it there, and only there. Players install nothing, on any platform. |
| π§© | a player's modpack also carries TortalPortal Lite | that is fine β it is never required on a client, but a client that does load it must run the same version. |
| π‘οΈ | your Valheim build is not on its verified list (Valheim 1.0.7, 1.0.12, 1.0.15, 1.0.16, 1.0.17 and 1.0.21; Valheim 1.0.20 was never checked) | the passes that write to the world β reassert and repair --apply β refuse to run until you switch AcceptUnverifiedBuild on. |
| π§ | you switch on portal caps | portals already standing are never removed; only what is built afterwards counts. |
| π§Ή | you ever remove it | run removekey tpl uninstall --clean-keys first, then pull the plugin. |
Gear recovery without a bare-handed run back into danger.
| π Die | the server raises a private portal near your claimed bed β or the world spawn if you have none β leading straight to your tombstone |
| πͺ One way, by design | there is no automatic portal back from the grave to the bed |
| β³ Lives as long as the grave | it closes itself once the grave is emptied or despawned |
| π° Dungeon deaths | the grave-side gate opens at the dungeon's entrance |
| π§Ή Restarts leave no strays | a gate raised by a previous server run and forgotten is reaped automatically |
π Read the saga β how both ends are placed, and on the ground
The server scans outward from the tombstone (and from the bed) in one-metre rings for a spot with ClearanceMeters of room β measured edge to edge from every tree trunk, boulder, building piece, portal and generated location, using each object's real size rather than its centre, so a boulder spanning eight metres counts as eight metres of boulder. Tiny props (mushrooms, flowers, berry bushes) only need 2 m.
That figure is a preference: nowhere in a Valheim forest has ten metres of room from everything, so the search steps the requirement down and takes the closest spot honouring the best figure that patch of map can offer β never below MinRoomMeters, and widening its radius before it settles for less.
The ground under the gate is the client's own heightmap recipe re-run on the server β biome blending and hoe and pickaxe work included β and the frame's four corners and surroundings are checked so it neither floats off a slope nor wedges against a cliff.
Destinations nobody built, gates that open when a boss falls, and terminals that walk you through.
| π» Phantom anchors | a named destination the server creates and keeps, with no portal anyone had to build. Void keeps it an invisible coordinate; otherwise it is a real, visible anchor |
| π Sealed gates | a portal that leads nowhere until a named global key β a boss defeat, or any flag the server sets β becomes true, then opens to its destination |
| π Fast-transit terminals | step up and the server sends you through: about a 2β4 second fade instead of vanilla's 8-second swirl, once the destination is known to be safe |
| πͺ¨ The ore gate | one portal that lets ore and metal through, and can set you down further in front of it on arrival |
π Read the saga β how each one works
Phantom anchors are what sealed gates and terminals point at: destinations that exist the moment they are declared, so nobody has to carry portal materials out and build them by hand.
Sealed gates are re-checked on the server's own schedule (SealedGateEvalSeconds, every second by default) rather than waiting for a player to touch them.
Parked terminals are managed portals kept "unconnected" on purpose: instead of the normal walk-through, the server notices a player stepping up and teleports them directly. Fast-transit is the quicker form, used once the destination zone is confirmed generated and safe to land in; otherwise it falls back to the normal, slower trip rather than risk a bad landing.
The ore gate is a perk written onto one portal's own record, not a global rule, so a vanilla client simply sees ore go through at that gate and a further step-out distance.
All four are declared in two JSON files beside the config β see the Toolbox.
Limits and markers enforced by the server, with the game's own interface.
| π§ Portal caps | off by default. Turned on, each player may hold so many portals (default 6); one built past the cap is removed about a second later, and the player is told why |
| π Live portal markers | name a portal with a leading # in vanilla's own rename box and it gets a labelled marker on every player's map β rename it and the marker goes. Off by default |
| π‘ Destination prewarm | the moment a managed portal's destination changes, nearby players are sent it at once, so nobody walks into a dead transit. Always on |
π Read the saga β why these hold
The cap is server-side. A stock client cannot be stopped from placing a portal β it builds locally and the server only sees it arrive β so removing it a second later is the server's form of "you can't build another". It is judged once, when it first appears, so it is always the portal just built that goes, never an older one. The message says so: "Portal limit reached (12 of 12). The portal you just built was removed - dismantle an old one to make room."
Live markers ride vanilla's own persistent-event system, which is why they can disappear again β every other feedback surface in this mod family is permanent once placed. They are kept to a small radius, because a persistent event's radius also touches nearby spawners and weather.
It finds what vanilla leaves broken, fixes what you allow, and can always undo it.
| π©Ί HealthScan | on its own timer, flags same-name groups with an odd count (vanilla always orphans one) and stale, dangling links. One-way gates by design are left out |
| π©Ή Repair | acts only on what HealthScan flagged β retags an orphan, clears a dangling link. Dry-run by default; writes only with --apply, after a snapshot |
| πΎ Snapshots and restore | save the world's portal state by name and put the whole batch back |
| π¦ Version check | at startup it checks the Valheim build and the portal registry; if either fails, destructive passes refuse to run |
| π€ Compat report | which other patches sit on the methods this mod touches β one command's worth of answer to "my portals keep unpairing" |
| π Metrics | totals, connected and managed portals, per name, biome and builder, and the busiest routes |
| π€ BarrkBOT export | per-player portal counts, cap flags and world totals, written to a file at most once a minute for your own tooling |
π Read the saga β the export, the repair gate, and what it is built on
The export writes BepInEx/config/TortalPortalLite/barrkbot_portals.json atomically β temp file, then swap β so nothing reading it ever catches half a file. No HTTP, no webhook, no auth: a file on the server's own disk, built against BarrkBOT's published contract, for BarrkBOT or anything else to read. removekey tpl barrkbot rewrites it now.
Automatic repair waits politely. If AutoRepair is on but the version check has closed the destructive gate, the scheduled pass says so once in the log, then waits quietly and resumes on its own when the gate opens.
Under the hood, the mod runs a fixed order of subsystems β Census first (what portals exist), then Audit, then HealthScan, and on down the line β each reading what came before and never fighting another for the same data. Fifteen features made the cut out of 263 portal mechanisms explored; everything else was removed from the code, not just switched off.
First ten minutes: install with a mod manager, or unzip into BepInEx/plugins, on the server β restart it β join as an admin β F5 β removekey tpl status β removekey tpl health.
Every command is removekey tpl <verb>, typed into an admin's in-game console (F5) or chat. It rides vanilla's own remote-command channel, so driving it from the game needs no client mod either.
| Verb | Verb | ||
|---|---|---|---|
list |
every portal it manages | snapshot [name] |
save the portal state |
status |
one-line state of the mod | snapshots |
list saved snapshots |
health |
run a HealthScan now | restore <name> [--recreate] |
put a snapshot back; --recreate rebuilds vanished portals |
repair [--apply] |
dry run Β· write the fixes | compat |
the compat report |
lock <x> <y> <z> Β· unlock β¦ |
keep that portal out of automated passes Β· let it back in | metrics |
the metrics report |
report <x> <y> <z> |
everything about the portal there | barrkbot |
rewrite the export file now |
uninstall --clean-keys |
clear the mod's own keys and data before removal | help |
every verb with its arguments |
π οΈ Declare anchors, sealed gates and terminals β routing.json
routing.json sits beside the config and has three sections:
phantomAnchorsβName,Position(X/Y/Z),RotationY,Void.Void:trueis an invisible coordinate;Void:falsea visible portal anchor.sealedGatesβName,Position,GlobalKey,Destination,SealedTag,OpenTag. Leads nowhere untilGlobalKeyis true.parkedTerminalsβDistant:falseis fast-transit;Distant:truethe plain parked terminal underneath it.
πͺ¨ Upgrade a portal into an ore gate β economy.json
economy.json sits beside the config. Add one entry per upgraded portal to oreGates, keyed by the portal's position: AllowAllItems (default true) lets ore and metal through that gate, and the optional ExitDistance sets how far in front of it a traveller steps out.
| Works with vanilla players | Needs it on the server | Needs it on both ends |
|---|---|---|
| everything β Steam, Xbox, PlayFab and crossplay alike | everything | nothing |
β οΈ It is a server mod. A client that loads it anyway must match the server's version; a client without it is welcome.
| Mod | |
|---|---|
| Wonderland | Checked: it patches the same ownership method, but only for its own floating items β never a portal. No interference. |
| GetOffMyLawn | Checked: it patches the same ownership method, but only for its own ward-held pieces β never a portal. No interference. |
| Anything else | removekey tpl compat lists every other patch on the methods this mod touches. |
BepInEx/config/wubarrk.tortalportallite.cfg, in numbered sections, each entry described in the file. Edits are picked up live: the file is read every 5 seconds β no restart.
π Server-synced β the server's value wins
| Section | Setting | What it does |
|---|---|---|
| 1 β General | Enabled |
the master switch |
| 4 β Foundations: Health | IntervalSeconds |
how often HealthScan runs (default 30 s) |
| 11 β Routing: Schedules and Conditions | SealedGateEvalSeconds |
how often a sealed gate's key is checked (default 1 s) |
| 16 β Routing: Delivery Pipeline | PrewarmRadius |
how far a changed destination is pushed (default 30 m) |
| 28 β Targeted: Bed | OffsetMeters |
least distance of the bed-side gate from the bed |
| 40 β Ux: Advanced Schemes | LiveMarkersRadius Β· LiveMarkersReassertSeconds |
marker circle radius, kept small (default 6 m) Β· how often the marker list is re-sent (default 30 s) |
| 41 β Targeted: Corpse Run | GateTtlMinutes |
how long a gate stands if the grave is never emptied (0 = no limit, default) |
| 41 β Targeted: Corpse Run | ClearanceMeters Β· MinRoomMeters |
room a gate prefers (default 10, 1β30) Β· the hard floor (default 2, 0.5β10) |
| 41 β Targeted: Corpse Run | SearchRadiusMeters |
how far out to look, widened if nothing fits (default 40, 5β150) |
| 41 β Targeted: Corpse Run | OffsetMeters |
least distance of the grave-side gate from the tombstone (default 2) |
| 41 β Targeted: Corpse Run | MaxGraveAgeMinutes |
skip graves older than this (0 = no limit, default) |
| 155 β WildcardB: Portal Caps | Enabled Β· PerCreatorCap |
portal caps on (off by default) Β· portals per player (default 6) |
π₯οΈ Local β this server's file only, never sent
| Section | Settings |
|---|---|
| 1 β General | AcceptUnverifiedBuild β let destructive passes run on an unverified build Β· HeartbeatEnabled Β· HeartbeatIntervalMinutes β the "still alive" line in the server log |
| 5 β Foundations: Repair | AutoRepair β apply fixes on a schedule, not only report them Β· DryRunDefault β repair only reports unless told --apply |
| 40 β Ux: Advanced Schemes | LiveMarkersEnabled (off by default) |
| 84 β Ops: BarrkBot Export | Enabled (on) Β· IntervalSeconds (60, never faster) |
| 9 β Routing: Core Β· 90 β Economy: Core Kernel Β· 83 β Ops: Snapshot | File (routing.json) Β· File (economy.json) Β· DirName β where this server keeps its files |
Needs: BepInExPack Valheim 5.4.2360 or newer β and only that; it also brings HarmonyX, which every patch here runs on.
- Built on the architecture of the sibling mod Wonderland.
A Valheim mod by Wubarrk β ravenirongames.com. Bug reports welcome on Discord.
CHANGELOG
Changelog
1.1.1
Changed
- Valheim 1.0.32 is a verified build. The reassert and repair passes run on 1.0.30, 1.0.31 and now 1.0.32. On 1.1.0 they
refused on a 1.0.32 server, with one
[VersionMigration]warning at boot, unlessAcceptUnverifiedBuildwas on; the census, health check and export kept running. Iron Gate's 1.0.32 hotfix changes no game code except its version number (checked on the Linux dedicated server's own files); the Peaceful and Dark Meadows fix is in the alt-biome data, which nothing in this mod reads. So the portal, ZDO and terrain data the mod works on are unchanged from 1.0.31. Nothing else in TortalPortal Lite changed.
1.1.0
The corpse run catches up with the full TortalPortal (1.5.x to 1.6.5), cut down to what a server can do for the plain game.
Added
- The grave ward. When a player lands at their grave through the corpse gate, the server puts vanilla's own Staff of
Protection shield (
Staff_shield) on them:ArrivalWardMinuteslong (default 1, 0 = off; vanilla shields last whole minutes), soakingArrivalWardAbsorbdamage (default 10,000, so effectively unbreakable). It stops every blow, arrow, fall and drowning hit. It cannot end on a swing (no server can see one), and burning or poison already ticking still lands. Granted through the game's ownRPC_AddStatusEffect, so players need nothing.
Changed
- The bed-side gate opens where the player really wakes. The server waits (up to 60 s) for the respawn and anchors the gate at the new character's first position. Through 1.0.x it took "the most recently seen bed this player owns", and the game never clears a bed's owner, so a player with several claimed beds got whichever the sweep saw last.
- The placement search widens once, to at most 100 m (was twice, to 200 m), and skips a widening that would re-scan the same ground: shorter server hitches on a death in dense terrain.
- The toast now says to step into the arch, and "where you woke" instead of "at the world spawn".
- Verified on Valheim 1.0.30 and 1.0.31. Every patch target was checked against the 1.0.30 and 1.0.31 change notes; the only touched types are a private-to-public move and a network constant. Repairs refused on these builds until now.
Fixed
- Switching the corpse run off left its gates standing for good: the engine just stopped, nothing tore them down, and after a restart they were permanent dead frames. Off now takes every gate down, and leftovers are still reaped.
- The "most open spot" fallback ranked a flower as worse than a boulder (the 2 m floor for small props dropped out when ranking), so a crowded spot could steer a gate into rocks. Ranking now keeps the floor.
- A gate could be placed at the world origin (usually open ocean) when no bed, temple or position was known. Now the raise waits and retries instead.
- Re-mints were unlimited and a failed mint cost nothing, so a broken prefab or a client sending destroys could loop for ever. Now at most 6 per gate, then it closes and the player is told.
- A raise that failed 15 times was given up for the rest of the run. Now 5 tries (2, 4, 6, 8 s apart), then the same grave is tried again a minute later.
- The "gate opened" toast could go to the dying body before respawn. It now waits until the player is up.
Package
- The store page is rebuilt to README schema v3.1, and the package now carries
TortalPortalLite.pdb(matching the DLL). - One zip for Hexium and Thunderstore.
1.0.11
Changed
1.0.21added to the verified-build list. An asmdiff of the 1.0.17 and 1.0.21 server assemblies (60 types changed, 7 methods removed) was read against every Harmony target and game call this mod makes: none of them is a changed member. The only change on a type the mod patches isZNet.RPC_PeerInfo(network version 40 to 41, which is what ServerSync's prefix sits on);WearNTearchanged only its support cache, which the mod does not patch.1.0.20was never checked and is not on the list, so on 1.0.20 the reassert/repair passes still refuse unlessAcceptUnverifiedBuildis on. SeeSubsystems/Foundations/VersionMigration.cs.- Rebuilt and checked against Valheim 1.0.21 (network version 41): a static reference check against both the client and dedicated-server assemblies, plus a headless 1.0.21 dedicated-server boot.
- Website link moved to https://www.rossgilsonlabs.dev.
- Needs BepInExPack Valheim 5.4.2360.
- No behaviour change on 1.0.17 or earlier.
1.0.10
Changed
1.0.17added to the verified-build list. On 1.0.17 the version gate refused the reassert/repair passes ("outside this mod's verified build list") until it was added. An asmdiff of the 1.0.16 and 1.0.17 server assemblies shows six changed types (ItemDrop,ItemDrop.ItemData,Inventory,VariantDialog,Version,ZDOMan) and no removed or re-signed member. The only one this mod calls into isZDOMan, and its single change is the body of the private save helperAddObjectsPerChunk, which this mod neither patches nor calls;Versionchanged only in its.cctor(CurrentVersion= 1.0.17). SeeSubsystems/Foundations/VersionMigration.cs.- Rebuilt against Valheim 1.0.17 (client build 25730771 / dedicated server build 25730807, network version 40, unchanged from 1.0.16) and re-verified: a static reference check against both the client and dedicated-server assemblies, plus a headless 1.0.17 dedicated-server boot.
- No behaviour change on 1.0.16 or earlier. Includes the 1.0.9 portal-cap fix below for any server still on 1.0.8.
1.0.9
Server-Enforced Portal Caps (feature 10) now removes the portal that was just built, never an older one, and never touches a portal that already exists.
Fixed
- A player at the cap lost their other portals and kept the new one. The engine chose its victims
by sorting each creator's portals on
ZDO.DataRevisionand taking the highest, on the belief that it is a creation-time proxy. It is a per-ZDO write counter -ZDO.IncreaseDataRevisionisDataRevision++(:73879) andZDO.Loadresets it to 0 (:74601) - so a portal that has been tagged and paired outranks one placed a second ago. On the live server a player already holding 12 who built three more in a few seconds lost a portal built 14 minutes earlier, then one built about two hours earlier, and only then the portal they had just placed. The players' report was exactly this: "it destroys your other portals rather than preventing you from building".
Changed
- A portal is judged once, when it first appears.
PortalCapTrackerkeeps the set of portals it has already seen. A portal that first shows up while its creator already holdscapof them is the one removed; when several arrive together the first-built is kept. Nothing is ranked any more, so an existing portal can never be picked. (A stock client still cannot be stopped from placing the piece - it builds locally and the server only sees the ZDO arrive - so removing it about a second later is the server-side form of "you can't build another".) - Existing portals are never removed. Switching the cap on, lowering it, or restarting with someone already over it used to destroy the excess; now that player just can't build more until they are back under the cap. Everything present when watching starts counts as already existing: the first census snapshot after startup, a cap switched off and on again, a gap of 15 s or more between engine updates, and any snapshot taken while no player is connected. The log says how many portals it is watching and names any creator already over the cap.
- The message says what happened: "Portal limit reached (12 of 12). The portal you just built was removed - dismantle an old one to make room." (was "Your newest extra portal was removed."). One message per burst, and the removal log line now carries the portal's tag.
- Each census snapshot is evaluated once instead of re-tallied on nearly every frame (the
RpcZdoDataHookfast path fires after every incoming ZDO packet, and the old sweep rebuilt its per-creator lists each time). Counting is unchanged: every portal in the census, charged to itss_creator; a linked pair is two; portals with no creator are not counted.
1.0.8
Corpse-Run Gate (feature 11) hardened on both of its promises: both ends always appear, and neither end can be destroyed.
Fixed
- The bed-side gate was being destroyed within seconds of every death, by this mod and vanilla
working against each other. Vanilla's own
Game.ConnectPortalsreconciler tears down any portal link whose partner points atNone(:100474-100481), and a one-way gate's grave-side end points atNoneby design - so within 5 s of every raise vanilla cleared the origin's connection, and the phantom factory's generic "connection target is gone, reap the phantom" rule then deleted the bed-side portal outright. Both halves are fixed: the ends are mintedTPL_engineownedso the generic sweep leaves them to the engine that owns them, and the one-way link is re-asserted from aGame.ConnectPortalspostfix - synchronously, inside vanilla's own call, so the intermediate disconnected state is never sent to a client. - Only the grave-side end was protected. The bed-side end was an ordinary phantom, so
ZDOMan.ReleaseNearbyZDOShanded it to whichever player was nearby every 2 s and it took damage like any other piece. Both ends are now registered with the newTargetedPortalProtection. - Nothing stopped a client from deleting a gate.
ZDOMan.RPC_DestroyZDOapplies whatever ZDOIDs a client sends it with no sender check, andZDOMan.DestroyZDObroadcasts a removal to every client whenever the server itself owns the ZDO - either one deleted a corpse-run portal outright, with health and ownership irrelevant. The mod already had the right primitive (Core/Hooks/HandleDestroyedZdoHook) but onlyAuditEnginewas registered against it, observe-only. Both removal paths are now vetoed for a protected portal, and a blocked removal force-sends the ZDO so the client that had already dropped its local copy gets the portal back. - A death could be dropped silently and never retried.
RaiseGatereturned without a word if the tombstone had gone invalid in the 3 s settle window, and a failed mint logged an error and gave up - in both cases after the death had already been recorded as seen, so it was never reconsidered. Raises are now retried with backoff, and a death is only marked handled once a gate genuinely stands. - A death was only noticed while the player was connected. Detection now runs off the tombstone table instead of the connected-player list, so dying and immediately disconnecting still produces a gate - standing and waiting, with the notification deferred until the player is back.
- Nothing re-built an end that went missing. The maintenance pass only ever looked at the destination, and only when its ZDO was still valid. It now checks both ends every pass and re-mints whichever one is gone, at the position it was placed at, re-linking and re-asserting afterwards.
ResolveOrigincould return(0,0,0)- open ocean on most seeds - for a player with no claimed bed when the Start Temple could not be resolved. It now falls back to the player's last known position, and says so.- Gates expired mid-run.
TtlMinutesdefaulted to 30, which is shorter than a deep Mistlands or Ashlands corpse run. Replaced byGateTtlMinutes, default0= no limit, so a gate lives exactly as long as the grave does. (A new key rather than a new default: BepInEx keeps whatever value an existing.cfgalready holds, so a changed default never reaches a server that has run before.)
Changed
- Damage immunity is now argued from where damage is actually arbitrated, and enforced in four
independent places. Every damage source in the game - melee, arrows, a troll's AoE swing, an
Aoecomponent's fire damage-over-time - ends atWearNTear.Damage(HitData), whose entire body ism_nview.InvokeRPC("RPC_Damage", hit)(:150275), andZNetView.InvokeRPCroutes tom_zdo.GetOwner()(:82901).ZRoutedRpc.HandleRoutedRPCthen drops the call outright whenZNetScene.FindInstancefinds no object (:83692-83711). A dedicated server pins its reference position at(1e6,0,1e6)every physics tick (:100340) and so never instantiates anything at a real player coordinate: a portal ZDO the server owns receives every damage call aimed at it and discards 100% of them, with no health threshold involved. So the mod (1) holds server ownership againstReleaseNearbyZDOS, (2) vetoes both removal paths, (3) no-ops everyWearNTearentry point that can lower health or destroy the piece, for the case where a server does hold an instance, and (4) keeps the 1e9 health and wear-immunity field overrides for the window where a client holds a copy. De-targeting (Piece.m_randomTarget/m_primaryTarget) is retained but is now documented as a courtesy, not a defence - it never stopped area damage. - A watchdog now counts what it had to fix, and a status line every 5 minutes reports both ends standing plus every damage call, removal and ownership steal the protection refused. "Is anything getting through" is an answerable question instead of a guess.
ClearanceMetersis a preference, scanned in descending tiers, instead of all-or-nothing. On the live server 40 of 40 logged placements came backCompromiseand not one reachedClear: atClearanceMeters=15(and at the 10 m default) nowhere in a Valheim forest has that much room from every tree, rock and building piece, so every gate fell through to a last-ditch "most open spot" that weighs a metre of room against thirty metres of walking - which is how gates ended up 26-40 m from the bed they were meant to stand beside, and why the warning it logged every single time carried no signal. The search now tries the configured clearance, then progressively smaller requirements, and takes the closest spot honouring the best one available, never accepting less than the newMinRoomMetershard floor while any spot in range can meet it - widening the search radius (up to 4x, capped at 200 m) first. NewReducedquality for "met a smaller requirement in full", so a warning again means something. Log lines now read as room actually obtained versus room needed.- Death-detection latency cut from tens of seconds to a tick or two. Respawning destroys the
player's character ZDO and mints a new one (
Game._RequestRespawn:100278-100293), so a character that is replaced or disappears opens a short watch that scans the player's last known position - which is where a fresh tombstone is - instead of waiting for the paced background sweep's cursor to come round. That sweep's own budget went from 20 to 48 sectors per tick. - New config in section
41 - Targeted: Corpse Run:MinRoomMeters(default 2),MaxGraveAgeMinutes(default 0 = no limit),GateTtlMinutes(default 0 = no limit, replacesTtlMinutes).
Known gaps
Core/Hooks/RpcZdoDataHook's leading-ZDOID capture reads theintcount field thatZDOMan.RPC_ZDODatawrites first (:77133), not a ZDOID, so the value it hands its postfix handlers is garbage. Nothing in the corpse-run path depends on it;AuditEngineis the only consumer. Left alone in this release rather than changed blind.- Older
Subsystems/Foundations/doc comments still cite 1.0.12 decompile line numbers, now ~32-43 lines low against 1.0.15/1.0.16.
1.0.7
Changed
1.0.16added to the verified-build list. An asmdiff of the 1.0.15 and 1.0.16 server assemblies shows every type this mod patches or calls (Game,ZDOMan,ZDO,ZDOExtraData,ZDOVars,ZRoutedRpc,ZRpc,ZNetScene,ZNetView,TeleportWorld,ZDOID,ZPackage,ZNet,FejdStartup) is unchanged; of the 19 types that did change, onlyTerrainCompis one this mod has any relationship with (TargetedGroundProbereads the_TerrainCompilerwire format directly rather than calling the class), and the changed members (Awake,ApplyOperation,PaintCleared,.cctor) are notLoad/Save/ApplyToHeightmap, the ones that format depends on. SeeSubsystems/Foundations/VersionMigration.cs.- 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.
1.0.6
Fixed
- A modded client was kicked for not having TortalPortalLite installed β a server-only mod.
(
Plugin.csConfigSyncinitializer.) The plugin setDisplayName,CurrentVersionandMinimumRequiredVersionon itsConfigSyncbut neverModRequired, which ServerSync defaults totrue(ServerSync.cs:1148).GetFailedServerfails every check whereModRequired && !ValidatedClients.Contains(rpc)(ServerSync.cs:1248), and a client without the DLL never validates, so it was disconnected withConnectionStatus.ErrorVersionnaming this mod. A vanilla client has no ServerSync and sends no version list, so the check never ran and the bug stayed invisible on vanilla servers; it only bites a modded client whose pack correctly omits the server-side mods.ModRequired = falseis now set explicitly.MinimumRequiredVersionstays: not required, but a client that does load it must match versions.
1.0.5
Fixed
- Automatic repair never ran on Valheim 1.0.15 β and said so every five minutes.
1.0.15was outside the verified-build list, so withAutoRepair = trueevery scheduled--applypass was refused by the Version Migration gate and the identical refusal line was logged each interval (230 times on one server).1.0.15is now verified: a per-class diff of the decompiled 1.0.12 and 1.0.15 server assemblies shows the entire portal write path (Game,ZDOMan,ZDO,ZDOExtraData,ZDOVars,ZRoutedRpc,ZNetScene,TeleportWorld) is byte-identical, and the classes that did change (Terminal,ZNet,TerrainComp,Inventory,Piece,Player,Character) changed outside every member this mod patches or calls.
Changed
- The automatic repair pass now idles quietly while the destructive gate is closed. It logs one
warning explaining why (and what to do about it) the first time a scheduled
--applypass would be refused, skips silently after that, and logs a "resumed" line the moment the gate opens β whether byAcceptUnverifiedBuildhot-reloading,DryRunDefaultflipping to report-only, or a future build being verified. The console/RemoteCommandrepair --applyverb still refuses with its full message every time it's asked.
1.0.4
Fixed
- Corpse-run gates no longer spawn inside rocks, trees or buildings. The 1.0.3 scanner measured clearance 1.3 m from each object's ZDO pivot, so a black-forest boulder whose pivot sat 4 m away but whose mesh spanned 8 m passed as "clear" and gates were planted inside rock walls. Every obstacle is now a disc sized from the prefab's real collider extents (read off the prefab asset and scaled by the object's stored scale), generated locations count with their exterior radius (their static geometry has no ZDOs), and clearance is measured edge-to-edge from the portal frame. Creatures, items, projectiles and the tombstone itself are not obstacles.
- Gates sit on the real ground. Height now comes from a headless re-run of the client's own
heightmap build β
HeightmapBuilder.Build's corner-biome blending plus the zone's_TerrainCompilerterraforming deltas β instead ofWorldGenerator.GetHeight, which returns the un-blended single-biome height and knows nothing about hoe/pickaxe work; at biome borders and on levelled bases that was metres off. The pivot, the frame's four base corners and a 2 m ring of surroundings must all be dry, lava-free, level and contiguous. - A death inside a dungeon re-anchors the grave-side gate to the dungeon's exterior entrance (same 64 m zone as the interior) instead of inside a room wall; the player is told.
- Stray gates after a restart β gate bookkeeping lived only in memory while the portal ZDOs persist, so every restart with an unrecovered tombstone left the old pair standing and raised a second. Any corpse-run portal the running server did not raise is now reaped.
- Both ends of one gate can no longer share a clearing when a player dies beside their own bed.
- A new tombstone now gets 3 s to stop falling/sliding before its position is used.
Added
ClearanceMeters(section41 - Targeted: Corpse Run, default10, range1β30): edge-to-edge room every gate (both ends) must have from every tree, rock, building piece, portal and location. Sub-metre props (mushrooms, flowers, berry bushes) only need 2 m. When nothing inside the search radius honours it, the most open dry spot found is used and the server log says so β with distance, nearest obstacle and shortfall β so you can widen the search.SearchRadiusMeters(same section, default40, range5β150) replaces 1.0.3'sMaxOffsetMeters(default 8, which could never satisfy a 10 m clearance; the rename stops a savedMaxOffsetMeters = 8from silently capping the new search). The scan is rings outward, so the gate still lands as close to the grave as the clearance allows; the search also auto-extends past any obstacle that covers the anchor itself (a death inside the start temple or a ruin).- One
[CorpseRun]log line per gate end on every death: quality (Clear/Compromise/WaterSurface/LastResort), position, distance, slope, margin vs nearest obstacle, the obstacle census, and the anchor's height above the modelled ground as a sanity readout.
Changed
28 - Targeted: Bed/OffsetMetersand41/OffsetMetersare now the minimum distance from the bed / tombstone (ranges widened to 1β20); the maximum isSearchRadiusMeters.- Bed-side gates no longer accept underwater ground; an over-water bed gets a shoreline spot or a surface-floating gate like any ocean death.
- The death toast reads "near your bed" / "at the world spawn" and mentions when the grave gate exits at a dungeon entrance.
1.0.3
Added
- Configurable Corpse-Run Offset (
CorpseRunMaxOffsetMeters). AddedCorpseRunMaxOffsetMeters(default8.0, range3.0β25.0meters) to config section41 - Targeted: Corpse Run, governing the outer radius searched when seeking unobstructed ground for the recovery gate.
Improved
- Intelligent Corpse-Run Gate Placement. Replaced simple fixed-offset positioning with an
adaptive concentric-ring clearance algorithm adapted from Wonderland's starting grant placement:
- Concentric scanning rings (2.5m, 4.0m, 6.0m, up to
CorpseRunMaxOffsetMeters) testing angular candidate points around the tombstone or player bed. - Multi-directional slope and clearance checks rejecting steep drop-offs, cliffs, and walls.
- Proximity collision checks against trees, rocks, buildings, and existing structures via
ZdoSpatialQuery.FindNearensuring a 2.5m clear buffer. - Shoreline and water handling ensuring the portal never spawns submerged under water while gracefully accommodating coastal beach ground above the waterline.
- Interior dungeon detection: preserves elevated interior elevations (
y > 1000m) without snapping down to exterior world heightmap levels. - Automatic yaw alignment orienting the destination portal to face directly toward the tombstone upon arrival.
- Concentric scanning rings (2.5m, 4.0m, 6.0m, up to
Changed
- Indestructible Tombstone Recovery Portal. Prevented monsters and world damage from destroying
the corpse-run destination portal at the grave before the player can retrieve their gear:
- Mob AI de-targeting: sets Piece
m_randomTarget = falseandm_primaryTarget = falseso mobs ignore the portal and do not agro or attack it. - Full client damage immunity: configures
WearNTearfields on the portal ZDO with immune damage modifiers across all physical and elemental damage types, disables structural support wear, and sets health to 1,000,000,000 HP. - Server ownership pinning: patches
ZDO.SetOwnerandZDO.SetOwnerInternalto keep the destination portal pinned to the dedicated server (ZDO owner 0L). Because Valheim clients only execute and broadcast damage to objects they own, unowned server pieces drop client-side monster attack damage. - Autonomous health watchdog: a 2-second background check ensures any transient damage is immediately healed until the grave is claimed or the TTL expires.
- Mob AI de-targeting: sets Piece
1.0.2
Fixed
- Version Migration falsely flagged verified builds as unverified. The running-build check
compared
Version.GetVersionString()β which carries a platform prefix on some builds (l-1.0.12on Steam Linux,dw-/dl-on Deck,ms-on Microsoft Store) β against the bare1.0.12in the verified list, so it never matched. Now comparesVersion.CurrentVersion(bare major.minor.patch); the prefixed string is still logged for humans. - Version Migration always reported the portal-prefab registry as empty. The
Game.instance.PortalPrefabHashcheck ran during the plugin's own Awake, before the game'sGameobject exists β so it always failed, andrepair --applywas permanently refused regardless ofAcceptUnverifiedBuild. The check now runs once on the first tickGame.instanceexists (whichGame.Awakepopulates synchronously), logs the verified prefab count, and only errors on a genuinely empty registry.
1.0.1
Added
- BarrkBOT Portal Export. Writes
barrkbot_portals.jsonβ per-player portal counts, cap/over-cap flags, and world totals β atomically toBepInEx/config/TortalPortalLite/, on a floor of once every 60 seconds, built directly against BarrkBOT's own published ingestion contract (no HTTP, no webhook, no auth β file-only; BarrkBOT reads, it never writes). Force an immediate rewrite withremovekey tpl barrkbot. Config section84 - Ops: BarrkBot Export(Enabled,IntervalSeconds).
1.0.0
Added
- Phantom Anchor Fabrication. An admin declares a named "phantom anchor" β a destination point
with no real player-built portal behind it β in
routing.json'sphantomAnchorssection (fields:Name,Position{X,Y,Z},RotationY,Void).Void:truemakes it invisible and non-portal;Void:falsemakes it a real, visible portal anchor. The server creates and maintains it automatically, so Sealed Gates and Parked Terminals have somewhere to point that nobody has to physically build. - Progression-Gated Sealed Gate. A portal that resolves to nothing until a named global key (a
boss defeat, or a custom flag) becomes true, then opens to its declared destination. Declared in
routing.json'ssealedGatessection (Name,Position,GlobalKey,Destination,SealedTag,OpenTag). Config section11 - Routing: Schedules and Conditions, keySealedGateEvalSecondscontrols how often the global key is re-checked (default 1s). - HealthScan. A background pass (config section
4 - Foundations: Health,HealthIntervalSeconds, default 30s) that flags odd-count same-tag portal groups β which always leave one permanently orphaned by vanilla's own pairwise-only pairing β and stale dangling connections. It deliberately does not flag a portal whose one-way connection is intentional, like the Corpse-Run Gate below; those are a designed feature, not a defect, and are excluded from this report. - Repair. Turns HealthScan's findings into safe, bounded, reversible fixes β retag an orphaned
portal, clear a dangling link. Dry-run by default (config section
5 - Foundations: Repair,RepairDryRunDefault), reporting what it would do; runremovekey tpl repair --applyto actually write the fixes. It automatically snapshots the world's portal state first, sorestorecan always undo the whole batch. - Metrics. Portal counts (total/connected/managed), per-tag/per-biome/per-builder breakdowns,
and a position-based heuristic for transit counts and "top routes," read via
removekey tpl metrics. Config section7 - Foundations: Metrics. - Version Migration. A boot-time safety check: is this a Valheim build the mod has actually been
verified against, and does the game's own portal-prefab registry look intact. If either check
fails, destructive passes (
repair --apply) refuse to run rather than risk corrupting the world, unless an admin explicitly opts in viaGlobalConfig.AcceptUnverifiedBuild. - Compat.
removekey tpl compatreports which Harmony patches exist on the handful of vanilla methods this mod also touches, so "my portals keep unpairing" support questions have one command's worth of answer. It also runs an explicit, named check against two specific sibling mods this server is expected to run alongside β Wonderland and GetOffMyLawn. Both were read directly: both patchZDO.SetOwner, but both vetoes are scoped only to their own tracked objects (Wonderland's buoyant water items, GetOffMyLawn's ward-held building pieces) and never fire on a portal ZDO β confirmed no interference. - Architecture. Not a player-facing feature β this is the subsystem/registry/tick-order design the whole mod is built on: Census first, then Audit, then HealthScan, and so on, each with disjoint write ownership over the portal data it touches.
- The Ore Gate. A per-portal upgrade, declared in
economy.json'soreGatessection (Portalposition,AllowAllItemsbool, defaulttrue, optionalExitDistancefloat) that lets ore/metal actually pass through that specific gate and/or extends how far in front of it a traveller steps out. A real, vanilla-client-honoured gameplay perk written directly onto that one portal's data, not a global setting. - Server-Enforced Portal Caps. An optional per-player portal limit (config section
155 - WildcardB: Portal Caps,PortalCapEnabled, off by default,PortalCapPerCreator, default 6). Once a player's live portal count exceeds the cap, their newest excess portals are destroyed automatically and they're toasted about it β genuinely unbypassable by an unmodified client, unlike a client-side placement limit. - Corpse-Run Gate. On a tracked player's death, the server automatically raises a private,
temporary portal near their claimed bed (or the world spawn if they have none) leading straight to
their tombstone, so gear recovery doesn't mean a bare-handed run back into danger. This is a
genuine one-way trip by design, not a round-trip pair β there is no automatic portal back from the
grave to the bed. The gate self-destroys once the grave is emptied/despawned or after a
configurable TTL (config section
41 - Targeted: Corpse Run,CorpseRunTtlMinutes, default 30). - DestinationPrewarm. An always-on safety net: the instant any managed portal's destination
changes, nearby players' clients are immediately force-sent the new destination data, so a
re-point is never followed by someone walking through into a "dead" transit because their client
hadn't received the update yet. Config section
16 - Routing: Delivery Pipeline,PrewarmRadius, default 30m. - Fast-Transit Mode (and Parked Terminal). A managed portal kept permanently "unconnected" on
purpose; instead of the normal portal-connection walk-through, the server itself detects a player
stepping up to it and teleports them directly. Fast-Transit is the quicker variant (roughly 2-4
second fade instead of vanilla's roughly 8 second swirl), used once the destination zone is
confirmed already generated and safe to land in β otherwise it automatically falls back to the
normal, slower transit rather than risking a bad landing. Declared in
routing.json'sparkedTerminalssection (Distant:false= Fast-Transit,Distant:true= the plain Parked Terminal base mechanism). - Live Portal Markers. Any portal named with a leading
#in vanilla's own rename box gets a removable, labelled marker on every connected player's map, via vanilla's own persistent-event system β the marker disappears the moment the portal is renamed away from it. Off by default (LiveMarkersEnabled, config section40 - Ux: Advanced Schemes).
Notes
- This release is the result of narrowing a much larger internal research catalog β 263 candidate portal mechanisms explored during R&D β down to exactly the 14 features above for the shipped product. Everything else was removed from the codebase entirely, not merely disabled.