Valgrind
Dynamic, progressive skill loss on death with Jötunn ServerSync for Valheim.
模組介紹 作者原文
Valgrind
Valgrind is a lightweight mod designed to scale death penalty skill loss dynamically based on character progression.
About the Name: Valgrind
In Norse mythology, Valgrind ("The Gate of the Slain") is the sacred outer gate of Valhalla through which fallen warriors pass into the afterlife. In this mod, Valgrind acts as the gatekeeper of your mortality—fairly weighing and scaling your skill loss upon death rather than inflicting an indiscriminate flat penalty.
Features
- Progressive Skill Protection: Scales death penalty skill loss based on progression, protecting high-level masteries while keeping early-game deaths consequential.
- Multiple Calculation Modes: Supports Tiered Brackets, Continuous Curve scaling, and independent Per-Skill tier evaluation.
- Server-Synchronized Rules: Synchronizes and locks server rules across all connected clients using Jotunn.
Installation Type
- Location: Must be installed on both the Server and the Client.
- Enforcement: Client versions must match the server version.
Manual Install
- Ensure BepInEx and Jotunn are installed.
- Extract the downloaded.zip archive.
- Copy Valgrind.dll into your Valheim/BepInEx/plugins/ folder.
- Launch the game once to generate the default configuration file.
Configuration
The configuration file is automatically created at BepInEx/config/com.bigai.valgrind.cfg after running the game once.
| Section | Setting | Default | Description |
|:--- |:--- |:--- |:--- |
| 1 - General | CalculationMode | TieredBrackets | Method used to calculate dynamic skill loss (TieredBrackets, ContinuousCurve, PerSkill). |
| 1 - General | UseTopNSkillsOnly | false | If true, average skill level is computed using only the player's top N highest skills. |
| 1 - General | TopNSkillsCount | 5 | Number of top skills to factor into the average when UseTopNSkillsOnly is enabled. |
| 1 - General | ResetAccumulatorOnDeath | true | If true, partial XP progress toward the next level is wiped on death (vanilla behavior). |
| 1 - General | EnableDebugLogging | false | Enables verbose calculation logging in the BepInEx console. |
| 2 - Tiered Brackets | EarlyGameLossPercent | 8.0 | Skill loss % for skill/average levels 75. |
| 3 - Continuous Curve | CurveMaxLossPercent | 8.0 | Maximum skill loss % applied at skill level 0. |
| 3 - Continuous Curve | CurveMinLossPercent | 1.0 | Minimum skill loss % applied at skill level 100. |
Controls & Commands
- Keybinds: None.
- Admin Commands: None.
Compatibility & Safe Removal
- Multiplayer: Must be installed on both server and clients with Jotunn.
- Save Integrity: Safe to add or remove mid-playthrough. Valgrind modifies only the skill loss calculation upon death.
AI Disclosure
I made this mod using AI. Most of the code in this mod was AI generated. If you have an issue with this, I completely understand and urge you to not use this mod. This mod ("Valgrind") is meant as a lightweight mod for small servers that don't need all the bells and whistles of a more complex mod.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: