RainproofBuildings
Protect your buildings from rain and water wear.
模組介紹 作者原文
Rainproof Buildings
Protect your buildings from rain and water wear.
Keep your Valheim builds protected from rain and water wear, with configurable filters, wear limits and damage rates. The default settings fully protect every piece that would normally take this type of wear, while preserving wet visuals.
Rainproof Buildings does not repair existing damage or prevent attacks, loss of structural support, snow, ash, lava or other damage sources. Roof and shield checks remain part of the game's normal behavior.
Features
- Full protection by default, or a configurable health floor and wear rate.
- Protect all eligible pieces, include selected name patterns, or exclude selected patterns.
- Coverage for both exposed rain wear and submersion wear.
- Nonnegative wear damage: already damaged pieces are never healed, and rain protection never subtracts from another damage source.
- A focused Harmony transpiler changes only the rain/water condition and contribution inside the original wear method.
- No per-frame plugin update, world scans, per-piece health cache or wet-piece log messages. Filter text is parsed when settings change.
Requirements and installation
Tested on Valheim 1.0.16, Windows, with BepInExPack_Valheim 5.4.2350 (BepInEx 5.4.23.5). The package declares denikson-BepInExPack_Valheim-5.4.2350 as its dependency. Harmony is supplied by that pack; no separate Harmony installation is needed.
Mod manager
- Close Valheim normally.
- Install RainproofBuildings by NegroniForge in your Valheim profile using r2modman or Mod Manager. Allow the manager to install the declared dependency.
- Start the game through that profile. After the first launch, the configuration file is available in the profile's config editor.
Manual installation
- Close Valheim and install BepInExPack_Valheim according to its instructions.
- Copy this package's BepInEx folder into your Valheim installation folder. The plugin should be at BepInEx/plugins/NegroniForge-RainproofBuildings/RainWearProtection.dll. The DLL and configuration keep their original technical names; the plugin appears as Rainproof Buildings.
- Start the game once to generate the configuration. Keep only one copy of this plugin installed. If upgrading an earlier local RainWearProtection installation, back it up and remove its old DLL before installing this package; retain the existing configuration.
Configuration
File: BepInEx/config/negroniforge.valheim.rainwearprotection.cfg
| Section | Setting | Default | Meaning |
|---|---|---|---|
| General | Enabled | true | Enable the configured protection. False uses normal game wear. |
| Damage Filter | Filter Type | ALL | ALL selects every eligible piece. INCLUSIVE selects matching names. EXCLUSIVE selects names that do not match. |
| Damage Filter | Filter List | empty | Comma-separated, case-sensitive substrings of internal GameObject names, not translated display names. Spaces around entries and empty entries are ignored. |
| Rain Damage | Max Damage | 0 | Fraction of maximum HP that rain/water may remove, from 0 to 1. Zero fully protects; 0.25 sets a 75% health floor; 1 permits wear down to zero where game rules allow it. |
| Rain Damage | Damage Per Minute | 5 | Percentage points of maximum HP per normal rain step. Five means 5 HP on a 100-HP piece or 20 HP on a 400-HP piece, limited by the health floor. |
The game schedules rain steps after more than 60 seconds of eligible wet time. This is not continuous damage or a catch-up rate. Normal timer behavior is retained when conditions or settings change.
Finite Max Damage values are clamped to 0..1; non-finite values become 0. Negative or non-finite Damage Per Minute values become 0. A zero rate prevents rain/water wear on selected pieces. Pieces below the configured health floor keep their existing HP; they are not repaired. Other damage can still take them below that floor.
Unselected pieces use normal game wear. An empty INCLUSIVE list selects nothing; an empty E
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: