CraftFromContainersFix
Fixes CraftFromContainers 4.0.30 eating wood and ore when you fill a kiln or smelter with the fill-all key or from nearby chests. Client-side only.
模組介紹 作者原文
CraftFromContainersFix
Client-side fix for CraftFromContainers 4.0.30 on Valheim 1.0. Kilns and smelters receive the wood and ore again
instead of silently eating it.
The problem
With CraftFromContainers 4.0.30 these actions take the items away and add nothing:
- left shift + E on a charcoal kiln, smelter, blast furnace or any other station that takes ore ("add max");
- plain E on such a station when you carry no suitable item and the mod pulls it from nearby chests.
The mod removes the items first and then throws a NullReferenceException while building the network message
(Smelter_OnAddOre_Patch.Prefix in Player.log), so the message is never sent and the items are gone.
Adding fuel (coal to a smelter, wood to a fire) is not affected.
What the mod does
It patches that one method of CraftFromContainers in memory: the "cheated" flag of the network message is read from
the item that is actually being added, the same way the game does it. Nothing else is changed.
If CraftFromContainers is not installed, or a later version no longer has the bug, the mod does nothing.
Installation
Client-side only. Install it next to CraftFromContainers; the server and other players do not need it.
- Mod manager: install as usual.
- Manual: put CraftFromContainersFix.dll into BepInEx/plugins.
How to check
BepInEx/LogOutput.log has the line Fixed 2 RPC_AddOre call(s) in CraftFromContainers on start.
In game: left shift + E on a charcoal kiln fills it, and the wood you lose is the wood that went in.
Кратко по-русски
Клиентская заплатка для CraftFromContainers 4.0.30. Без неё left shift + E («добавить max») на угольной печи и
плавильне, а также добавление руды из соседних сундуков забирает предметы и ничего не загружает: мод падает с ошибкой
до отправки сообщения. Заплатка правит этот метод мода в памяти, остальное не трогает. На сервер ставить не нужно.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: