TheVault
The Vault 3 — per-character vault, encrypted saves, HUD, auto-deposit, shop and inventory vault integration, Custom tab & mod API.
About this mod Author’s original text
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
Install & use Install: follow the bundled instructions
- Unzip the archive from playbuff and read the bundled readme / instructions first.
- Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
- For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
- Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.
Install locations vary a lot between mods — the bundled readme is the most reliable guide.
Install these first, or the mod will not work: