RouteOptimizer
ILS route optimizer: which items your interstellar logistics run short on and why, supply planet capacity, and shorter routes that free ships and save warpers. One-click routes with undo. Ctrl+Shift+I.
| Last updated | a day ago |
| Total downloads | 23 |
| Total rating | 0 |
| Categories | Info Logistics Optimization Quality of Life |
| Dependency string | buffy5490-RouteOptimizer-1.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
CommonAPI-DSPModSave
Library that allows to store mod save data separately from vanilla saves
Preferred version: 1.2.2README
Route Optimizer
Finds out what your Dyson Sphere Program interstellar logistics run short on, why, and what would help. It also finds shorter routes that would free ships and save warpers, even when nothing is short. Fixes take one click and can be undone.
Shortcut: Left Ctrl + Left Shift + I opens and closes the Route Optimizer window. The right Ctrl and Shift
keys don't work for it. It can be changed in the config (UI.WindowHotkey).
中文: 支持简体中文(游戏语言设为简体中文时自动切换),见下方 中文说明。中文由 AI 语言模型生成,作者不懂中文。快捷键:左 Ctrl + 左 Shift + I 打开航线优化器(右侧的 Ctrl 和 Shift 无效)。
Neither this mod nor Dashboard Alarms depends on the other, but they are designed to work together.
Features
- Shortages: which items' ILS ran dry in the last game minute, how often, and the main reason. For each starved planet: where the item comes from now and the nearest planets that have it in stock. Set up routes to them, or switch starved ILS to local receive, with one click.
- Supply planets: for every item shipped by ILS, what each supplier planet can export (rises with Vein Utilization), ships now, and how much its ILS can carry. It says whether more ILS would let it ship more, or whether its throughput is already maximized.
- Route review: planets getting an item from farther away than they need to. It suggests a nearer supplier, with an estimate of the ships freed and warp trips saved.
- ILS shortage alarm: a notice (and sound) when an item's ILS run dry.
- Safe changes: every change asks first, uses the game's own route and station functions, and can be undone. Routes it makes are marked "Added by Route Optimizer" in the game's route screen.
- Saved with each save file. Styled to match the game's UI.
- English and Simplified Chinese, following the game's language. The Chinese text was generated by an AI language model; the author doesn't know Chinese, so corrections are very welcome.
Install
Install from Thunderstore with r2modman (or the Thunderstore app). BepInEx and DSPModSave are installed with it automatically.
To install by hand, copy RouteOptimizer.dll to BepInEx/plugins/RouteOptimizer/. You also need BepInEx 5 and
DSPModSave.
The window (Ctrl+Shift+I)
It has three tabs. Results cover the last game minute. Give it 2-3 minutes after loading for every column, and about 10 minutes after a change, because new routes take a while to replace orders already placed.
Shortages


- Short items (left): every item whose ILS demand slots were dry (under 2% full) at least 1% of the last game minute, or with any single ILS dry 10%+ of it, worst first, with the main reason. Items you ignore are hidden unless Show ignored items is ticked.
- Details (right): produced and used per minute, supply stock, and what the main reason means. It also shows
whether the supplier planets are short of ships, and every starved planet (an ILS dry 10%+ of the time):
- where the item comes from now, and the average distance;
- the 5 nearest planets with the item in stock, closest first. Tick the ones you want and press Set up routes. Routes only take priority on ILS set to route priority "Prioritize" (the ILS default); the window tells you if any aren't;
- if the planet has its own supply of the item, Set these ILS to local receive for the starved ILS that don't take it locally yet. Only the starved ILS change, never the supply ILS.
- Remove routes added by Route Optimizer and Undo local receive changes reverse those changes.
Why routes help: a supply ILS serves the stations that want its item in turn, ignoring distance. So a planet can get its coal from 15 light years away while a full supply sits next door. A route makes the game try that pair first.
Supply planets

For each item shipped by ILS, every supplier planet with:
- its supply ILS, and how full they are;
- how often all its vessels are out, and how often idle vessels are waiting to charge;
- Can export: the game's max production at your current research (the Production stats figure, so it rises with Vein Utilization) minus what the planet uses itself;
- Ships now: what it actually sends to other planets;
- ILS can carry: an estimate of the most its supply ILS can move. It counts its vessels not busy with other items, full loads, your current vessel speed and the planet's average shipping distance, plus what other planets' vessels fetch from it now.
Each planet then gets one of these:
| Status | Meaning |
|---|---|
| Throughput maximized. More ILS won't help. | Its ILS can already carry everything it can export. |
| OK now (x% of what its ILS can carry)... if demand grows past that, about N more ILS would let it ship all of it. | It can make more than its ILS can carry, but demand, not its ILS, is the limit now. No +ILS yet. |
| Near its ILS limit (x% used). +N ILS would let it ship all of it. | Its ILS already move 75%+ of what they can carry, and it could make more. |
+ILS is the gap between what it can export and what its ILS can carry, divided by what one of its ILS can carry (at most 20 per planet). It only shows for planets near their ILS limit, and only when more ILS would actually help: the item is short somewhere, or all its suppliers together already ship 75%+ of what their ILS can carry. If nothing is short and the others have room, a planet near its own limit is told more ILS won't help now. Revisit planets as Vein Utilization goes up: "Can export" rises, and a planet that was "Throughput maximized" can become one that needs more ILS.
Route review

Planets that get an item from farther away than they need to, whether or not they are short. New supply planets, new ILS or a mined-out supplier can leave routes pointing far away while a nearer supplier now exists.
- A suggestion needs a nearer planet with no route yet: at least 2 LY and 25% closer than the average distance shipped now, or in the same star system. It must have stock and spare ships (out or charging under half the time).
- It must hold for 15 game minutes in a row before it shows.
- Each one shows how many ships it would free and how many warp trips it would save.
- Make suggestions based on my current vessel speed (Logistics Carrier Engine research), on by default:
- On: estimates use your current vessel and warp speed.
- Off: they use the round-trip times measured at Logistics Carrier Engine level 84 (vessel speed 25,500 m/s): about 27 s under 1 LY, 34 s at 6-10 LY and 48 s at 15+ LY.
- With the option on, about 22 s of each round trip stays fixed (docking, take-off, landing, slowing down near planets). The rest gets shorter as speed goes up. This split was measured from level 84 to 97: +14% speed made trips 2% shorter under 1 LY, 5% at 10-15 LY and 6% at 15+ LY.
- Add route adds the nearer supplier.
- Replace also switches off (doesn't delete) the planet's routes for that item to farther suppliers, because the game takes turns between all routed suppliers.
- Dismiss hides a suggestion for good (saved with the game). A button brings dismissed ones back.
- Routes whose suppliers stopped supplying the item, or stayed empty, are listed with Switch off.
- Switch routes back on at the bottom undoes every switch-off.
ILS shortage alarm

Set at the top of the window. It shows a notice, with sound, after two game minutes in a row of either:
- an item's ILS dry more than 5% of the time across the cluster, or
- one planet's starved ILS of it dry 25% of the time or more.
The notice names the worst planet and has Open Route Optimizer and Snooze buttons. Both thresholds can be changed. To ignore an item, tick "Don't alarm for this item".
Settings
In BepInEx/config/buffylvr.dsp.routeoptimizer.cfg:
| Setting | Default | Meaning |
|---|---|---|
UI.WindowHotkey |
Left Ctrl + Left Shift + I | Opens and closes the window. |
UI.Scale |
1 | Size of the window and the notice. |
ILS.Enabled |
true | Watch interstellar logistics. Reads every ILS once a game second. |
ILS.WindowSeconds |
60 | Length of one measuring window in game seconds; results and the alarm update once per window. |
Sound.AlarmVolumePercent |
50 | Volume of the shortage alarm sound. |
Sound.PlayWithSoundOff |
true | Play the alarm even when the game's master or effects volume is down or off. |
RouteReview.UseCurrentVesselSpeed |
true | The Route review checkbox: base estimates on your current Logistics Carrier Engine speeds. |
Notes
- Tested on game version 0.10.35.29151.
Report bugs and ideas at https://github.com/Buffylvr/DSPRouteOptimizer/issues.
中文说明
注意:本节及游戏内的中文由 AI 语言模型生成,作者不懂中文。 如有错误或不通顺之处,欢迎在 https://github.com/Buffylvr/DSPRouteOptimizer/issues 提出更正。
游戏语言设为简体中文时,窗口、提示和配置文件说明都会显示中文;其他语言显示英文。如果游戏界面字体没有中文字形,模组会自动改用 Windows 中文字体(微软雅黑等)。
航线优化器(Ctrl+Shift+I):
- 短缺:哪些物品的星际物流站会断供、断供多久、主要原因,以及每个断供星球的货物来源和最近的 5 个有库存的星球。 勾选后点击“设置航线”即可创建普通的星球间航线(在游戏航线界面中显示,备注 “Added by Route Optimizer”)。 如果断供星球本身有该物品的供应,可一键将断供的站设为本地接收(只修改断供的站,不修改供应站)。所有更改都会先确认,并可撤销。
- 供应星球:每个供应星球的站数、满度、运输船外出和充电时间占比、可运出(游戏最大产能减自用,随矿物利用提高)、实际运出, 以及站点运力估算。状态说明它先受哪个限制:“运力已足够运出全部产能。增加站点无济于事。”,或产能超过站点运力时需要增加多少个供应站(无论目前是否短缺)。
- 航线检查:列出从比必要更远的地方获取物品的星球(无论是否短缺)。更近的供应星球需有库存、有空闲运输船且尚无航线, 并连续保持 15 个游戏分钟才会显示。“根据我当前的运输船速度给出建议(运输船引擎研究)”默认开启:开启时按你当前的运输船速度和曲速估算; 关闭时使用在运输船引擎 84 级(运输船速度 25,500 米/秒)下按距离实测的往返时间。每次往返约 22 秒不随速度变化(停靠、起降、行星附近减速),其余部分随速度提高而缩短:从 84 级到 97 级(速度 +14%),1 光年以内的往返缩短 2%,10-15 光年缩短 5%,15 光年以上缩短 6%。 “添加航线”添加更近的供应方;“替换”还会关闭(不删除)到更远供应方的航线;“忽略”永久隐藏该建议(随存档保存)。 也会列出已失效的航线(供应方不再供应或一直为空),可一键关闭,并可在底部重新开启。
- 星际物流短缺警报:当某物品在整个星区断供超过 5% 的时间,或单个星球的断供站超过 25% 的时间,连续两个游戏分钟时, 显示提示并播放声音。两个阈值都可在窗口顶部修改。
本模组与 Dashboard Alarms(仪表盘警报)互不依赖,但设计为配合使用。
快捷键使用键盘上的物理按键,与输入法无关;可在 BepInEx/config/buffylvr.dsp.routeoptimizer.cfg 中修改。
Building from source
dotnet build -c Release
The build references DLLs from your game folder and your BepInEx profile, and none of those DLLs are in this repo.
The default paths are the Steam install location and the r2modman Default profile. To use other paths, create a
Directory.Build.user.props file (it's git-ignored):
<Project>
<PropertyGroup>
<DSPDir>D:\SteamLibrary\steamapps\common\Dyson Sphere Program</DSPDir>
<BepInExDir>$(APPDATA)\r2modmanPlus-local\DysonSphereProgram\profiles\MyProfile\BepInEx</BepInExDir>
</PropertyGroup>
</Project>
Offline logic tests (no game needed):
cd tests/LogicTests && dotnet run -c Release
package.ps1 builds the Thunderstore zip into dist/.
License
MIT