RoundStartEnergyReset
Automatically refills the Charging Station energy crystals (used to charge weapons) and stamina at round start. 開局自動補滿基地充電站能量晶體和體力。
模組介紹 作者原文
RoundStartEnergyReset - 開局自動回滿能量
A simple client-side mod for R.E.P.O. that automatically refills the Charging Station energy crystals (used to charge weapons in the truck) and stamina to max at the start of each round/level.
一個適用於 R.E.P.O. 的客戶端模組,在每局/關卡開始時自動將基地充電站的能量晶體(用於給武器充電的能量條)和體力補滿。
Features / 功能
- ✅ Automatically refills Charging Station energy (ChargingStation.chargeTotal) and stamina when a new round starts
- ✅ Works in both singleplayer and multiplayer (affects only you)
- ✅ Lightweight - no configuration needed, just install and play
- ✅ Clean and minimal logging
- ✅ Client-side only, no host required
- ✅ 每局開始時自動將基地充電站能量(給武器充電的能量條)和體力補滿
- ✅ 支持單人模式和多人模式
- ✅ 輕量級 - 無需配置,安裝即玩
- ✅ 無控制台刷屏 - 日誌簡潔
Installation / 安裝
Method 1: Mod Manager (Recommended)
- Install a mod manager like Gale or r2modman
- Search for "RoundStartEnergyReset" and install it
- Launch the game via the mod manager
Method 2: Manual
- Install BepInExPack for R.E.P.O.
- Run the game once to generate BepInEx folders
- Download the mod zip and extract RoundStartEnergyReset.dll into BepInEx/plugins/
- Launch the game
方法一:使用模組管理器(推薦)
- 安裝 Gale 或 r2modman 模組管理器
- 搜索 "RoundStartEnergyReset" 並安裝
- 通過模組管理器啓動遊戲
方法二:手動安裝
- 安裝 BepInExPack for R.E.P.O.
- 運行一次遊戲以生成 BepInEx 文件夾
- 下載模組壓縮包,將 RoundStartEnergyReset.dll 解壓到 BepInEx/plugins/ 目錄
- 啓動遊戲
How it works / 工作原理
This mod uses Harmony to patch GameDirector.SetStart() - the method called by the game when a new level/round initializes. At round start, it does two things:
- Sets PlayerController.EnergyCurrent to EnergyStart (refills stamina)
- Sets ChargingStation.chargeTotal to max (refills the Charging Station energy crystals in the truck/base, used to charge weapons)
Backup: It also patches PlayerController.Start() to ensure stamina is max when the player first spawns.
本模組使用 Harmony 補丁技術攔截 GameDirector.SetStart()(遊戲在關卡/回合初始化時調用的方法)。在回合開始時:
- 將 PlayerController.EnergyCurrent 設置爲 EnergyStart(補滿體力)
- 將 ChargingStation.chargeTotal 補滿至最大值(恢復基地充電站能量,用於給武器充電)
備用機制:同時補丁了 PlayerController.Start(),確保玩家首次生成時體力爲滿。
Source Code / 源碼
Changelog / 更新日誌
1.3.0
- Fixed: Charging station energy now properly refills to normal max (chargeTotal=100, chargeFloat=1.0) instead of an unrealistic 999999
- Found game's default maximum values by analyzing assembly IL: chargeTotal is clamped to [0, 100], chargeFloat=1.0 = full bar
- Also updates chargeFloat and chargeSegmentCurrent so the charge bar display actually shows full
- Added ChargingStation.Start() prefix patch for initial max charge
1.2.0
- Changed: Now refills Charging Station energy crystals (ChargingStation.chargeTotal) instead of base hand energy (SpectateCamera.headEnergy)
- Direct compile-time access to fields via BepInEx publicizer
1.1.0
- Fixed: Now refills the base hand energy bar (headEnergy) instead of weapon battery
- Added automatic runtime field detection via reflection (tries PlayerController, PlayerAvatar, and more)
- Removed ItemBattery refill (user preference - only refills player's innate energy now)
1.0.0
- Initial release
- Stamina refill on round start via GameDirector.SetStart
- Fallback on PlayerController.Start
- ItemBattery weapon refill (removed in 1.1.0)
Credits / 致謝
- R.E.P.O. Modding Wiki - For modding documentation
- BepInEx - Mod loader framework
- Harmony - Runtime patching library
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: