You are viewing a potentially older version of this package. View all versions.
Truncated-PlayerPinColors-1.0.0 icon

PlayerPinColors

Pick the colors of your player pin on the map: one for the figure and name, one for the sword and shield. Other players with the mod see them, and other mods can reference them.

Date uploaded 9 hours ago
Version 1.0.0
Download link Truncated-PlayerPinColors-1.0.0.zip
Downloads 19
Dependency string Truncated-PlayerPinColors-1.0.0

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
ValheimModding-Jotunn-2.30.3 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.30.3

README

PlayerPinColors

Pick the colors of your player pin on the map. Other players with the mod see your colors, and other mods can read them so they can match each player's colors for chosen effects or customizations.

Features

  • Allows players to customize their pin on a shared map to help identify who is who. All players can modify for their character:
    • Player Primary Color: the figure in your map pin, your name under it, and your own map arrow.
    • Player Secondary Color: the sword and shield in your map pin.
    • Name Color: Option to keep your name in the game's color while the pin uses your primary color.
  • Admins can decide to enforce visually distinct colors for all players. Tools are provided to help easily manage color assignments in-game.
  • Optional server-side enforcement can require modded players' primary colors to be perceptually distinct. Rejected colors show five valid suggestions as color blocks: click one to use it or click the refresh button for five more.
    • Colors show up for everyone in the session who has the mod, even players who are far away. Players without the mod see the normal pins.

Installation

The app must be installed on the server. Additional client installs are required when distinct color enforcement is enabled, optional by default otherwise. A player without the mod can still join, but sees the normal pins, and their colors are neither shared nor checked. Players appear on each other's maps only when they turn on public position on the large map, as in the base game.

Mod manager (recommended): install with Gale, r2modman or Thunderstore Mod Manager. Dependencies are installed for you.

Manual:

  1. Install BepInExPack_Valheim and Jotunn.
  2. Extract the plugins folder from this package into Valheim\BepInEx\plugins\PlayerPinColors\.

Configuration

  • Easy to set in-game picker: open the large map and click the player icon near its bottom-right corner (customizable location). The panel shows a live preview of your pin and name.
    • Alternatively, type /mycolors in chat to open the color panel.

For mod authors: using a player's colors

PlayerPinColors stores each player's colors on their player ZDO under the keys below. Every key starts with this mod's plugin ID (Truncated.PlayerPinColors.), so it can't be mistaken for a vanilla value or another mod's. Reading one is always a deliberate choice. The values are strings: "#RRGGBB", or "" when the player uses the game's color.

Key Value
Truncated.PlayerPinColors.PrimaryColor "#RRGGBB" or ""
Truncated.PlayerPinColors.SecondaryColor "#RRGGBB" or ""

Integration details can be found in the FAQ / Wiki.

Compatibility

  • Required mods: BepInExPack_Valheim, Jotunn.
  • Multiplayer: install on the server and on every client. Players without the mod can still join, but see the normal pins.
  • Known conflicts: other mods that change the player pin icon or name color on the map (such as MinimapPlayerColor). Use only one of them.

Credits

  • Mod Icon created without AI by Truncated; all rights reserved.
  • Built using ClaudeCode with Jotunn and BepInEx.
  • Pin recoloring approach inspired by MinimapPlayerColor by JakubecDev.

CHANGELOG

Changelog

All notable changes to this mod are listed here. Versions follow Semantic Versioning.

1.0.0

  • Initial release.