You are viewing a potentially older version of this package. View all versions.
Onononoki-ShipPins-1.0.1 icon

ShipPins

ValheimPlus add-on. V+ pins only the vanilla cart, raft, karve and longship on the map. ShipPins pins every ship and cart the same way, modded ones included, such as OdinShip boats and LoxWagon wagons.

Date uploaded 5 days ago
Version 1.0.1
Download link Onononoki-ShipPins-1.0.1.zip
Downloads 140
Dependency string Onononoki-ShipPins-1.0.1

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 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.2351

README

ShipPins

ValheimPlus shows your boats and carts on the map, but only the four vanilla ones. ShipPins shows all of them.

V+'s displayCartsAndBoats option pins the vanilla Cart, Raft, Karve and Longship. Ships and carts added by other mods, such as the OdinShip boats or the LoxWagon wagons, never get a pin. ShipPins takes over that V+ routine and runs it for every ship and cart in the game.

What it does

  • Pins every object built on the game's own ship or cart, vanilla and modded. There is no list to maintain, so new ship and cart mods are picked up automatically.
  • Uses V+'s own pin code, so the pins look and behave exactly like V+'s. Each pin is the ship's build icon at double size, it updates every 5 seconds, it hides for the ship you are steering, and it is never saved to your map.
  • Also pins vanilla objects V+ misses: the Ashlands Drakkar, and the Catapult and Battering Ram, which are built on the game's cart.
  • Modded ships and carts are labeled with their in-game name. The vanilla four keep V+'s labels.
  • Client side only. It is not needed on the server.

Requirements

  • ValheimPlus (Grantapher fork) with [Map] displayCartsAndBoats = true in its config.
  • BepInExPack Valheim.

Config

The file is BepInEx/config/onononoki.ShipPins.cfg.

Setting Default What it does
Enabled true Pins every ship and cart. Off gives V+'s own four pins back.

Compatibility

  • Works with mods that build their ships and carts on the game's own ship and cart, which is the usual way. Checked against the code of OdinShip and LoxWagon.
  • If a V+ update changes its pin code, ShipPins logs a warning and steps aside, and V+ keeps showing its own pins.
  • Safe to add or remove at any time. Nothing is saved to the world or character.

How it works

A Harmony prefix on V+'s Minimap.UpdateMap postfix runs the same steps through V+'s own CheckPin, icon list and pin list, for every prefab that has a Ship or Vagon component.

CHANGELOG

Changelog

1.1.0

  • Works on its own now, ValheimPlus is no longer needed. With V+ installed, ShipPins replaces V+'s own boat and cart pins, so each ship has one pin.
  • Client-side only: the pins show whatever the server's V+ map setting says.
  • Pins of destroyed ships no longer stay stranded on the map when the game reuses their object record.
  • Pins show up as soon as the map loads.
  • New setting UpdateSeconds (default 2): how often the pins follow the ships and carts.
  • Pins are 1.5 times the normal pin size, with the name below the icon instead of over it. New setting IconSize (1 to 2, V+'s pins are 2).
  • Thanks to aasmall for the client-side mode and both pin fixes, first made in aasmall's fork.

1.0.2

  • Added links to the GitHub page for feedback and bug reports. Shorter description.

1.0.1

  • Small build cleanup. No gameplay changes.

1.0.0

  • First release.
  • Runs V+'s boat and cart map pins for every ship and cart prefab, modded ones included, in place of its four vanilla ones.
  • Same look as V+'s pins. Modded ones are labeled with their in-game name.