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.
About this mod Author’s original text
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.
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.
Install these first, or the mod will not work: