BROHEIM_CYBRP-OmtrtaFishRadarFix icon

OmtrtaFishRadarFix

Patches OneMapToRuleThemAll so Ocean fish (Fish1–Fish12) get client radar pins. OneMap only hooks Character/Beehive; Valheim fish use the Fish component.

Last updated a week ago
Total downloads 26
Total rating 1 
Categories Mods Client-side
Dependency string BROHEIM_CYBRP-OmtrtaFishRadarFix-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2200 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.2200
DrummerCraig-OneMapToRuleThemAll-1.2.10 icon
DrummerCraig-OneMapToRuleThemAll

Synchronize map exploration (fog of war) and map pins across all players. Turn on automatic map pins and/or client-side radar. Server and client options are highly configurable.

Preferred version: 1.2.10

README

OMTRTA Fish Radar Fix

Small companion patch for OneMapToRuleThemAll.

Problem

OneMap lists fish in OneMapToRuleThemAll.creatures.txt (Ocean category, Fish1Fish12) and IdentifyCreature() matches them, but radar pins are never attached because the mod only hooks:

  • Character.Awake
  • Beehive.Awake

Valheim fish use the Fish component, not Character. Serpents and Leviathan work; schools of perch/tuna/etc. do not.

What this mod does

  1. Harmony postfix on Fish.Awake → attach RadarPinComponent when the fish keyword is tracked and client radar is on.
  2. On local player spawn → scan existing Fish in the world (same logic).

Safe to run alongside OneMap: skips objects that already have RadarPinComponent.

Requirements

  • BepInEx (Valheim pack)
  • OneMapToRuleThemAll 1.2.10+ with server radar enabled and Ocean/Fish entries in creatures.txt

Install

  • r2modman / Thunderstore Mod Manager: install this mod after OneMapToRuleThemAll.
  • Manual: extract to BepInEx/plugins/ (or let the mod manager handle it).

Server and client: client-side radar only — install on clients that want fish radar. The dedicated server can load the DLL harmlessly; radar display is local.

Upstream

If DrummerCraig adds native Fish.Awake support to OneMap, this patch becomes optional and can be removed.

Bug report template for the author: fish are in creatures.txt but ReScanForKeywordChanges() never iterates Fish[].

Credits

Patch developed for BROHEIM Valheim server.