Barotrauma

Barotrauma

Otillräckligt med betyg
Angle switch turret collection
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
19.862 KB
18 okt, 2022 @ 8:22
29 okt, 2024 @ 9:23
4 ändringsnotiser ( visa )

Abonnera för att ladda ner
Angle switch turret collection

Beskrivning
Automatic angle switching circuit collection, including 2 and 3 turrets, relay and WiFi versions, using a large number of regular components to maximize the number of items to reduce the system pressure

Please note: Due to the operation mechanism of the WiFi component, it puts more stress on the system than other components, so it is not recommended to use a lot of WiFi components instead of relays, except for using the characteristics of WiFi components to achieve some specific functions.

How to use the regular component: In this system, the range of the regular expression is the angle that triggers the toggle, for example, the rotation range of a turret is 0-180° and the regular expression responsible for switching is
^(2[0-9]|[3-9][0-9]|1[0-5][0-9]|160)(?!\d)
It means that the safety angle is 0°-20° and 160°-180°, more than this range will switch to the next turret, as for the extra 20° angle on both sides is based on my personal habits to set the error tolerance interval to prevent misuse or too frequent switching, please adjust your own habits according to your use

For players who are not familiar with regular expressions, use this/ Website link [3widgets.com] to generate the range you need and replace the bolded parts of the above expressions.

How to use:
Find Angle switch turret collection in the outpost categories,select the circuits you need and save them as assemble for use
26 kommentarer
自由の代償  [skapare] 9 okt @ 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:
自由の代償  [skapare] 9 okt @ 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 @ 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 @ 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.
自由の代償  [skapare] 8 okt @ 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:
自由の代償  [skapare] 8 okt @ 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 @ 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 @ 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.
自由の代償  [skapare] 8 sep @ 5:18 
@am'z
enjoy it:sunglassesDoge:
am'z 8 sep @ 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.