Barotrauma

Barotrauma

[LK]Reactor_Controller based on Temperature by Luka
65 Comments
Yun-Shan 9 May @ 11:18am 
感谢回复,我尝试了一些减少计算波动的方案,都不太理想,看来是没办法了
LUCA46B  [author] 9 May @ 2:18am 
@Yun-Shan
哦,感谢云佬回复。
是这样的,像雷莫拉那样的挺有叠工程必要的船我就在plus版里把钳值放到了0.6。
不过其实本身把钳值放宽些也不会有太严重的后果,只是钳上更稳定一些,像KB那个堆就完全没做钳值,其实也就那样。
以及用延时器滤波效果反而不见得好,因为温度和功率都是会取整的,波动几乎是必然,反倒是实时解算能弥合一点容差问题。
Yun-Shan 9 May @ 1:30am 
最近玩的一个档遇到了4个洗灵助手叠工程师,才突然发现这个钳值似乎只适用单工程师天赋的,感觉可以直接假设涡轮为100然后用公式直接算最大值,然后接一个长延时组件过滤波动,再输出到内存得到功率最大值。
不知道露卡你之前是否尝试过这种设计在实战中的效果如何
Yun-Shan 4 May @ 3:47am 
提供一份官船用的除法组件钳制最大值最小值参数表:
T1:
儒艮级(Dugong): 1.7、1.3
逆戟鲸级(Orca): 1.5、1.1
野獾级(Barsuk): 1.2、0.9
骆驼级(Camel): 1、0.8
T2:
座头鲸级(Humpback): 1.7、1.3
方位角级(Azimuth): 1.5、1.1
逆戟鲸级Ⅱ型(Orca2): 1.3、1
提丰级(Typhon): 1.2、0.9
女武神级(Herja): 1.1、0.8
R-29 “大块头”(R-29): 1、0.8
T3:
卡斯特罗级(Kastrull): 1、0.8
鲫鱼级(Remora): 1、0.8
提丰级Ⅱ型(Typhon2): 1、0.8
海鞘级(Berilia): 0.8、0.6
御冬级(Winterhalter): 0.6、0.4
LUCA46B  [author] 16 Mar @ 6:45pm 
@Luviagelita
这个其实主要原因是积分器的问题,因为用的减法器精度只有0.1(本来该是8.3333的只能填8.3),所以会导致升温上不来(当然可以填8.4,这样又容易烧)。实际上可以先放大再缩小来获得更精准的效果,但这样会加多四个组件,我就懒得搞了。
毕竟如我所说,这玩意就是个玩具,真打战役无脑温控常态就行了。我自己的船真得用双模式的像仿星器那也都是参数手调。
开自动控制的话电压低于1/涡轮比裂变就会被强制飙高拉都拉不下来,所以会显得这个问题解决了,具体可以看我阿b的某动态
Luviagelita 16 Mar @ 12:18pm 
我发现双模式不管有没有设置钳制值,节能模式下每当突然大幅升高负载(比如停船时全速起步)或者切换到高燃耗模式,都会直接大幅降低反应堆温度至0功率,且堆芯升温速度变得比官方自动还慢,直到温度恢复到满足正常运行。
如果开着原版 自动控制 就不会出现这个问题(难绷)
LUCA46B  [author] 16 Mar @ 8:34am 
@Luviagelita
具体是怎么搞的忘了,好像双模式设钳制会有点怪怪的还是咋样?毕竟那玩意主要是我自己做着玩,实际游戏里实用性其实不咋高
Luviagelita 15 Mar @ 2:57pm 
哦,还是最左上角的除法组件吗?双模式没有预设值搞得我有点迷惑
Luviagelita 15 Mar @ 2:56pm 
双模式反应堆该在哪里设置钳制值啊?
LUCA46B  [author] 24 Dec, 2024 @ 7:06pm 
@heheboi
;/
heheboi 24 Dec, 2024 @ 8:32am 
3!
LUCA46B  [author] 24 Dec, 2024 @ 8:31am 
@heheboi
Em…so may you suggest which may be a better way?
1.Move all English texts down below.
2.Make all English texts italics/bolds or even spoil them.
3.The Current Russian version is well enough,just delete the English texts.
heheboi 24 Dec, 2024 @ 1:00am 
1. Luca, Actualy no, lt is just I see version where It is mix of both english and russian on what I assume russian version. Again, no hate or stuff, it is just confusing af to see both english and russian text mixed
LUCA46B  [author] 24 Dec, 2024 @ 12:50am 
@heheboi
1.Just time the voltage value you need with the Load you put*in.
2.Oh I knew that,the Russian texts only are only demonstrated on Russian language page.Is that certain sort of against your reading habit?
heheboi 23 Dec, 2024 @ 8:08pm 
okay re-tested, seems to be fine now, but is there any way to overvoltage with this?
heheboi 23 Dec, 2024 @ 7:22pm 
Text itself is fine, it just would be more nice if you put it on its language page (you can make seperate language pages instead of getting all of em on 1 side)
LUCA46B  [author] 23 Dec, 2024 @ 7:06pm 
@heheboi
Sorry for any inconvenience of you!But as I am not capable of Russian,nor am I very sure about the quality of AI-translation,Thus I could only put both texts on(and you may see even the first comment of this mod is about prasing for 'at least AI translation').
And not offensive,but it seems that it requires more texts to convey same information in Russian,making it quite hard to typeset,as it may break the text-limit of page casually.
If you may provide certain more accurate Russian text,I would be happy to replace the current one.
LUCA46B  [author] 23 Dec, 2024 @ 6:29pm 
@heheboi
That's it bruh.
It SHALL be:'5000/4500,4170/4500',rather than the reverse :/
heheboi 22 Dec, 2024 @ 9:28pm 
I did calculate as guide said, like ij my case 4500/5000 and 4500/4173 because it is typhon. Oh and could ya delete/put AI generated Russian on it's page because currently it is kinda hard to read page with both languages, considering I know both.
heheboi 22 Dec, 2024 @ 9:25pm 
I think Im dumbass then: because A: I ran it with perfomance fix, then also with auto-control to increase fission reaction speed. Other than those moments it worked fine. Will test without those to see if everything alright.
LUCA46B  [author] 22 Dec, 2024 @ 9:02pm 
@heheboi
Er...Well,that's unusual.That is not suppose to happen as long as:
1.you installed it correctly(you pulled it out directly form item assemble,or you copied one without any missing for every component,and you set the clamp value correctly)
2.you are not running it with mods like performancefix without giving priority list to components.
3.Auto-Control is off.
4.your reactor is not way too irregular(like have a maxoutput of 999999kw).
For your question:
If none of above 1-3 tip went wrong,I guess you may got a high power reactor and a very high load engine,which caused problem for maxpower-calculator.
To solve this,you may try to delete the devide component which you should need to set clamp value,calculate it(formula:5000/(maxoutput*upgrades)on your own and fill that directly to that RAM(which now become a ROM).
heheboi 20 Dec, 2024 @ 6:50pm 
I maybe dum, but this reactor controller is way more unstable than ones from QoL wiring guide... As in power the moment captain yanks controls, this reactor control seems to instantly dump fission to 0 and then fail to adjust back
LUCA46B  [author] 13 Dec, 2024 @ 3:32am 
That's the newly question.
To solve it will need a lot sting key effort,which I'm not into it.
Or you may support this proposal on github.Thx.
Uh,I hate this.
LUCA46B  [author] 13 Dec, 2024 @ 3:29am 
——will force the turbine to be low when start a round,causing reactors controlled by above method misbehave and screaming,only to prevent a not common question.(I have played campain with Vanilla ships for at least 800h,never questioned by that.No much crews will dock at full speed,if they do,they shall be experienced enough to deal with the reactor as well)
I hope this alter can be canceled,for it's fixing an uncommon trouble by causing trouble for more players.OR at least make that no happen when the 'auto-control' has been turned off.
We just do not need it.
LUCA46B  [author] 13 Dec, 2024 @ 3:29am 
The newly alter for reactor destroying current control curcuit. #15362

After the update of 0.19,a new method to contorl the reactors has been developed:
Fix the 'turbine' value to 100,and use 'fission' to control the output by adjust temperature,By which the reactor can reach a adjustment speed of 20%/s.
This method has been long developed,widely used,and relatively balanced(as it will cost much more fuel to maintain unfunctioning turbine.)

BUT the new alter of reactor——
“- Reactors attempt to rapidly adjust to the load in the first 5 seconds of a round, during which time junction boxes don't take damage from overvoltage. Intended to address overvoltage in cases where the reactor is outputting a lot of power, and the load suddenly drops when a new round starts (e.g. due to the engines powering down).”
LUCA46B  [author] 9 Nov, 2024 @ 7:09pm 
@Mercatto
Thanks for ur appreciation(*´∀`*)♡
Mercatto 6 Nov, 2024 @ 11:46am 
Just tested this and aside a few seconds of adjustments whilst booting this control unit works marvelously!
LUCA46B  [author] 6 Nov, 2024 @ 1:56am 
@VIRU
1.我不知道你说的“并联”是什么意思,我就当你安了两个堆了
2.不建议安装多个反应堆,不建议将反应堆输出设置过大
3.假设你非要搞,你有以下选项:当做一个100k的堆去设置,并保证两堆里的燃料永远是一样的;弄两个分别的控制器,然后把给各自的负载值除2;让一个堆倾向负担一半负载,让另一个尝试补足第一个堆和负载的差……
4.总之我不推荐这样干
VIRU 31 Oct, 2024 @ 8:13am 
大佬问一下我是并联最大输出50000的反应堆,怎么调设置才能让他工作?
John Shepherd N7117 14 Jul, 2024 @ 12:42pm 
I figured it out but thank you. I knew their output but I didn't know I had to do that math until I saw a video :P. Thank you
LUCA46B  [author] 6 Jul, 2024 @ 1:03am 
@坏蛋菌 b站私信回了
LUCA46B  [author] 6 Jul, 2024 @ 1:02am 
@John Shepard N7117
Er...You knew that different reactors have different maxoutput and that it can change in the campaign when u upgrade it right?
For example: bursuk's reactor has a max output of 4200 kw,while winterhelter's is 8500kw.
SO,for bursuk u'll calculate:4200/5000=0.84,4200/4170=1.007,so fill 1.1/0.8
while for WH, 8500/5000=1.7,8500/4170=2.04,so fill 2.1/1.7
John Shepherd N7117 30 Jun, 2024 @ 9:13am 
Hello, thanks for the work. I just got into the game. Can you explain what you mean at the end of your description?
"clamp max=5000/basic maxoutput
clamp min=4170/basic maxoutput
Both values are only accurate to 0.1,so make the maximum bigger and make the minimum smaller.For example,if you calculated and got 1.343/1.12 as your result,then fill in 1.4/1.1 ."

1-I edited the top left component with 500 output and 4170 min output.
2-What does the calculation of 1.343/1.12 come from? Do I have to do some math I'm not aware of?
坏蛋菌 23 Jun, 2024 @ 3:30pm 
有一个很奇怪的问题,我在潜艇编辑器里正常链接您这个订阅的配电盒,可以正常工作,但是我只要去游戏内,码一份一模一样的,公式复制线统一链接数值改成一样的,但就是不工作,检查了很多遍也没有问题,很离谱,求作者给解个惑。。。
AzureFish 5 Jun, 2024 @ 3:26pm 
@LUCA46B
大佬请收下我的膝盖:steamhappy:
LUCA46B  [author] 5 Jun, 2024 @ 10:04am 
@AzureFish
鸽了一个月之后总算抽了半个晚上更了。
这个是向i数妥协了的实用版。
改天再更个多组件的脑残版。
LUCA46B  [author] 18 May, 2024 @ 8:16am 
@Key_qiang
是,也不是。说是是因为这玩意就是一个物品集,要直接用只能在编辑器里拿。说不是是因为这东西本质是一个蓝图,有材料你在战役里随时可以现搓
Key_qiang 13 May, 2024 @ 8:14pm 
大佬这个是要再造船的时候用的吗,能在存档里直接用这个配电箱吗
AzureFish 2 May, 2024 @ 8:10am 
@LUCA46B 謝謝解答!

>免得停船撈沉船之類的時候狂暴乾燒
期待這個更新:steamhappy:
LUCA46B  [author] 30 Apr, 2024 @ 10:17am 
@AzureFish
将“请在启动后手动把涡轮(即右条)输出拉满”(当然,in 英文)写物品描述里了。
之前没加这个标语,老有人问我启动的时候烧电网的问题。
并不是啥实质更新。
不过过两天打算做一个可兼容最优燃耗公式的堆。免得停船捞沉船之类的时候狂暴干烧
AzureFish 28 Apr, 2024 @ 7:36am 
@LUCA46B
大佬, 想請問4/26的更新是什麼?
我的船有使用第一個版本 , 好像沒什麼變化:steamhappy:
LUCA46B  [author] 24 Dec, 2023 @ 4:30am 
@Pee Warmer
I have just add the new one into this mod.

And,I started to wonder which kind of "5 component" you were talking about.

If you were talking about temperature-controlled ones with the formula "fission=(5000+load/maxpower*2500)/fuel",clearly it do not even have a component for turbine,which would be unfair to be compared with,and it doesn't match the description of "never overheated"
If you're talking about old fashion formula: "fission=load/maxpower*7500/fuel=75*turbine/fuel,turbine=load/maxpower*100",THEN,that would not be "slightly faster",but WAY FASTER (4 times,to be precise).

I fell into some kind of trap thinking that there have exist some kind of controller needing just 5 components,having no issue when initializing,and just little slower than 20%/s.
Well,as far as I know,there's just nothing like that after version 0.19.
LUCA46B  [author] 24 Dec, 2023 @ 3:06am 
@印象不深的名字 反应堆容差问题,电网超载和低压的时候会给涡轮输出一个最大1%的魔法加减值使功率更加接近负载一点。
如:一个10000功反应堆,
负载5000涡轮50,功率5000
负载5000涡轮49.2,功率还是5000
负载5000涡轮43.2,功率4420
负载5000涡轮100,功率9900
功率5000涡轮99,功率9800
而这个反应堆的涡轮输出是钳在99的(可以稍微省一点点燃料),这样在功率不足的时候仍然以100%功率输出,主动超载的时候则是会被容差强行压到98%。如果直接钳在100的话当然就是只被压到99%。
通常来讲影响不大。
LUCA46B  [author] 24 Dec, 2023 @ 12:56am 
@Pee Warmer
SO,the LOGIC is:
"faster" made it having(needing) more components.
more components made it able to have some more incidental functions.
one incidental function(adopter) have certain side effect.

And,your "frying" talk is annoying me,so I'll make a version 2 in the same mod.
I can change the program from "no overheat" to "no overload" ,which is quite simple,at the cost of er… slightly larger oscillation?idk,whatever.I am just gonna to make it,and let us see if it satisfy you better.
LUCA46B  [author] 24 Dec, 2023 @ 12:39am 
@Pee Warmer And,the adopter is just a division component.If you hate it,just pull it out,calculate the needed value by hand and fill that to the mem,which would not influence other function,and decrease the item number.OR,you could also add the division component to a 5 component one,making it adopt upgrades to a certain extent,while more likely to overload when starting up,which makes the same.I have to mention,it is just a incidental function.
LUCA46B  [author] 24 Dec, 2023 @ 12:38am 
@Pee Warmer About frying junction boxes,or say: over load.There are two factors.
FACTOR 1:Controller always considers turbine value as 100(or 85),which is not always 100(or 85),so over load happens,which clearly happens for 5 component ones as well.
FACTOR 2:THE MAXPOWERADOPTOR(or say autocalibration,whatever).It do behave bad when initializing,especially for big reactors like Winterhelter's. But you can simply avoid that by not let the reactor shut down:
"is it really that hard to switch to manual and insert them carefuly one by one instead of jamming all 3-4 at once"
.Just,switch to maunal,pull turbine to max,adjust fission till temperature is not zero,OVER(and u can just jam 4 rod at once).
LUCA46B  [author] 24 Dec, 2023 @ 12:38am 
@Pee Warmer this whole controller is JUST MAINLY ABOUT
"as it would not slow down when the temperature approached the aimed value”
,for which most components serve.That is why I written that on the first,while listed the others below it.
MAKING IT SIGHTLY "FASTER" IS THE MAIN POINT,I did all other functions(such as adjust for single U rod)incidentally,JUST because I think a memory component keeping sending a fixed number is silly,so I did it.
As for "WORTH",I once designed a integrator to detect the difference between this one and 5 ones(every 1/60 second add one point to the one with less error),which turned to be:Yes,it is slightly better.As for "is it worth adding 9 more components?"(Frying junction boxes is another thing),it is hard to tell,to me,it is worth,so I made it.
印象不深的名字 17 Dec, 2023 @ 1:14am 
又是我,请问大佬,这个自动控制组件是不是有什么保护机制,没办法真正拉到满功率?我用了你说的方式给了一个虚拟的满负荷来让反应堆功率拉高,但跟我用简单的组件拉高的满功率有点出入,大概低了1%
Pee Warmer 15 Dec, 2023 @ 6:46am 
However it is faster when it comes to peaking reactor compared to 5 component one, but is it worth frying junction boxes?
Pee Warmer 15 Dec, 2023 @ 6:41am 
> After wiring up and running all 4 rods at once on Winterhalter it fried a bunch of boxes during autocalibration

Also happens with just one rod, seems to be too aggresive during launch