AdventureBackpacks
Unofficial rebuild of Vapok's AdventureBackpacks for the Valheim 1.0 update. Fixes the startup crash and two broken transpilers. All credit to Vapok; switch back to the official release.
截圖 共 1 張
模組介紹 作者原文
Unofficial compatibility fork — AdventureBackpacks
This is not the official release. It is a rebuild of
Vapok's AdventureBackpacks for the Valheim 1.0
update, which moved the game to Unity 6 and broke the mod on startup.
What was broken
- ZRoutedRpc.Everybody became a const. Literal fields have no runtime storage, so the
ldsfld compiled into the bundled Vapok.Valheim.Common threw MissingFieldException.
- Inventory.AddItem gained two parameters (pickedUp, dropIfFullInv). The Harmony patch
pinned the old 8-parameter overload, so PatchAll threw out of Awake() — which meant the rest
of initialisation never ran. The flood of KeyNotFoundException: ColdResistance in the log was a
symptom of that, not a separate bug.
- Two transpilers hardcoded local variable indexes. Valheim 1.0 renumbered them: in both
Player.HaveRequirementItems and Player.ConsumeResources, V_2 is now the loop index and the
Piece.Requirement moved to V_3. The old code pushed an int where a Requirement was
expected, producing InvalidProgramException: Invalid IL code. ConsumeResources was worse: its
match pattern (Stloc_3) no longer occurred at all, so it would have silently failed to patch
and mis-counted equipped items with no error in the log.
- InventoryGrid.Element was promoted to a top-level InventoryElement, and its m_pos field
became a Position property.
- Inventory.IsTeleportable() gained a bool allowAllItems. Reading the game's IL confirms
true short-circuits to "teleportable", so false is what preserves the original behaviour.
What was changed
Source changes are limited to the above compatibility fixes; no features or balance were touched.
A netstandard reference was added because the Unity 6 assemblies target netstandard 2.1.
Vapok.Valheim.Common is consumed as a prebuilt NuGet package compiled against the old game, so it
could not be rebuilt. Its 7 stale call sites were patched at the IL level instead.
Known difference from the official build
The call to APIManager.Patcher was removed. That library is not publicly distributed and could
not be extracted from the shipped assembly. It only matters when several different mods embed the
same AdventureBackpacks.API and need to agree on a single copy — if you run other mods that consume
this mod's API, use the official release instead. The developer API zip is not shipped here for the
same reason.
Credit and support
All work belongs to Vapok. Please switch back to the official AdventureBackpacks as soon as a
Valheim 1.0 build is published, and do not report issues from this fork to the original author.
Licensed MIT, same as upstream.
Do not install this alongside the original AdventureBackpacks — both register the same BepInEx
plugin GUID.
Adventure Backpacks by Vapok
This Valheim mod seeks to introduce the concept of Backpacks throughout the Valheim progression.
Starting as a wee Viking, rummaging through the tranquil fields of the Meadows, you'll happen upon materials
that you think will eventually lead to a more meaningful destiny. From Deer Hide capes and beyond, you'll soon
learn how to make your very own, Adventure Backpacks! Go forth and wander, ye wanderer of the wanders!
How to Use Adventure Backpacks
- Play Valheim as you would As you craft items and explore materials you will learn new recipes for Adventuring Backpacks
- The default hotkey is I to open the equipped backpack.
- Each backpack is completely different in form, function, and size. Upgrading backpacks will unlock additional features depending on the progresion that backpack is intended to be used with.
- Check the Configuration for ALL the different ways that you can modify these packs.
- Keybindings and Actions are Controller Supported
How To Install Adventure Backpacks
- AdventureBackpacks works best when installed using R2ModMan
- JVL and YamlDotNet Mods are dependencies
- Install Adventure Backpacks into it's own FOLDER inside of the BepInEx/plugins folder.
- Create a folder called Translations and ensure all
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: