边缘世界 RimWorld

边缘世界 RimWorld

48 个评价
Xiangleng's Turret Pipeline patch
3
2
   
奖励
收藏
已收藏
取消收藏
Mod, 1.5, 1.6
文件大小
发表于
更新日期
137.118 KB
5 月 11 日 上午 11:45
9 月 27 日 下午 3:50
13 项改动说明 ( 查看 )

订阅以下载
Xiangleng's Turret Pipeline patch

描述
Translated by Google

Changed the ammo consumption of the turrets to the following ratio:
1 steel = 1 turret ammo
1 fiberglass = 1 turret ammo
1 uranium = 1 turret ammo
1 component = 25 turret ammo
1 advanced component = 150 turret ammo
1 reinforced barrel = 300 turret ammo

For example, the Tunguska in The Dead Man's Switch consumes 20 reinforced barrels to fire 2000 rounds, and now it needs to consume 20*300=6000 turret ammunition to fire 2000 rounds.

If other item is consumed as ammunition, a rough estimate based on its raw materials, workload, and market value is used, and the conversion is rounded up.

Include the 1:1 conversion of the component consumption of emp turrets by Vanilla Furniture Expanded - Security in the original mod has also been changed.
I will mainly focus on the mods I play. If you have subscribed to other patches and made changes to the same turret, the data sorted later will be used.


将炮塔的弹药消耗调整为以下比例:
1钢铁=1炮台弹药
1玻璃钢=1炮台弹药
1铀=1炮台弹药
1零部件=25炮台弹药
1高级零部件=150炮台弹药
1加固炮管=300炮台弹药

例如,失能机关中的通古斯卡炮塔原本消耗20个加固炮管发射2000发弹药,现在改为消耗 20*300=6000炮塔弹药 才能发射2000发。

如果消耗其他物品作为弹药,则根据它的原料、工作量、市场价值进行大致估算,四舍五入后进行转换。

包括原模组中对原版家具扩展 - 防卫的emp炮台零部件的1:1的转换也进行了更改。
本补丁主要针对我游玩的模组。若订阅了其他修改相同炮塔的补丁,排序靠后的补丁数据将优先生效。


Patches added for:
Vanilla Furniture Expanded - Security
Vanilla Factions Expanded - Deserters
Fortifications - Industrial
Fortification Industrial - Citadel
The Dead Man's Switch
The Dead Man's Switch - Medium Caliber Multi-Purpose AutoCannon Program
Giant imperial turret
Mechanitor's Weapons
CeleTech Arsenal MKIII
Rah's Vanilla Turrets Expansion
Anti-Air: CIWS(Close-In Weapons System)
PLA-Armory
UF Heavy Industries


添加了以下补丁
原版家具扩展 - 防卫
原版派系扩展 - 变节者
防御工事 - 工业
防御工事 工业 - 城塞
失能机关
失能机关 - 中口径多用途自动炮项目(MC-MPAC)
巨型帝国炮塔
机械师武器拓展
天工铸造 3.0 CeleTech Arsenal
Rah 的原版炮塔扩展
防空近程防御系统
解放军武器
联合重工-UF Heavy Industries


If you also want to try to modify the ammunition conversion multiplier in your own patch, you can do so by modifying fuelMultiplier, but be aware that in the game, the final ammunition required for filling will be rounded up, and may cause errors due to numerical precision.
Take Tunguska as an example, its value is:
fuelCapacity=2000, original fuelMultiplier=100, full filling required=2000/100=20 units (reinforced barrel), converted at a multiplier of 300 to 20*300=6000 units (turret ammunition).
In order to make the final result in the game meet expectations, it is necessary to find x that satisfies 2000/x rounded up to 6000.
Solve the inequality: 5999 < 2000/x < 6000
Then we get: 1/3 < x < 2000/5999 → x∈(1/3 , 2000/5999)
So just change the fuelMultiplier to an x ​​that satisfies the condition, such as 0.33334, and the in-game ammunition consumption will meet expectations.
Of course, if you are not as picky as I am or don’t care about this little error, using 0.3 is also feasible.
I don't know if there is a better or simpler way, but I hope my experience can help you.


如果你也想要在自己的补丁中尝试修改弹药转换倍率的话,可以通过修改fuelMultiplier实现,但是需要注意在游戏中,最终的填充所需弹药会被向上取整,并可能因为数值精度而导致误差。
以 通古斯卡 举例,它的数值为:
fuelCapacity=2000,原fuelMultiplier=100,完全填充所需=2000/100=20单位(加固炮管),按倍率300转换后为20*300=6000单位(炮台弹药)。
为了使游戏内的最终结果符合预期需要找到x满足2000/x向上取整等于6000。
解不等式:5999 < 2000/x < 6000
得出:1/3 < x < 2000/5999 → x∈(1/3 , 2000/5999)
所以只要将fuelMultiplier更改为满足条件的x,例如0.33334就能使游戏内的弹药消耗符合预期。
当然,如果你没有我这么较真或者不在意这一点误差的话,使用0.3也是可行的。
我不知道有没有更好、更简单的方式,但希望我的经验能帮助到你。
35 条留言
Xiangleng  [作者] 9 月 27 日 下午 3:53 
@DeleteC 这是从 天工炮台扩展 改名过来后导致我的补丁不生效,现在能正常用了
DeleteC 9 月 24 日 上午 6:28 
联合重工自己更新了炮台兼容,但是有点英文,老大能修一下吗
RiNG第一突破手Chihaya Anon 9 月 15 日 上午 2:44 
没事了,我算错了,200钢铁是250发炮塔弹药(
RiNG第一突破手Chihaya Anon 9 月 15 日 上午 2:13 
我看了xml,黎明之刃的倍率和迅捷剑一样,但是迅捷剑一次损耗的durability是4,这正常吗(
RiNG第一突破手Chihaya Anon 9 月 15 日 上午 2:02 
非常感谢!现在才发现原来不满的炮塔会显示重置花费……所以迅捷剑滋一次五连射能喷掉700多弹药合1400钢是正常的吗(
Xiangleng  [作者] 9 月 14 日 上午 6:44 
@RiNG第一突破手Chihaya Anon 重新改一遍所有炮台工作量太大了,最近可能没什么时间。虽然也可以通过Harmony做一个动态补丁,但是我的技术力不太够(哭
原版环境下就可以通过建筑详细页里面的"重置费用"这一栏看到了(虽然只能在建造完成并且弹药未满的情况下看到当前的 完全填充所需弹药数量,所以并不直观

另外我之前和其他补丁作者交流的时候发现了有些炮台可能会有 填充速度过慢 或者 弹药消耗异常 的bug,已经提交给原作者了但是似乎没修。
如果发现了弹药消耗异常的炮台可以弄一个独立的小网络来控制消耗,或者通过小人手动填充(手动填充不会有额外消耗)。
RiNG第一突破手Chihaya Anon 9 月 14 日 上午 3:33 
能不能添加一个直观一些的游戏内说明标注一下转换效率?牢刃和迅捷剑一开火吓死我了(
Xiangleng  [作者] 8 月 31 日 上午 4:38 
This seems to be because Turrets: Re-examined removed nodes when modifying defs, causing my patch to be unable to find the target when applying the changes (I checked the Turrets: Re-examined patch and asked deepseek, and this is what it told me).

I've marked Turrets: Re-examined as a mod to load before it, to ensure that people using automatic sorting can sort the mods correctly.
pillbug2 8 月 30 日 下午 8:06 
Hello, thank you for the mod! I found an error from this mod when Turrets: Re-Examined and Rah's Vanilla Turrets Expansion are also loaded.

Log: https://gist.github.com/HugsLibRecordKeeper/115ed7341b3c12116079675073b4fc9e

Error on line 365:
[Xiangleng's Turret Pipeline patch] Patch operation Verse.PatchOperationFindMod(Rah's Vanilla Turrets Expansion) failed

Load order:
Harmony
Rimworld
Rimworld - Royalty
Rimworld - Ideology
Rimworld - Biotech
Rimworld - Anomaly
Rimworld - Odyssey
Vanilla Expanded Framework
Log Publisher from Hugslib
Rah's Vanilla Turrets Expansion
Reel's Turret Pipeline
Turrets: Re-examined
Xiangleng's Turret Pipeline Patch

I also found a solution. The error is fixed if Turrets: Re-examined is loaded after your mod.
Xiangleng  [作者] 8 月 30 日 下午 2:49 
新增对 解放军武器[天工铸造]炮塔拓展 的兼容
Added compatibility with PLA-Armory and [CeleTech] Turrets Expansion