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

MapPins

Map pins that every player shares, kept by the server, plus a key that pings where you look.

Date uploaded 2 hours ago
Version 1.0.0
Download link FlyingHose-MapPins-1.0.0.zip
Downloads 9
Dependency string FlyingHose-MapPins-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

README

Map Pins

Part of FlyingHose's Modpack. Needs only BepInEx.

A pin you place on the map shows up on every player's map. Tick it off or remove it and everyone sees that too. A ping key pings the spot you are looking at.

Shared pins

Place a pin the usual way: double-click the map, pick an icon, type a name. When the server accepts it, the pin appears for everyone, and the person who joins tomorrow gets it too. Left-click a pin to tick it off. Right-click to remove it. All three work on a shared pin for every player, not only the one who placed it.

Shared pins use the game's own map pins, so they look and behave like the pins you already know.

What is shared and what stays private

  • Pins you place while the mod is on and Pins.ShareNewPins is true are shared.
  • Pins you already had stay private. The mod never touches them.
  • Pins the game places for you stay private: your death marker, boss and location pins, and your bed.
  • Shared pins are never written into your own saved map. They live on the server. If you remove the mod, your own pins are exactly as you left them and the shared ones are gone from your map.
  • If the server refuses a pin (the list is full, you placed too many too fast, or shared pins are off) or does not answer within 10 seconds, that pin stays on your map as a private pin and you get a short message.
  • A pin placed with no name is shared too.

Where the server keeps the pins

The server keeps one list per world and saves it a moment after each change:

BepInEx/config/YesuBuildKit.MapPins/<world name>.pins

On a game you host, your game is the server and the file is on your machine. It is plain text, so you can read it or back it up. If the file is damaged, the server moves it aside as <world name>.pins.bad-<date> and starts that world with no shared pins. It never writes over a damaged file.

Everyone needs the mod

Install on the server and on every client. The server refuses a client that does not have the mod or has a different version. A player without the mod would not see the pins and could not place any.

Limits

  • The server keeps at most Pins.MaxPins shared pins per world, 500 by default and never more than 5000. When the list is full, new pins stay private.
  • A pin name is at most 64 characters. The characters $, <, and > and control characters become spaces, the same as the game does.
  • Each player can send about 2 changes a second, with a burst of 10. The server refuses changes beyond that: a new pin stays private, and a tick or removal it refused is undone on your map within about 10 seconds.
  • Only the five icon pins you can place from the map's icon buttons are shared.
  • The server checks every request. A position must be a real position inside the world.

Ping

Press the ping key (; by default) to ping the spot you are looking at, up to 300 m away. It is the game's own map ping, so everyone sees the same marker the game shows when you middle-click the map. The key works only when you can move: not with a menu, the map, the chat box, or the inventory open. Pings are limited to once a second by default.

Settings

File: BepInEx/config/com.yesucs.yesubuildkit.mappins.cfg

The server decides the rules. On a server, its values are used and your own config file is ignored for them while you are connected. Every server setting shows in Althing and can be set per world.

Setting Default Range Who decides
Pins.Enabled true on or off server
Pins.MaxPins 500 1 to 5000 server
Ping.Enabled true on or off server
Ping.CooldownSeconds 1 0 to 60 server
Pins.ShareNewPins true on or off you
Keys.PingKey Semicolon any key you
General.Enabled true on or off you
General.DebugLogging false on or off you

Pins.Enabled off hides the shared pins from every map and keeps new pins private. The server keeps the list, and the pins come back when it is turned on again.

Pins.ShareNewPins is only yours. Turn it off and the pins you place from then on stay private, while you still see everyone's shared pins.

General.Enabled off applies no patches and sends no network messages, and needs a restart. A server with the mod on refuses a player who has it off.

When something goes wrong

If a game update breaks the part that shows shared pins on the map, or the ping key, that part turns itself off after a few failed frames and writes one line to the BepInEx log saying so. The rest keeps working. If the server cannot save the pin file, it writes one error line and keeps trying every 10 seconds.

Known limits

  • A pin you place and then remove within a moment, before the server has answered, is removed for everyone as soon as the server does answer.
  • If you quit within a moment of placing a pin, before the server has answered, the pin may be lost.

CHANGELOG

1.0.0

  • Ticking or renaming a shared pin on the map can no longer be undone before it is sent. The once a second refresh from the server used to put the old tick back if it came first. And a change from another player can no longer be sent back as if it were yours.
  • The map's shared pins cost less. With many pins, the checks that run a few times a second no longer build new lists or clean every pin name each pass.
  • If a game update breaks showing pins on the map or the ping key, that part now turns off after a few failed frames with one log line, instead of logging an error every 30 seconds.
  • A pin file the server cannot save is reported once, not every 10 seconds, and the log says when saving works again.
  • Pins.MaxPins (1 to 5000) and Ping.CooldownSeconds (0 to 60) now show their ranges in Althing and the config file. Clearer descriptions for every setting.
  • The README lists every setting with its default, range, and who decides, and says what happens when the server refuses a tick or a removal.
  • More tests.

0.1.1

  • Settings can now be set per world, and the host or a server admin can change them in the game with the Althing mod.

0.1.0

  • First release.
  • Shared map pins: a pin you place appears on every player's map. Ticking it off and removing it reach everyone. Players who join later get the current pins.
  • The server keeps the pins for each world in a file and saves them as they change.
  • A ping key that pings the spot you are looking at with the game's own map ping.
  • Server-synced config and a version check on join.