Dyson Sphere Program
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
55
Size
13KB

VoidFleetCap

Dyson Sphere Program mod that raises the mecha ground / space fleet cap. 戴森球计划 mod:提高机甲地面编队 / 太空编队上限,23 级科技正好 10 页编队。

Author / 作者:Lonshu

AI disclosure: parts of this mod's code, patches and documentation were written with the help of AI tools. The author reviewed, tested and takes responsibility for every change.

AI 声明: 本 mod 的部分代码、补丁和文档由 AI 工具辅助完成,作者已逐项检查、实测并对最终行为负责。


English

What it does

Vanilla With this mod
Engine fleet slots (moduleFleets / moduleFleetPoses) 8 48
Fleet tech (地面编队扩容 / 太空编队扩容) max level 7 23
Fleets at tech 7 8 8
Fleets at tech 23 - 40
Fleet panel pages (4 per page) 2 10

Above level 7 the fleet count grows by 2 per level (8 + 2 x (level - 7)), so level 23 gives exactly 40 fleets, i.e. 10 pages in both the mecha info panel and the combat fleet panel.

Why a mod is needed

CombatModuleComponent.Init allocates moduleFleets / moduleFleetPoses with a hardcoded size of 8, and GameHistoryData.UnlockTechFunction only does fleetCount += n without resizing those arrays. Unlocking the fleet tech past level 7 therefore makes GameTick index past the array end and crash. Several UI classes also hardcode 8 (entry lists, page buttons); this mod expands those too.

What is patched

  1. CombatModuleComponent.Init / Setup / Import: resize both arrays to 48 and clone fleet config into new slots
  2. CombatModuleComponent.GameTick: clamp fleetCount to array length (fuse)
  3. Fleet tech data: raise TechProto.MaxLevel and TechState.maxLevel for both fleet techs to 23
  4. Mecha fleet count follows the tech level, so existing saves pick it up too
  5. UIMechaWindow fleet page buttons: 2 -> 12
  6. UIZS_FleetPanel fleet entry lists: grown on demand to the current fleet count
  7. TCFV (DSP_Battle) Droplets.dropletPool: 25 -> 144 when TCFV is installed

Only the player mecha modules are resized. Battle bases and other buildings keep their original 8 slots, so blueprint copy/paste and factory save/load are untouched.

Install

  1. Install BepInEx 5.4.17 (xiaoye97-BepInEx)
  2. Import this package with your mod manager, or unzip FleetCap.dll into BepInEx/plugins/
  3. Start the game and check BepInEx/LogOutput.log for VoidFleetCap 1.2.1 installed

No configuration file. Uninstall by deleting FleetCap.dll.

Compatibility

  • Game: DSP 0.10.35.29151 (built and tested against this version)
  • BepInEx 5.4.17
  • Optional: TheyComeFromVoid (TCFV) 3.4.24 - the droplet-pool patch activates only when TCFV is loaded
  • Conflicts with any other mod that resizes fleet arrays or raises the same tech cap

Warnings

  • Back up your save first. This mod resizes engine arrays that the base game does not expect to grow.
  • 40 fleets at once is a lot of craft and droplets; expect lower FPS in big battles.
  • If something breaks, search VoidFleetCap in BepInEx/LogOutput.log and report those lines.

Changelog

  • 1.2.1 - add AI-assistance disclosure to README
  • 1.2.0 - fleet count uses 8 + 2 x (level - 7) (level 23 = 40 fleets = 10 pages); publish-ready packaging
  • 1.1.0 - only mecha modules are resized (buildings keep 8 slots)
  • 1.0.9 - UIZS_FleetPanel fleet entry lists grown on demand (fixes ArgumentOutOfRangeException)
  • 1.0.6 - mecha fleet page buttons expanded from 2 to 12
  • 1.0.4 - Setup(PrefabDesc) shrink-then-expand fix (fixes save-load crash)
  • 1.0.3 - TCFV droplet pool expansion

中文

功能

项 原版 本 mod
编队槽位数组 8 48
编队科技上限 7 23
7 级时编队数 8 8
23 级时编队数 - 40
编队面板页数(每页 4 个) 2 10

7 级之后每级 +2 编队(8 + 2 × (等级 - 7)),所以 23 级正好 40 个编队 = 10 页, 机甲信息面板和战斗编队面板都会出现 10 页。

为什么需要 mod

CombatModuleComponent.Init 里 moduleFleets / moduleFleetPoses 写死 8 格, 而 GameHistoryData.UnlockTechFunction 升级编队科技时只做 fleetCount += n,不扩容数组。 科技超过 7 级后 GameTick 就会越界崩溃。另外多个 UI 类也写死 8(条目 List、页码按钮), 本 mod 一并扩容。

具体改动

  1. Init / Setup / Import:两个数组扩到 48,新槽位克隆编队配置
  2. GameTick:把 fleetCount 钳到数组长度(保险丝)
  3. 两个编队科技的 TechProto.MaxLevel 与 TechState.maxLevel 提到 23
  4. 编队数按科技等级推导,老存档装上也生效
  5. UIMechaWindow 页码按钮:2 → 12
  6. UIZS_FleetPanel 编队条目 List:按需补到当前编队数
  7. 装了 TCFV(DSP_Battle)时:Droplets.dropletPool 25 → 144

只扩玩家机甲的两个模块;战斗基地等建筑保持 8 格,蓝图复制粘贴和工厂读档不受影响。

安装

  1. 先装 BepInEx 5.4.17(xiaoye97-BepInEx)
  2. 用 mod 管理器导入本包,或把 FleetCap.dll 解压到 BepInEx/plugins/
  3. 启动后看 BepInEx/LogOutput.log 是否有 VoidFleetCap 1.2.1 installed

没有配置文件,删掉 FleetCap.dll 即卸载。

兼容

  • 游戏:DSP 0.10.35.29151(以此版本编译测试)
  • BepInEx 5.4.17
  • 可选:TheyComeFromVoid(TCFV)3.4.24,只有装了才会挂 droplet 池补丁
  • 与其它改编队数组 / 同一科技上限的 mod 冲突

注意

  • 先备份存档。 本 mod 改的是原版不预期会变大的引擎数组。
  • 40 个编队同时作战 = 大量飞机和 droplet,大规模战斗帧数会下降。
  • 出问题在 BepInEx/LogOutput.log 搜 VoidFleetCap,把相关行贴出来。
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.