fix: update mod compatibility for DSP 0.10.35.29131

Restore Ray Receiver buffer settings with the native integer intake check
and correct the displayed native buffer threshold.

Use VehiclePartProtoSet for LiveStreamAssist dictionary generation and
refresh offline text and icons from the current game installation.

Refresh compile-time game references and document the compatibility audit.
This commit is contained in:
soarqin committed 2026-10-12 18:35:24 +08:00
1 parent d90994d2ec
commit 0015c16f0c
10 files changed
+62 -11

No files matched your search

+2
View File
@@ -4,6 +4,7 @@
## Changlog
* 1.6.2 - Unrelease
* `Tweak building buffers`: Restore the Ray Receiver Graviton Lens buffer setting on DSP 0.10.35.29104 and later, and correct the displayed native buffer value to 2.
* `Drag building power poles`: Fix invalid alternating previews when enabling the option after loading a save, and restore original spacing when disabling it.
* Close building and belt hover popups when opening the pause menu so they cannot obscure menu controls.
* `Protect veins from exhaustion`: Exclude protected veins from mining-rate estimates, mining resource counts, and miner hover counts while retaining their remaining reserves.
@@ -433,6 +434,7 @@
## 更新日志
* 1.6.2 - Unreleased
* `调整建筑输入缓冲`:修复 DSP 0.10.35.29104 及后续版本中射线接收器透镜缓冲设置不生效的问题,并将显示的游戏原始值更正为 2。
* `拖建电线杆`:修复载入存档后才启用功能时交替放置的预览异常,并在关闭时恢复原有间距。
* 打开暂停菜单时关闭建筑和传送带的悬浮提示,避免提示遮挡菜单。
* `保护矿脉不会枯竭`:开采速度估算、开采中资源数量和采矿机悬浮信息不再把受保护的矿脉计入开采;仍保留剩余储量显示。
+2 -2
View File
@@ -382,7 +382,7 @@ Assembler buffer minimum multiplier: 2
Buffer count for assembling in labs: 6
Extra buffer count for Self-evolution Labs: 3
Buffer count for researching in labs: 10
Ray Receiver Graviton Lens buffer count: 20
Ray Receiver Graviton Lens buffer count: 2
Ejector Solar Sails buffer count: 20
Silo Rockets buffer count: 20
""", """
@@ -392,7 +392,7 @@ Silo Rockets buffer count: 20
研究站矩阵合成模式缓存数量:6
自演化研究站矩阵额外缓冲数量:3
研究站科研模式缓存数量:10
射线接收器透镜缓冲数量:20
射线接收器透镜缓冲数量:2
弹射器太阳能帆缓冲数量:20
发射井火箭缓冲数量:20
""");
@@ -79,13 +79,12 @@ internal static class BuildingBufferPatch
matcher.MatchForward(false,
new CodeMatch(OpCodes.Ldarg_0),
new CodeMatch(OpCodes.Ldfld, AccessTools.Field(typeof(PowerGeneratorComponent), nameof(PowerGeneratorComponent.catalystCount))),
new CodeMatch(OpCodes.Conv_R4),
new CodeMatch(OpCodes.Ldc_R4, 20f),
new CodeMatch(ci => ci.LoadsConstant(2)),
new CodeMatch(OpCodes.Clt)
);
if (matcher.IsInvalid)
return matcher.Finish(instructions, UXAssist.Logger, nameof(PowerGeneratorComponent_GameTick_Gamma_Transpiler));
matcher.Advance(2).RemoveInstructions(2).Insert(new CodeInstruction(OpCodes.Ldc_I4, FactoryPatch.ReceiverBufferCount.Value));
matcher.Advance(2).Set(OpCodes.Ldc_I4, FactoryPatch.ReceiverBufferCount.Value);
return matcher.InstructionEnumeration();
}
// Harmony transpiler: AssemblerComponent_UpdateNeeds_Transpiler
+2 -2
View File
@@ -100,7 +100,7 @@
* `Buffer count for assembling in labs`: Range 2-20, default is 6 (same as game)
* `Extra buffer count for Self-evolution Labs`: Range 1-10, default is 3 (same as game)
* `Buffer count for researching in labs`: Range 2-20, default is 10 (same as game)
* `Ray Receiver Graviton Lens buffer count`: Range 1-20, default is 1 (game default is 20)
* `Ray Receiver Graviton Lens buffer count`: Range 1-20, default is 1 (game default is 2)
* `Ejector Solar Sails buffer count`: Range 5-400 (step by 5); the game's original buffer holds 20
* `Silo Rockets buffer count`: Range 1-40; the game's original buffer holds 20
* Logistics
@@ -290,7 +290,7 @@
* `研究站矩阵合成模式缓存数量`:范围2-20,默认为6(同游戏)
* `自演化研究站矩阵额外缓冲数量`:范围1-10,默认为3(同游戏)
* `研究站科研模式缓存数量`:范围2-20,默认为10(同游戏)
* `射线接收器透镜缓冲数量`:范围1-20,默认为1(游戏默认为20)
* `射线接收器透镜缓冲数量`:范围 1 至 20,默认值为 1(游戏原始值为 2)
* `弹射太阳帆缓冲区数量`:范围 5 至 400(步进值为 5);游戏原始缓冲数量为 20
* `发射井火箭缓冲区数量`:范围 1 至 40;游戏原始缓冲数量为 20
* 物流