Loot Topup

版本 v1.2.3·更新於 2026-09-29

Loot safety net: guarantees a minimum valuable count on sparse maps, plus a watchdog that tops up loot if destroyed items would softlock the run. Respects no-loot mutators. Host-authoritative. By TheM

模組介紹 作者原文

Loot Topup

Safety net for loot generation. Guarantees a minimum number of valuables on sparse maps, and a watchdog tops the level back up if enough loot gets destroyed that the haul goal stops being reachable. It never removes anything. It adds copies of the level's own valuables at the level's normal valuable spawn points, and it skips no-loot mutators like Hunting Season. The host runs the logic.

By TheMorningStar.

1.2.3

  • Works on levels that spawned no loot at all. Some older custom maps load with an empty valuables list, so there was nothing to copy. Loot Topup now spawns valuables from the level's own loot list, or from every level's loot list if that one is empty, at the map's normal spawn points.
  • The "nothing to spawn" warnings log once per level instead of every few seconds.

1.2.2

  • Top-up copies now appear at the map's own valuable spawn points instead of next to an existing valuable. Before this, if every remaining valuable was already on the extraction pad, the copy spawned on the pad too.
  • A copy goes to an empty spawn point of its own size first, then an empty larger one. Spawn points that the level turned into furniture are skipped.

1.2.1

  • The softlock watchdog reads the game's own valuables list instead of scanning the whole scene every 4 seconds, which removes a small periodic hitch on large modded levels.

For developers - detailed breakdown

v1.2.2: a Harmony prefix on ValuableVolume.Setup records each active volume's position, rotation and size before the game destroys the markers, and a postfix on ValuablePropSwitch.Setup drops volumes whose switch became a prop. A spot counts as taken when a live valuable or an earlier copy from the same pass is within 1 m. If no spot was recorded for the level, the mod logs a warning and spawns nothing.

v1.2.0: REPOLib-registered (modded) valuables now spawn through REPOLib 4.2.0's NetworkPrefabs.SpawnNetworkPrefab(PrefabRef,...) instead of the removed string overload; base-game valuables keep the plain Photon Resources path, singleplayer uses a local Instantiate. Any template whose spawn fails (null return or exception) is blacklisted for the rest of the level and still counts toward the per-level spawn cap, so a bad prefab can't flood the log or retry forever.

安裝與使用 安裝:BepInEx 外掛

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

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

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

BepInEx-BepInExPackZehs-REPOLib

檔案與校驗

檔案名稱
Loot_Topup-1.2.3.zip
檔案大小
17.4 KiB