SaveYourLuckBruh

版本 v1.0.2·更新於 2026-09-30

Persists vanilla Valheim bad luck protection across game sessions and world transitions.

截圖 共 1 張

模組介紹 作者原文

🍀 SaveYourLuckBruh

Persists vanilla Valheim pseudo-random drop counters so your bad luck equity is never lost across game sessions or world travels.

In Valheim, rare item drops (such as trophies and rare materials) feature an internal "bad luck protection" system designed to prevent prolonged dry streaks. However, in the vanilla game, this counter is stored purely in temporary memory and resets to zero every time you close the game.

SaveYourLuckBruh fixes this by saving your bad luck progress directly into your character save file, preserving your hard-earned drop progress across restarts and across different worlds.

🎯 The Problem

Vanilla Valheim uses a hidden countdown (s_pseudoCounter) for any item with a drop rate of 30% or lower. Every time you kill an eligible creature without getting the rare item, the countdown ticks closer to a guaranteed drop.

Example: Hunting Cultist Trophies

  • The Math: A Cultist Trophy has a base 10% drop chance. The game rolls an internal countdown between 1 and 20 kills.
  • Session 1: You clear Frost Caves and defeat 18 Cultists without seeing a trophy drop. You are now 1 or 2 kills away from a guaranteed trophy.
  • The Flaw: You log off for the night and close Valheim.
  • Session 2 (Vanilla): You boot up Valheim tomorrow. Your 18 kills are gone. The game re-rolls a brand-new countdown from scratch. If you repeatedly play in short 1–2 hour sessions, you might suffer dozens of dry kills because your bad luck equity never survives a game restart.

💡 The Solution

SaveYourLuckBruh automatically saves your active bad luck counters into your character's native custom save data (Player.m_customData):

  • 💾 Persistent Across Restarts: When you exit Valheim and launch it again the next day, your exact remaining countdown is restored.
  • 🌍 World-Scoped Progress: Counters are tracked per unique World ID. Hunting Cultists in your solo world will not bleed into or reset your progress on a multiplayer server.
  • ⚔️ Attacker Attribution: In co-op play, your bad luck countdown is only consumed when you (or your tamed pets) deliver the lethal blow—an ally landing a kill won't drain your personal bad luck equity.
  • 🛡️ Zero Corrupted Saves: Stored entirely within vanilla character fields. If you ever uninstall the mod, your character file (.fch) remains 100% intact and uncorrupted.
  • 🔌 Client-Side Only: Does not need to be installed on dedicated servers. Works seamlessly in singleplayer, co-op, or multiplayer servers without affecting unmodded players.

⚙️ Configuration

SaveYourLuckBruh is an install-and-forget mod. It requires no functional configuration or gameplay tweaking to work.

Standard logging settings (including debug logging) are available via BepInEx/config/vapok.mods.SaveYourLuckBruh.cfg:

  • Enable Debug Mode: Outputs detailed log statements to LogOutput.log showing when counters load, decrement, trigger drops, and save.

🤝 Compatibility & Requirements

  • BepInEx: 5.4.2350 or later.
  • Jotunn: 2.30.2 or later.

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_ValheimValheimModding-JotunnValheimModding-YamlDotNet

檔案與校驗

檔案名稱
SaveYourLuckBruh-1.0.2.zip
檔案大小
325.6 KiB