TheVault
The Vault 3 — per-character vault, encrypted saves, HUD, auto-deposit, shop and inventory vault integration, Custom tab & mod API.
模組介紹 作者原文
The Vault
Version 4.2.0 — Sun Haven vault mod (per-character encrypted vault, IMGUI vault + HUD, auto-deposit, shop hooks).
3.0.5: Hardened character-switch survival: patch all GameSave.LoadCharacter overloads (not just one signature), queue the selected character name as the primary vault identity, and add a persistent runtime sync fallback so vault context self-corrects if hook timing changes. Runtime autosave now runs solely from the hidden keepalive runner so vault state no longer depends on Plugin.Update. Config cleanup: removed stale legacy UI toggle setting and wired AutoSaveInterval to actually control save cadence. Fixed a character-switch regression where only HUD stayed visible: recreated VaultUI now force-enables legacy IMGUI mode so Ctrl+V / F8 always opens the main window. Config file now uses BepInEx/config/TheVault.cfg (auto-migrates values from the legacy GUID-named config on first load).
Installation
- Install BepInEx 5.x for Sun Haven.
- Install this package with r2modman Mod Manager, or unzip into your game folder so both DLLs end up in the same mod folder under BepInEx/plugins/ (the manager usually creates something like BepInEx/plugins/AzraelGodKing-TheVault).
- Ship both TheVault.dll and TheVault.Abstractions.dll together—the abstractions assembly must sit next to the main plugin.
Usage
- Ctrl+V, F8, or LB+Y: open/close vault UI (Steam Deck: F8 or LB+Y; close with Escape or controller B/cancel)
- Touch-sized row controls and 1 / 5 / 10 / Max amount chips for trackpad-friendly withdraw/deposit
- F7: toggle HUD
- Debug inspector (all currencies / Debug tab): enable [The Vault] FullVaultInspector in BepInEx/config/HavenDevTools.cfg, or Haven Dev Tools (F11) → Azrael's Mods → The Vault.
Vault save data
Routine updates aim not to wipe your vault. If a build cannot keep compatibility, maintainers publish a clear warning at the top of the GitHub README, text, the changelog (what to back up), and an in-game / log notice when needed — see TheVault/SAVE_COMPATIBILITY.md in the repo.
For mod authors
Reference TheVault.Abstractions.dll and use TheVault.Modding.VaultModApiBridge.Instance after the vault is ready. Full details: repository README.
Links
-
- Report Bugs on Discord
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: