catosaurluna-ColoredPortals icon

ColoredPortals

Type a color in front of a portal tag, such as red=Home, to color the portal swirl, flame, smoke, and glow. Portals still pair by tag.

Last updated an hour ago
Total downloads 8
Total rating 1 
Categories Mods Tweaks Skins Utility Deep North Update
Dependency string catosaurluna-ColoredPortals-0.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 icon
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.2360

README

Colored Portals

Give each Valheim portal its own color. Type a color in front of the portal's tag, and the swirl, flame, dark smoke, and glow of the portal change to match.

red=Home     portal tag "Home", colored red
blue=Home    portal tag "Home", colored blue
Home         portal tag "Home", normal color

Portals still link by tag. A red "Home" portal links to a blue "Home" portal exactly as two uncolored "Home" portals do.

More screenshots and the full feature list: https://mods.catosaur.xyz/#coloredportals

A blue portal swirl in Valheim with a red inner ring.

A green portal swirl in Valheim, with the tag prompt showing the portal is connected.

Two portal arches with glowing blue and green text.

Install

Install with a mod manager such as r2modman or the Thunderstore Mod Manager. The package depends on BepInExPack Valheim, which the manager installs for you.

Without a manager, copy ColoredPortals.dll into BepInEx/plugins/.

Install it on the server and on every client. Clients without the mod have not been tested.

Color a portal

  1. Walk up to a portal and use it (E by default). The tag box opens.
  2. Type a color, an equals sign, and the tag. For example: green=Base
  3. Press Enter. The portal changes color.

Rules:

  • The color comes before the =. Capital letters do not matter, so Red=Base works.
  • Spaces around the = are ignored. red = Base works.
  • Only the first = splits the text. red=a=b gives the tag a=b.
  • Type a tag with no color in front to remove the color.
  • Reopen the box to see the current setting, shown as red=Base. Change the color and press Enter. The tag stays the same, so the link stays the same.

The tag can be up to 32 characters by default. Vanilla Valheim allows 10.

Colors

These are the default colors. Type any name from this list.

Name Hex
red #E53935
blue #1E88E5
green #43A047
yellow #FDD835
purple #8E24AA
orange #FB8C00
white #FFFFFF
cyan #00ACC1
pink #D81B60

You can change the list in the settings file (see below).

If the word before the = is not on the list, the whole text becomes the tag, and the game shows the valid color names. Check the spelling, or add the color to the palette.

What changes

  • The swirling particles around the portal.
  • The flame in the swirl. It is dimmed by default so it does not glow too strongly.
  • The dark smoke.
  • The glowing parts of the portal.

The swirl shows only when the portal is linked to another portal and you stand close to it. That is how vanilla portals work, and this mod does not change it.

What does not change

  • The base texture of the portal wood.
  • The orange light of the portal.
  • The connection burst that plays when two portals link.
  • Map pins.

Settings

The settings file is BepInEx/config/catos.coloredportals.cfg. Edit it with a text editor while the game is closed, or in the mod manager's config editor.

Setting Default What it does
Tags / MaxTagLength 32 Longest allowed tag, from 1 to 128 characters.
Colors / Palette the list above Color names and hex values, separated by commas. Format: name=#RRGGBB.
Feedback / EnableFeedback true Shows a message when input is refused or a color is not recognized.
Tuning / FlameBrightness 0.45 Brightness of the recolored flame, from 0 to 2. Lower is dimmer.
Debug / DumpPortalHierarchy false Writes portal details to the log. Turn it on only when reporting a bug.

Messages

Message What to do
Add a tag after the '=' (for example red=Home). Type a tag after the =.
The portal tag is empty. Type a tag.
The tag is 40 characters. The limit is 32. Shorten the tag, or raise MaxTagLength.
'pink' is not a color. Valid colors: ... Check the spelling, or add the color to Palette. The text is saved as a plain tag.
Nothing before '=', so the whole text is used as the tag. Put a color name before the =, or leave out the =.

Compatibility

  • Tested on Valheim 1.0.32.
  • Clients without the mod have not been tested.

Report a problem

Include the BepInEx log (BepInEx/LogOutput.log) and the steps that caused the problem. If a color does not show, turn on Debug / DumpPortalHierarchy, restart the game, load the portal, and send the log lines that start with [dump].

Developers

Build notes are in AGENTS.md. The development plan is in DOCS/DEVPLAN_COLORED_PORTALS.md.

Credits

Made by Catosaur.