Dvergr Pieces Patch
Makes Tequila's Dvergr Pieces work on Valheim 1.0. Contains none of his files - it installs his mod as a dependency and repairs it in memory at load.
模組介紹 作者原文
Dvergr Pieces Patch
Makes Tequila's Dvergr Pieces
work on Valheim 1.0.
This package contains none of Tequila's files. It installs his mod as a dependency —
your mod manager will fetch it alongside this one — and repairs it in memory when the game
loads. His assembly is never modified, never patched on disk, and never redistributed.
Everything you actually build comes from his mod. This is one 12 KB plugin that makes it
run again.
What was broken
- The build menu threw on every refresh
Valheim 1.0 refactored PieceTable. The field m_availablePieces changed from
List> (pieces grouped by category) to HashSet (a flat set), and the
old per-category list was renamed to m_availablePiecesByCategory.
The PieceManager bundled inside Dvergr Pieces still reads m_availablePieces as
List>. Because the name still exists with a different type, this is not a
load failure — its patches throw MissingFieldException the moment they run, the mod's
category never gets its slot, and Hud.UpdateBuild then throws
ArgumentOutOfRangeException on every frame the build menu is open. Over a thousand
exceptions in a few minutes of play.
This patch removes those two broken patches from PieceTable.UpdateAvailable and installs
equivalents that use the renamed field. Nothing else of PieceManager's is touched.
- The pieces were missing from the new build menu
Valheim 1.0 replaced the old category tab bar with a tag-driven menu (ByUsagePieceList)
that filters on a new field, Piece.m_usage. Prefabs authored before 1.0 have no usage
tags, so they matched no category and only ever showed under "Show All".
The pieces are now tagged so they appear where you would expect them. m_usage is a flags
field, so a piece can sit in more than one category — the chests and the shelf are both
Storage and Furniture, and the pole and beams are both Building and Architecture.
| Menu category | Pieces | Count |
|---|---|---|
| Furniture | bed, table, chair, stool, both chests, shelf | 7 |
| Stairs | metal spiral (left + right), marble spiral (left + right), wooden stairs | 5 |
| Building | black marble block, wooden pole, wooden beam, wooden beam 2x1 | 4 |
| Lighting | black core torch, placeable lantern, wisp torch | 3 |
| Storage | both chests, shelf | 3 |
| Architecture | wooden pole, wooden beam, wooden beam 2x1 | 3 |
| Walls | both dvergr walls | 2 |
| Decor | marble head, vines | 2 |
| Flooring | wooden floor | 1 |
| Doors and Windows | dvergr door | 1 |
| Crafting | fermenter | 1 |
That is 26 prefabs, covering all 24 pieces the mod advertises — the two spiral staircases
each ship as a separate left and right prefab.
All of them also appear together under a "Dvergr" category, the way the original mod
had them before 1.0. Because m_usage is a flags field, that is an extra bit rather than a
move: the bed is under Furniture and under Dvergr. It can be turned off — see
Configuration.
ByUsagePieceList builds its tag list into two instance arrays at construction, and the
rest of the menu reads only those, so the category is added by appending one entry to each
— no change to the enum and nothing patched in the BCL. The bit is picked from what the
array actually holds rather than hardcoded, so a category added by another mod (Jötunn can
do this since 2.30.1) will not collide with it.
- The fermenter did not accept newer meads
A bug Tequila acknowledged in his 2.9.0 changelog and never got to. The Dvergr fermenter's
brew list was baked into its asset bundle in 2024, so it refused everything added
afterwards — seven meads in total, from Ashlands and Bog Witch.
Rather than hardcoding a list that would rot on the next update, the fermenter now copies
any missing conversions from the vanilla fermenter at load time, so future meads work
automatically. Its 30% faster fermentation is unchanged.
Installing
Install it with a mod manager and Dvergr Pieces comes with it. If you are installing by
hand, you need both: Tequila's Dvergr Pieces 2.9.0 and this plugin, in
BepInEx/plugins.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: