NearestStationFirst
物流塔就近配对: interstellar stations send vessels to the nearest station that can fill them, not to the one built first. Routes and groups keep working. Save-safe.
| Date uploaded | 16 hours ago |
| Version | 1.0.0 |
| Download link | DSPCraftingSpeed-NearestStationFirst-1.0.0.zip |
| Downloads | 31 |
| Dependency string | DSPCraftingSpeed-NearestStationFirst-1.0.0 |
This mod requires the following mods to function
README
Nearest Station First(物流塔就近配对)
Interstellar logistics stations send their vessels to the nearest station that can fill them, instead of to whichever station was built first.
星际物流运输站派运输船时,先挑最近的、能装满一船的供货 / 收货塔,而不是按建造先后轮着来。
Why
In the vanilla game a station keeps its partners in the order they were built and walks that list in turn: the next partner that has a full vessel load gets the vessel, no matter how far away it is. Distance is never looked at.
In a late-game save this is what it does (measured in a real save, 24 hydrogen-demanding stations on one planet):
| vanilla | |
|---|---|
| vessels in flight | 187 |
| average trip | 21.4 light years |
| full gas giants within 12 light years that got no vessel at all | 5 |
The stations ran out of energy and the factory starved of hydrogen while the nearest gas giants sat full.
原版里,物流塔把配对的塔按建造先后排成一张表,轮着派船:下一座凑够一船的塔就去,不看远近。后期存档里的实测:一颗星球上 24 座要氢的塔,187 艘运输船平均飞 21.4 光年,12 光年内五颗满仓的气态巨星一艘船都没去,塔的电被远路耗光,工厂缺氢。
Measured
Same late-game save (3366 interstellar stations, 720 thousand pairs, no priority routes), 10 game minutes without and with the mod, same start:
| vanilla | with the mod | |
|---|---|---|
| vessels dispatched | 24218 | 25932 |
| average trip | 9.67 light years | 6.16 light years |
| trips within 10 light years | 62.5 % | 83.6 % |
| hydrogen: average trip | 17.3 light years | 5.9 light years |
| items carried | 47.9 million | 51.3 million |
| station energy spent on trips | 33628 GJ | 29260 GJ |
同一个后期存档(3366 座星际塔、72 万对配对、不设星际航路),关模组和开模组各跑 10 分钟游戏时间:派船 24218 → 25932 艘, 平均航程 9.67 → 6.16 光年,氢的平均航程 17.3 → 5.9 光年,运量 4791 万 → 5133 万,塔花在航程上的电 33628 → 29260 GJ。
What the mod changes
-
For every item slot of a station, its partners are sorted nearest first, and each dispatch tries them in that order. So a vessel goes to the nearest partner that has a full load; only when the near ones cannot fill a vessel does it go farther. Nothing is ever cut off — a far supplier is still used when it is the only one with stock.
-
A station's slots take turns, as in vanilla, so an item with a busy nearby supplier cannot take all the vessels away from the station's other items.
-
The game's own priority settings keep working exactly as before: point-to-point pairs first, then planet routes, star-system routes, groups, ordinary pairs. The mod only changes the order inside each of these.
-
Distance = star to star. Inside one star system: the difference of the planets' orbit radius (so the order does not flip while the planets go round).
-
Works for both directions: a demanding station fetching (orbital collectors, for example) and a supplying station delivering.
-
塔的每个格子各有一张配对表,按距离从近到远排,派船时照这个顺序挑。近处凑不够一船时才去远处,不会切断任何供货。
-
一座塔的几个格子轮流派船(跟原版一样),所以某样货近处供应很足,也不会把船全占了,让这座塔的别的货轮不到。
-
游戏自带的优先级照旧:点对点配对、星球航路、行星系航路、分组配对、普通配对,一层一层来。模组只改每一层里面的先后。
-
距离按恒星到恒星算;同一个星系里按行星轨道半径之差算(行星转动时先后不会变来变去)。
-
两个方向都管:需求塔去拉货(比如轨道采集器),供应塔去送货。
Good to know
-
Save-safe. Nothing is written to the save. Remove the mod and the next load is vanilla.
-
Planet-internal logistics (drones) is not touched.
-
When one supplying slot cannot satisfy everyone, its nearest consumer is served first; a far consumer then has to rely on its own vessels and on other suppliers. In vanilla every consumer gets a turn regardless of distance.
-
Cost: sorting all lists of a save with 3200 interstellar stations and 2.7 million pairs takes about 50 ms, once each time the game rebuilds them (loading, building or removing a station, changing a slot or a route).
-
Config
General / Enabled(default on). Turning it off gives vanilla behaviour again from the next dispatch. -
Mods that replace the dispatch routine itself may not work with it. Not tested with Nebula multiplayer.
-
不改存档。 卸掉模组,下次读档就是原版。
-
行星内的物流运输机不管。
-
一个供应格子的货不够分的时候,最近的用户先拿到;远的用户要靠自己的运输船和别的供货星。原版是不管远近轮流给。
-
开销:3200 座星际塔、270 万对配对的存档,全部排一遍约 50 毫秒,只在游戏重建配对表时排一次(读档、建塔拆塔、改格子、改航路)。
-
配置
General / Enabled(默认开)。关掉以后从下一次派船起就是原版行为。 -
跟重写派船逻辑的模组可能不兼容。没在联机模组下测过。
Install
Use r2modman / Thunderstore Mod Manager, or put NearestStationFirst.dll into BepInEx/plugins.
CHANGELOG
Changelog
1.0.0
- First release: interstellar stations try the nearest supplier / demander first, inside each of the game's own priority tiers. 首次发布:星际物流运输站在游戏自带的每一层优先级里,先挑最近的供货 / 收货塔。