
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.π 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.