
You are viewing a potentially older version of this package. View Latest Version
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.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 inBepInEx/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 = falsein 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.
F8shows or hides it,Shift + F8resets the position./dmeter livetoggles it,/dmeter livetestshows 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.2 the live panel width follows the longest player name (config: Auto width).
- 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,
/dmetercommands, 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).