Dismantleheim

版本 v0.1.0·更新於 2026-10-05

Satisfactory-inspired queued Mass Dismantle (refunds) and Mass Delete (no drops). Ctrl-paint select, Shift+M3 filter, hold Mouse3 to confirm. Infinity Hammer Tools + Delete hotkey.

模組介紹 作者原文

Dismantleheim

Satisfactory-inspired queued selection for Valheim with two modes:

  • Mass Dismantle — reclaim construction materials like the normal Hammer (vanilla refunds).
  • Mass Delete — erase selected objects with no material or harvest drops. Deleting containers can destroy their contents.

Nothing is removed on hover, select, tool switch, or mode switch. Hold Mouse3 to confirm.

| | |

| --- | --- |

| Version | 0.1.0 (beta) |

| GUID | com.sonicdm.valheim.dismantleheim |

| Dependencies | BepInExPack Valheim, Jötunn |

| Soft dependency | Infinity Hammer (Tools menu entries) |

How to get the tools

With Infinity Hammer (recommended)

  • Install Infinity Hammer (+ Server Devcommands / World Edit Commands as required by IH).
  • Run hammer_menu to spawn the Infinity Hammer.
  • Equip it → build menu → category hammer → Dismantleheim - Mass Dismantle / Dismantleheim - Mass Delete (Hammer icons; IH loads BepInEx/config/tools/infinity_tools*.yaml).
  • Or press Delete (ActivateKey) while in hammer placement mode.

First launch after install writes the tools file; restart once if the entries are missing from the menu.

Without Infinity Hammer

Equip a hammer → enter build/placement mode → press Delete, or console: dismantleheim mode dismantle|delete. No extra hammer item.

Controls (while active)

| Input | Action |

| --- | --- |

| Click / hold LMB | Add piece under aim (does not unselect) |

| Hold Ctrl + wave aim | Mass-select valid pieces under the cursor (add-only; no box) |

| Ctrl + click | Unselect one hovered piece |

| Shift + Mouse3 | Sample prefab filter (vanilla pipette suppressed) |

| Hold Mouse3 | Confirmation ring; release early cancels |

| Right click | Normal build menu |

| Escape | Cancel hold or clear queue |

| ActivateKey again | Deactivate |

HUD shows MASS DISMANTLE — Returns Materials or MASS DELETE — No Drops, plus N selected. Mass Delete warns when queued containers hold items.

Unfiltered selection: removable Pieces only. Mass Delete may include rocks/trees/props after an explicit prefab sample. Mass Dismantle never queues environment.

Dry-run

Removal.DryRunOnly = false by default (live dismantle/delete). Set true to log the plan only with no world deletes — useful for testing. Read docs/authority.md before enabling live remove on a valued world.

Authority

  • Mass Dismantle (live): ward access → CheckCanRemovePiece → Piece.CanBeRemoved → WearNTear.Remove → Piece.DropResources (vanilla refund path).
  • Mass Delete (live): ward access → WearNTear.Remove without DropResources. Occupied chests allowed after warning.
  • Environment on unmodded dedicated servers is not promised. Details: docs/authority.md.

Config

  • [Modes] DefaultMode, ShowActiveMode, PreserveSelectionOnModeSwitch
  • [Input] ActivateKey (Delete)
  • [Confirm] HoldSeconds, ShowRing, ShowSelectedCount
  • [Selection] AllowEnvironmentWithFilter, ClearQueueOnToolSwitch, MaximumTargets, ExtraDeny/Allow
  • [Safety] WarnWhenDeletingOccupiedContainers, RefuseUnknownDeleteTargets
  • [Integration] InstallInfinityHammerTool, PreferInfinityHammerOnly
  • [Removal] DryRunOnly

Commands

| Command | Purpose |

| --- | --- |

| dismantleheim mode dismantle\|delete | Enter / switch mode |

| dismantleheim activate | Enter DefaultMode |

| dismantleheim deactivate | Leave mode |

| dismantleheim status | State / mode / queue / filter |

| dismantleheim clear | Clear queue |

| dismantleheim why | Last selection reject reason |

Install / Build / Uninstall

  • BepInExPack + Jötunn (+ Infinity Hammer for Tools entries).
  • Place Dismantleheim.dll in BepInEx/plugins..\build.ps1.\test.ps1

Uninstall: remove the DLL; optional delete BepInEx/config/infinity_tools_dismantleheim.yaml (or config/tools).

Acceptance

  • Dual-mode: docs/acceptance-Gxx.md
  • Selection/confirm history: docs/acceptance-Hxx.md

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_ValheimValheimModding-Jotunn

檔案與校驗

檔案名稱
Dismantleheim-0.1.0.zip
檔案大小
241.1 KiB