Confirm with your password

TheGreatestPortal

Pick each portal's destination from a list or on the map, set a default for new portals, mark favorites, or leave it open and choose where to go when you step in.

Client & Server

· Website · 💗 Donate

Stars
3
Downloads
222
Version
1.2.2
Updated
Author
DeathMonger
Virus scan
✓ Scan successful
Runs on
Client & Server
Required by
2 mods

Description

The Greatest Portal

Choose where each portal goes.

  • Press Use on a portal to name it and pick its destination from a list of every portal in the world, or click Pick on map and choose it on the map. No tag pairing, no portal hubs.
  • Mark one portal as your default and every portal you build afterwards leads there.
  • Leave a portal open (no destination) and stepping into it shows the map: click any portal, on the map or in the list on the left, and you are there.
  • Mark favorites: they sit at the top of every list and carry a star on the map.
  • Take a detour: hold a key as you step in to go somewhere else just this once, leaving the portal's own destination alone.
  • Lists can be searched and grouped by biome.

Install on the server and on every client: a player without it is refused at connect, and so is a server without it. Versions do not have to match. Each side declares the oldest version it can still talk to, which has been 0.1.0 for every release so far; a release that changes what the two sides say to each other raises that floor and says so in the changelog.

How it works in play

Setting up a portal. Press Use (E) on it. The panel (drag its title to move it, its bottom-right corner to resize it) shows:

Field What it does
Name Up to 32 characters (configurable). Names do not have to be unique.
Star beside the name Marks the portal you are standing at as a favorite; click again to take it off. Takes effect at once.
Destination list Every other portal in the world, favorites first, each with where it leads and its distance. Above it sit Recents (the portals you most recently traveled to or from), Others' Recents (where everyone else has been lately) and Recently Created (the newest portals), 5 each by default. A star at the end of every row marks a favorite and flips it: filled for a favorite, hollow for not. The first entry, Open portal, means no fixed destination. Up/Down move the selection, Enter confirms; a double-click on a row does both. Right-click a row for Travel here now, Rename, Favorite / Un-favorite and Show on map; renaming works on any portal, wherever it is.
Search Type part of a name (or a biome) to filter the list.
Group by biome Sections per biome, with a Favorites section first; a favorite is listed only there. Click a header to fold or open that group; Expand all / Collapse all do the lot. All of it is remembered between sessions.
Default new portals to point here New portals you build lead here automatically.
Point all portals to here Points every portal in the world at this one. Shown only when this portal is your default and some portal does not lead here yet. Click twice to confirm. Admins only unless the server allows everyone.
Pick on map Saves the name and the default setting, then opens the map: click a portal there or in the list.
Travel here now In a row's right-click menu: travel to that portal right now. The portal you are standing at keeps its own destination.
Show on map Opens the map centered on the chosen destination, with every portal drawn.

Destinations are one-way: Home -> Swamp does not make the swamp portal lead home. Set the swamp portal's destination too, or leave it open. A portal with a destination behaves exactly like a paired vanilla portal, including the usual item restrictions.

Traveling through an open portal. Step in and the map opens on your position. It is the map you already know, with everything you normally see on it, and every portal drawn on top as a pin. The portal under the pointer grows and lights up with a halo in its own color and shows its name, so you can see what a click will do; hovering a row in the list lights up that portal's pin too. With TheGreatestMap installed the pins wear the color it gives portals, pulse and all; without it they are white, as vanilla pins are. The list on the left starts with your recent portals, then favorites, then the rest alphabetically, each with where it leads and its distance; it has the same search box and biome grouping as the panel. Click a pin or a row to travel there. The pin button at the end of a row puts the map over that portal instead, for a look at where it is before you commit. Right-click a pin or a row for a menu: travel there, center the map on it, favorite it, rename it. The list can be dragged by its heading and resized from the grip in its bottom-right corner, and stays where you put it. Esc, or stepping out of the doorway, closes the map and you stay. The usual rules apply: no traveling with ore, or during a boss fight if the world forbids it.

Going somewhere else just this once. A portal with a destination normally takes you straight there. Hold the detour key (default Alt) as you step in and the destination map opens instead: pick anywhere, travel, and the portal is unchanged for the next person who uses it. Handy when a remote portal is set to lead home but you want a different stop this time. The same thing is on the panel: press Use, right-click a portal in the list and choose Travel here now.

On the map at other times. Press P while the large map is open to show every portal with the list, click a portal to center the map on it, press P again to hide them. Right-click a portal to mark a favorite.

Keys (configurable)

Key Action
E on a portal Configure it
Up / Down, Enter, Esc in the panel Move the selection, confirm, cancel
Mouse wheel over a list Scroll by a few rows per notch (configurable)
P on the large map Show or hide every portal and the portal list
Alt held while stepping into a portal Choose a destination for this trip only

Configuration

BepInEx/config/DeathMonger.TheGreatestPortal.cfg. Rules are server-synced; the rest is yours.

Section Setting Default Meaning
General Mod Enabled true Turn the whole mod off without removing the DLL; portals go back to pairing by name. Not server-synced, and read once at startup
General Lock Configuration true While on, only the server's admins (adminlist.txt) can change the Rules, from their game; everyone else sees them read-only (server-synced)
Rules Max Name Length 32 Longest portal name (server-synced)
Rules Open Portals Show The Map true An open portal shows the map when you step in. When false it goes nowhere, like an unpaired vanilla portal (server-synced)
Rules Adopt Existing Connections true Portals this mod has not configured keep their vanilla tag pair (server-synced)
Rules Anyone Can Redirect All Portals false Let any player use "Point all portals to here"; otherwise admins only (server-synced)
Rules Anyone Can Rename Remote Portals true Let any player rename portals from the list without standing at them; otherwise admins only (server-synced)
Keys Toggle Portal Pins P On the large map: show or hide every portal
Keys Detour Key LeftAlt Hold while stepping into a portal to pick a destination for that trip only
Display Always Show Portal Pins false Draw every portal on the large map all the time
Display Show Distances true Distances in the lists
Display Recent Portals 5 How many recent portals the Recents section shows; 0 hides it
Display Other Players Recent Portals 5 How many portals other players have used lately to show in Others' Recents; 0 hides it
Display Recently Created Portals 5 How many newly built portals to show in Recently Created; 0 hides it
Display Map List Size 380,660 Width and height of the portal list on the map, remembered when you drag its corner
Display Map List Position 20,-12 Where that list sits, from the top-left of the map, remembered when you drag it by its heading
Display Group By Biome false Group the lists by biome; the switches on the panel and the map change it too
Display Panel Size 680,600 The portal panel's size, saved when you drag its corner
Display Panel Position 0,0 The panel's offset from the screen center, saved when you drag its title
Display List Scroll Rows 4 Rows a list moves per mouse-wheel notch
Display Collapsed Groups empty Which biome groups are folded away, written for you as you fold them
Display Show Portal List On Map true The list on the left of the map
Display Auto Close Grace Seconds 0.5 Leave the doorway for this long and the destination map closes
Display Show Messages true Small top-left messages

Favorites, recent portals and the default portal are yours alone and are kept per world in BepInEx/config/TheGreatestPortal/<world>-<seed>.txt.

Adding the mod to an existing world

Nothing is lost. Each portal keeps its name (the vanilla tag). A portal that was paired by tag keeps that portal as its destination, in both directions; an unpaired portal becomes an open portal. From then on names no longer pair anything: change destinations in the panel. (XPortal's stored destinations cannot be carried over: it remembers them by an id the game renumbers on every world load.)

Removing the mod later leaves the names in place and vanilla pairs by tag again.

Console commands

Command What it does
tgp_status Portal count, picker state, favorites
tgp_list Every portal with its destination
tgp_default <name> / tgp_default clear Set or clear the default portal
tgp_refresh Ask the server for the portal list again

Compatibility

Replaces XPortal, TargetPortal, AnyPortal and PortalRules; do not run it alongside them. Works with mods that add new portal pieces as long as they register them as portals with the game (most do). Custom portals' item rules are respected.

Known limitations

  • Gamepad: the panel and the map list are mouse and keyboard only for now.
  • Portal pins on the map use vanilla's portal icon; no icon of their own yet.

Changelog

1.2.2 Latest
  • Naming a portal no longer runs the game's own text prompt as well. The panel is a copy of that prompt, and its name box is the game's GuiInputField, which subscribes its submit handler in Awake rather than in the prefab. The prompt is hidden when the panel is built, so the copy started inactive and that Awake waited until the first time the panel opened — long after the panel had detached the box from the prompt's wiring. From then on every Enter in the panel also ran TextInput.OnInput, which reads the real prompt's text box and hands that text to whatever was waiting on it: another mod's sign, ship or cart, or one that no longer exists. With Neobotics' HUD Compass installed that last case threw a NullReferenceException on every portal rename. The copy is now woken as it is made, so detaching it sticks.
1.2.1
1.2.0
  • Two new sections at the top of both destination lists. Others' Recents shows where everyone else has been lately: the server now notes both ends of every trip anyone takes, so this is the one part of the list that knows something your own game could not work out. Recently Created shows the portals built most recently. Each shows 5 by default and can be turned off in the settings. Older clients and servers still understand the newer ones, in both directions.

  • Every row carries a star at its right end, filled when the portal is a favorite and hollow when it is not. Clicking it flips the favorite, and the name no longer needs a star in front of it.

  • Centering on a portal slides the map there instead of cutting to it, so you can see which way and how far it is from where you are. A drag or a zoom during the slide stops it rather than fighting it.

  • Right-clicking a row or a pin on the map opens a menu instead of favoriting outright, which left no way to ask for anything else and was easy to do by accident. The menu can rename a portal from the map, which until now meant walking to one and pressing Use.

  • A favorite keeps its ordinary place in the list as well as appearing under Favorites. Starring a portal used to take it out of its biome, which is exactly where you would go looking for it.

  • The portal list on the map can be moved by dragging its heading and resized from the grip in its bottom-right corner, and it stays where you put it. It also starts at the top of the map view and a little wider than before.

  • Where a portal leads had been squeezed to a letter and an ellipsis in that list. The distance column now takes only the room it needs, and the rest goes to the destination; a wider list gives it more still.

16 older entries, full version history & downloads →

Files

5 files · 222 KB download

Loading files…

Manual installation instructions
1

Install BepInExPack Valheim

BepInExPack Valheim is required to run mods in Valheim.

Download BepInExPack Valheim 5.4.2360 · View mod page

Check out the mod page for detailed installation instructions.

2

Install TheGreatestPortal

This mod must be installed on both the client and the server.

Download TheGreatestPortal 1.2.2

Extract the ZIP and place the file(s) into the BepInEx/plugins/ folder inside your Valheim game folder.