

本 Mod 让战场分析基站能够直接派遣无人机向机甲和物流配送器和物流塔配送战利品,实现全自动化战利品物流。 并且在有库存的时候给星际物流塔自动送空间翘曲器。
战场分析基站在击败敌人后会积累大量战利品(硅块、晶格硅、电路板等)。使用本 Mod 后:
基站会自动派出无人机给以下目标送货:
This mod enables Battlefield Analysis Bases to dispatch drones to deliver loot to the Mecha, Logistic Dispensers, and Logistic Stations, automating loot logistics. It also automatically delivers Space Warpers to interstellar logistics stations when the base has them in stock.
After defeating enemies, Battlefield Analysis Bases accumulate loot (silicium, crystal silicon, circuit boards, etc.). With this mod, bases automatically send drones to:
BattlefieldAnalysisBaseDeliver.dll 放入 BepInEx\plugins\ 文件夹在 BepInEx\config\com.yourname.battlefieldanalysisbasedeliver.cfg 中:
[General]
## 启用调试日志(排查问题时使用)
EnableDebugLog = false
本 Mod 采用基站直接派遣架构,完全不同于传统的物流配送器逻辑:
每个战场基站拥有独立的 20 个无人机
BaseLogisticSystem 中基于事件驱动的派遣逻辑
BattleBaseComponent.InternalUpdate智能调度算法
// 紧急度 = 当前库存 / 最大库存
urgency = currentStock / maxStock
// 排序:紧急度优先,距离次之
demands.Sort((a, b) => {
if (a.urgency != b.urgency)
return a.urgency.CompareTo(b.urgency);
return a.distance.CompareTo(b.distance);
});
无人机飞行与送货
courier.t += deltaT * directiont >= maxt 时送货direction = -1,回到基站渲染支持
LogisticCourierRenderer.Update存档前(GameData.Export)
存档加载后(GameData.Import)
旧版本兼容(PlanetFactory.Import)
BattlefieldAnalysisBaseDeliver/
├── Plugin.cs # 主插件入口 + DebugLog()
├── PluginInfo.cs # 插件信息(版本号等)
├── Patches/
│ ├── BattleBaseComponent_InternalUpdate_Patch.cs # [核心] 派遣、飞行、送货逻辑
│ ├── BattleBaseLogisticsManager.cs # [核心] 全局管理器
│ ├── LogisticCourierRenderer_Update_Patch.cs # [核心] 无人机渲染支持
│ ├── GameData_ExportImport_Patch.cs # [核心] 存档安全
│ └── PlanetFactory_Lifecycle_Patch.cs # [核心] 资源清理 + 旧数据清理
└── GameCodeReference/ # 反编译的游戏代码(参考)
总计:5 个核心 Patch 文件 + 1 个主类
日志位置:BepInEx\LogOutput.log
启用调试日志:
[General]
EnableDebugLog = true
调试日志会输出:
dotnet build -c Release
输出:bin\Release\net472\BattlefieldAnalysisBaseDeliver.dll
反编译目标:DSPGAME_Data\Managed\Assembly-CSharp.dll
BattleBaseComponent 或 LogisticCourierRenderer)如遇到问题,请:
EnableDebugLog = trueBepInEx\LogOutput.log