CraftyCartsRemake 1 0 Fix
Unofficial Valheim 1.0 compatibility patch for CraftyCartsRemake (1.0.1: fixes hammer repair being broken on 1.0.14).
模組介紹 作者原文
CraftyCartsRemake 1.0 Fix (Unofficial)
Temporary community patch for Valheim 1.0.
Fixes
1.0.1 — hammer repair no longer breaks (Valheim 1.0.14)
On 1.0.14 nothing could be repaired with the hammer. Damaged pieces still
highlighted, but clicking did nothing at all — no repair, no error, no sound.
The client log showed:
MissingMethodException: Method not found: UnityEngine.GameObject.EffectList.Create(UnityEngine.Vector3,UnityEngine.Quaternion,
UnityEngine.Transform,single,int)
Stack trace:
(wrapper dynamic-method) Player.DMD(Player,ItemDrop/ItemData,Piece)
Cause: this mod's UpgradeCartRepairPatch is a Harmony prefix on
Player.Repair, and it called two game methods that have since gained extra
optional parameters:
| called | exists on 1.0.14 |
|---|---|
| EffectList.Create(Vector3, Quaternion, Transform, float, int) | …, int variant = -1, ZDOID gamepadEffectsExclusiveToPlayer = default) |
| Character.Message(MessageType, string, int, Sprite) | …, Sprite icon = null, bool log = false) |
C# binds optional arguments at the call site, so a build compiled against an
older Valheim emits a call to the old arity, and that overload no longer exists.
The reason this broke all repairing rather than only cart upgrades: Mono
resolves every method token when it compiles a method body, not when execution
reaches that line. The prefix runs on every Player.Repair call, so the first
repair attempt threw before a single line of the prefix ran — it never reached
its return true, so vanilla repair was never handed control, for any piece.
Fixed by repointing both call sites to the current overloads, passing the
defaults the game itself declares (default(ZDOID) and false). No behaviour
change.
1.0.0
- Build menu crash (ArgumentOutOfRangeException in PieceTable)
- Vagon.FixedUpdate → UpdateMass Harmony patch
Notes
This is not an official update.
Remove this package once Azumatt releases an official 1.0-compatible version of
CraftyCartsRemake.
If repair ever silently stops working again after a Valheim patch, this is the
first thing to suspect, and the client's BepInEx/LogOutput.log will name the
missing signature.
Original mod: CraftyCartsRemake by OdinPlus
1.0 compatibility patch: wocky
Made this with the assistance of AI
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: