You are viewing a potentially older version of this package. View all versions.
Bagr-DamageMeter-1.4.1 icon

DamageMeter

Boss fight stats for co-op: live panel plus a table after each kill with damage, taken, blocks, parries and deaths per player, and an inventory log. Same DLL on server and clients.

By Bagr
Date uploaded 3 days ago
Version 1.4.1
Download link Bagr-DamageMeter-1.4.1.zip
Downloads 8
Dependency string Bagr-DamageMeter-1.4.1

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 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.2350

README

DamageMeter

Boss fight stats and an inventory log for a co-op Valheim server. Same DLL on the server and on every client.

What you get

  • After every boss kill a table is shown on screen (about 25 s) and in the chat: damage dealt (with % and DPS, max hit), damage taken, damage blocked, number of blocks, perfect parries, deaths, an "other / DoT" line and a few joke awards. Players without the mod show as "n/a". A death recap line says what killed whom.
  • Server log BepInEx/dmgmeter.log: BOSS lines with the full table, MOB lines for bigger fights, DEALT lines every 5 minutes, INV lines (see below). History and records are kept in BepInEx/dmgmeter-data/.
  • Chat / F5 console command /dmeter (not /dmg, that name is used by Server devcommands): last, top [damage|taken|blocked|parry|deaths], me, records, peers, inv [name].
  • Inventory log (new in 1.3.0): every client reports a snapshot of its inventory and AdventureBackpacks backpack at login and whenever it changes. The server logs what changed since that player was last seen, so you can tell what was gained or lost between two logins. Players are told about this in the chat at login. Turn it off with ReportInventory = false in the client config.

Live panel (new in 1.4.0)

During a boss fight (and bigger fights) a compact panel in the style of the game's own UI shows, per player: damage, share with a colour bar, DPS, damage taken, perfect parries and deaths. Your own row is gold and framed. It fades in and out and hides itself in menus, inventory and map.

  • F8 shows or hides it, Shift + F8 resets the position. /dmeter live toggles it, /dmeter livetest shows a demo for 20 seconds.
  • Size, position, width, opacity and bars are in the config (section "Live panel"). By default it is small and sits on the right side of the screen, away from the Groups list.
  • The look follows the CombatMeter mod by Likhtenvald (MIT), see THIRD_PARTY_NOTICES.md.

How it works

  • Damage dealt is measured on the client that owns the creature (after armor and resistances), so it is the real HP removed. Taken, blocked, parries, deaths and inventory are measured by each player's own game.
  • Everything goes to the server over the game's own routed RPC; the server builds the table and sends it back to all players.
  • Older versions (1.0 and 1.1) keep working with a 1.3 server; they just report less.

Notes

  • Poison and fire ticks have no attacker in the game; they are credited to the last player who applied fire or poison to that creature (1.2+), otherwise counted as "other / DoT".
  • Items inside backpacks other than AdventureBackpacks are not included.

Changelog

  • 1.4.1 smaller default size of the live panel (scale 0.8, width 400).
  • 1.4.0 live panel with contribution bars, DPS, taken, parries and deaths; blocks, parries and damage taken are now also counted in bigger non-boss fights.
  • 1.3.0 inventory and backpack snapshots with a login diff on the server, /dmeter inv, notice in the chat.
  • 1.2.0 awards, death recap, history and records, /dmeter commands, DPS and max hit, DoT credited to the last applier.
  • 1.1.0 boss summary table (dealt, taken, blocked, blocks, parries, deaths, other/DoT), stars fix.
  • 1.0.0 first release (damage dealt only).