starfi5h-RailgunsRetargetMini icon

RailgunsRetargetMini

Automatically switch EM Rail Ejectors target orbit. Set/unset all ejectors target orbit on remote system. 自動切換电磁炮軌道.点击切换星系内所有弹射器的轨道

Last updated 9 months ago
Total downloads 29577
Total rating 14 
Categories Dyson Nebula Compatible Quality of Life
Dependency string starfi5h-RailgunsRetargetMini-1.3.2
Dependants 1 other package depends on this package

This mod requires the following mods to function

xiaoye97-BepInEx-5.4.17 icon
xiaoye97-BepInEx

BepInEx5.4.17 mod plugin framework, Mod框架

Preferred version: 5.4.17

README

RailgunsRetargetMini

This is an updated version of RailgunsRetargeting.

Retarget orbit

Ejector UI
This mod will automatically try to change the targeting orbit of EM-Rail ejectors when the current one is not reachable.
If Force Retarget is set to true, all ejectors will try to retarget regardless if the orbit is set or not.
If Force Retarget is set to false, only the ejectors that have configured the orbit will try to retarget.

Remote orbit control

Remote set orbit
In dyson editor, select an orbit and click on the icon. A pop-up will show up and display the status of ejectors on the system.
When clicking "Set All", all ejectors on the system will set the target orbit to the selected orbit.
When clicking "Unset All", all ejectors on the system will set the target orbit to none and stop firing.

Installation

Via r2modman, or manual download the file and put RailgunsRetargetMini.dll in BepInEx/plugins folder.

Configuration

Run the game one time to generate BepInEx\config\starfi5h.plugin.RailgunsRetargetMini.cfg file.
If you're using mod manager, you can find the file in Config editor.

  • ForceRetargeting - Retarget orbit for unset ejectors. (Default:true)
  • Method - Which retarget algorithm to use. Method 1 is more UPS friendly but ejectors will swing at night. To disable auto retarget, set this value other than 1 or 2. (Default:1)
  • RotatePeriod - (Method1) Rotate to next enabled orbit every x ticks when unreachable. (Default:60)
  • CheckPeriod - (Method2) Check reachable orbits every x ticks. (Default:120)

电磁炮自动换轨

这个mod由RailgunsRetargeting启发。
60个逻辑帧,会检查有子弹的电磁弹射器。如果当前轨道无法发射,会尝试寻找可用的轨道并切换。

在戴森球编辑器中,选择一个轨道并点击图标,将弹出窗口显示该星系中所有电磁炮的状态。
点击"Set All"时,星系中所有的电磁炮会将目标轨道设置为选择的轨道。
点击"Unset All"时,星系中所有的电磁炮会将目标轨道设置为无并停止发射。

设置

.cfg文件需要先运行过游戏一次才会出现,修改后要重启游戏才会生效。
管理器安装: 左边选项Config editor -> 找到starfi5h.plugin.RailgunsRetargetMini -> Edit Config
手动安装: 更改BepInEx\config\starfi5h.plugin.RailgunsRetargetMini.cfg文件

  • ForceRetargeting - 使未设置的电磁弹射器自动换轨 (默认:true)
  • Method - 使用哪种算法(1或2)。算法1比较省运算资源, 但是弹射器在晚上会一直切换轨道。设置其他数值以取消自动换轨功能(默认:1)
  • RotatePeriod - (算法1) 无法发射时,每x祯切换至下一个轨道。 (默认:60)
  • CheckPeriod - (算法2) 无法发射时,每x祯检查所有轨道是否有可发射轨道并切换。(默认:120)

Changelog

v1.3.2 (DSP 0.10.29.21950)

- Update for NebulaAPI 2.0.0

v1.3.1

- Fix the TypeLoadException error in ejector window.

v1.3.0 (DSP 0.10.28.21150)

- Add a button in ejector window to toggle ForceRetargeting.

v1.2.0 (DSP 0.9.27.15033)

- Add remote ejectors orbit control.

v1.1.0 (DSP 0.9.26.13034)

- Add a new method to switch orbit.
- Add ForceRetargeting, Method, RotatePeriod config options.

v1.0.0 (DSP 0.9.26.12913)

- Initial release.


Acknowledgements

All trademarks, copyright, and resources related to Dyson Sphere Project itself, remain the property of Gamera Game and Youthcat Studio as applicable according to the license agreement distributed with Dyson Sphere Program.