CombatStats
A combat meter: who dealt how much damage and of which kind, over the last 30 s, 5, 10 or 30 min. Compact window under the minimap, detail window with the breakdown. Client-side; a server can optional
模組介紹 作者原文
CombatStats
A combat meter for Valheim 1.0: who dealt how much damage, of which damage type, over the last
30 seconds, 5, 10 or 30 minutes.
Two windows. A compact one appears under the minimap when a fight starts and fades out when it
ends: one row per player, the damage, the share of the total, and a bar split into the damage
kinds it is made of. A detail window has the whole picture - a tab per window length, the totals
for the window, and rows that open into their damage kinds.
Client-side. Other players need nothing, and neither does the server; when they do have the mod,
the numbers get better (see Together with other players).
Keys
| Key | What it does |
|-----|--------------|
| F10 | Cycles the compact window: shown while fighting, always shown, off. |
| Ctrl+D | Opens and closes the detail window. Esc closes it as well. |
Both are configurable, and either can be set to None to turn it off.
What it counts
Out of the box, damage dealt to creatures, by players.
The rest is off by default and each has its own switch, in the settings panel or in the config
file: damage taken, healing, damage to trees, ore and buildings, and what tamed creatures and
summons deal (charged to the player they follow, or to a row of their own). Only something that
belongs to a player counts there: wild creatures never get a row.
Some details worth knowing:
- The numbers are what the target really took, after resistances, armour and the world modifiers,
measured on the client that owns the target. The killing blow counts in full, overkill included.
- Fire, poison and spirit are counted as they tick, not when the blow lands, so a target that dies
early or walks into water never produces the rest of the damage - which is what really happened.
- The average is damage per hit, not per second: a quiet stretch inside a window does not dilute
it. A blow carrying two damage kinds is one hit.
- Damage to trees, ore and buildings is measured as it is swung, before the target's own
resistances, so those rows are marked with a ~ like any other estimate.
Together with other players
The client that owns a creature is the only one that sees what it really took, so that client
shares what it recorded with the other players who have the mod. What that means in practice:
| Everyone in the fight has the mod | Every player's numbers are complete and exact for everyone. |
|-----------------------------------|------------------------------------------------------------|
| Some do not | Their damage still shows up, as long as a player with the mod owns the creature. |
| Nobody else does | You see your own damage, and everything happening on creatures your own client owns. Your blows on creatures owned by someone else are recorded as sent - before resistances and armour - and marked with a ~. |
Packets are ignored when they come from farther away than ShareRadius (96 m), so a fight on the
other side of the map stays out of your meter. ShareDamage turns the sharing off entirely; you
then still see your own numbers.
A player without the mod is unaffected: the packets are named after the plugin, and a client that
does not know the name drops them. Nothing here is part of the game's version check.
Settings
The ones that get changed often are in the game, behind the settings button of the detail
window: when the compact window shows itself, where it sits, how wide, how large and how solid,
how many rows it lists, the window it adds up, the size of the detail window, and the switches
for the extra meters.
The rest lives in BepInEx/config/muindor.CombatStats.cfg, and in ConfigurationManager if it is
installed:
| Setting | Default | What it does |
|---------|---------|--------------|
| Enabled | true | Record combat and show the windows. [synced] |
| HistoryMinutes | 30 | How far back the meter remembers; also the longest window. |
| CountDamageTaken, CountHealing, CountObjectDamage, CountPets | false | The extra meters. |
| CompactKey, DetailKey | F10, Ctrl
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: