Barotrauma

Barotrauma

Angle switch turret collection
26 kommentarer
自由の代償  [skaper] 9. okt. kl. 8.20 
Without proper configuration, performance fixes can trigger errors across a series of circuits, with complex circuits and those requiring precise output timing being more prone to failure.

If you're experiencing rapid camera switching back and forth, it's likely because the overlapping trigger zones for the two turrets are too large. This causes the mouse to remain within the range that triggers switching to the opposite turret when you attempt to switch to one side.

But there's an old saying: If you don't know how something works, don't touch it.
So if it work well, then so be it :Dogeface:
自由の代償  [skaper] 9. okt. kl. 8.10 
@Brightconn
Your comment made me think of several other possibilities, but explaining them verbally would be too cumbersome, so I made new one: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3583635625

Sorry it took a while (mainly due to editing the text and images)
Brightconn 9. okt. kl. 4.13 
I appreciate your additional feedback about RegEx. I do not know why but I was using that expression without the extra Parenthesis(not brackets, sorry). Maybe the issue was in my overlaps with the left turrets? When I put the extra parenthesis on it just fixed it. I do not know how or why it does. Before it worked fine in the right turrets arc, but when transitioning past the rights deadzone into transitioning to the left turret it would perpetually be swapping back and forth. So much so that I could effectively use both guns aimed at the same spot within their shared deadzones, just with a LOT of camera jitter.

Thank you, I will try to look at it again and make it proper. IDK what that parenthesis is causing to fix it, but if it shouldn't be there then I need to fix the real problem.
Brightconn 9. okt. kl. 4.04 
I do not know. Computers confuse me. I went to bed to sleep on it, woke up, reloaded the same testing ship, works as intended. I am utterly confused. This is why I went into mechanical engineering. I digress.

Thank you very much for your time, effort and response. Your circuit is first. Periscope > Angle Switch Circuit Box > Coaxial Circuit Box > Guns 1 and 2. Would having or not having this Performance Fixes thing be impacting this behavior for me? I am unfamiliar with this addition.

Periscope into your circuit > Your output 1 and 2 to Input 1 and 2, respectively, of Coaxial > Coaxial outs 1-4 to their respective position and trigger pins. It seemed like a very plug and play assembly. I figured why no one had made a functionality merger in the shop. I can only assume it was and it just wanted to make me upset until it didnt want to anymore.
自由の代償  [skaper] 8. okt. kl. 21.07 
BTW, if you have any other questions, feel free to leave a comment. I need to catch some sleep and will be back about ten hours after.:Dogeface:
自由の代償  [skaper] 8. okt. kl. 21.01 
@ Brightconn
First, I assume you are not using performance fixes. There is only one scenario that I can reproduce this issue:you have placed a set of coaxial circuits before the angle-switching circuit, then connected wires simultaneously from both the relay's signal_out_2 pin and the signal check component's signal_out pin to the signal_in pin of the output selector component witch controlling the firing.(Technically, simply connecting the signal_out_2 pin of the relay is sufficient to cause this issue.)

Regarding regular expressions, you don't need double brackets. The following patterns are functionally equivalent: ^([0-9]|[1-4][0-9]|50|31[0-9]|3[2-5][0-9]|360)(?!\d) As long as you ensure the valid range is correct, that's sufficient.
Brightconn 8. okt. kl. 15.42 
Could you by any chance give me some insight as to what is going on in this interaction that is failing? I am confident it would take you very little time to see the signal issue. I could be at this for days. Either way, Thank you for your time and this mod has been great on it's own.


P.S. Only one thing I will add, as someone who had never seen RegEx until your mod and this game. It took me half a day to figure out how to make the input for a right facing turret. The extra Regex in the 3 turret config was confusing me. Then i realized if i just double bracket the right facing, like ^(([0-9]|[1-4][0-9]|50)|(31[0-9]|3[2-5][0-9]|360))(?!\d), it works completely as needed for a 2 gun left-right switch.
Brightconn 8. okt. kl. 15.42 
I am very new to all this signaling circuit stuff, but I was trying to combine your system with one of the coaxial systems(for which there are very few configurations available on steam to learn from). In particular I was attempting to integrate the configuration from Coaxial Turret V2. It manages to be able to fire both guns when i run the lines from your circuit into each of the respective circuits for the coaxial before then going to the guns. It wont follow the hold to fire and double click to fire mechanics of the coaxial circuit. It just hold fires the chaingun and fires the rail as soon as its available and there is any trigger input.

I know this isn't solely about your set up, but given your circuit is the lead before that circuit I imagine the signal confusion is in my not understanding what is being output when from your circuit. For all I know it is just not even compatible configurations.
自由の代償  [skaper] 8. sep. kl. 5.18 
@am'z
enjoy it:sunglassesDoge:
am'z 8. sep. kl. 4.01 
Best one on the workshop tried couple different ones. Your's took me 5 min to get it running on two sets of turrets, and I'm on the dim side. Thanks OP.
自由の代償  [skaper] 17. mai 2024 kl. 8.46 
@comjar
Technically I can do that but would greatly increase the number of components used and the chances of incorrect switching, so its unnecessary
comjar 17. mai 2024 kl. 8.04 
in 3 turrets circuit can you make it able to switch from turret 3 to 1 directly?, right now it will switch to turret 2 first then 1
Kara Vaki 6. nov. 2023 kl. 23.08 
Ah ok
自由の代償  [skaper] 6. nov. 2023 kl. 23.05 
@Xendaka Korva
When installing more than 2 turrets, any turret that can be switched to either side requires 2 regex components to determine the direction of switching
Kara Vaki 6. nov. 2023 kl. 21.22 
question, is the forth regex unit simply an extra that can be ignored less you install a forth turret or is it needed for all three?
Moon-Shadow 11. aug. 2023 kl. 6.43 
(1)

The mod makes it possible, for example, to build drone weapons platform.

The upper and lower Coilguns or Chainguns have, left and right together to fire, but if the angle of the upper or lower too far in the other direction where it does not come, it does not fire, so that then up or down where the other does not come only one fires.

I plan to build a drone weapon platform at some point, 2 periscope system, with one control and double click to give a boost, and the periscope next to it then 2 weapons to switch over via double click, my version with 2 coilguns as one system each with 2 magazines per Turret , and the other system a railgun normal with 5 shots or more of the single loaders if there are less than 5 that are connected, Magazine as optical element, and invisible and reduced railgun in the middle of the drone, firing outside the drone has the ejection point, railgun should only be able to fire to the right in a certain angle for now.
Moon-Shadow 11. aug. 2023 kl. 6.43 
(2)

Which uses a wi-fi battery system, or an infinite one, as it has the disadvantage of running out of ammunition.

Maybe breakable, but made so that it doesn't sink, just stays where it is, and can be repaired and resumed.

With the symbol where the invisible dock connection is docked to the submarine, through which the ammunition containers are then accessible.

Write this here, maybe someone else will make such a drone before me.
自由の代償  [skaper] 21. apr. 2023 kl. 6.47 
@tp664066 AI无法使用任何切换炮塔的电路,尽管能够触发炮塔的切换但是只会在玩家指定其使用的炮塔射界内进行索敌和攻击,如果玩家手动切换炮塔的话会出现AI对炮塔射界的敌人进行攻击,但实际开火的炮塔是另一个炮塔的情况
tp664066 21. apr. 2023 kl. 0.34 
您好 請問AI會使用嗎??
自由の代償  [skaper] 16. apr. 2023 kl. 8.41 
妖の夢[Yume] 你堆的组件够多就行 :Dogeface:
妖の夢[Yume] 16. apr. 2023 kl. 8.34 
大佬,我想做4炮塔非对称切换。 这可以实现吗?
KH老仙儿 3. apr. 2023 kl. 13.01 
行吧。感谢佬把这个分享到社区。
自由の代償  [skaper] 1. apr. 2023 kl. 5.57 
用来决定切换的方向,只用一个的话就BUG了
KH老仙儿 31. mars 2023 kl. 22.14 
感谢解惑。可否讲解一下为什么中间那门炮要用两个正则查找拼出一个射界呢?用一个会发生什么?
自由の代償  [skaper] 30. mars 2023 kl. 20.11 
@KH老仙儿 用来分别设置中间炮塔的上下射界,两个正则表达式的取值范围需要覆盖炮塔的射界+安全区(如果有),取值范围外的部分分别对应该方向上的切换触发区域
KH老仙儿 30. mars 2023 kl. 13.22 
佬,3炮的那个设置用了4个正则查找,最上面和最下面的是上下炮塔的射界,中间两个代表了什么?(或者中间两个正则查找是怎么拼出中间那个炮塔的射界?)我自己的设计把中间那个炮塔放到了船左边,在试图改正则检测的条件