tsunamayo / Starship-EVO

Welcome to Starship EVO bug tracking repo !
118 stars 17 forks source link

logic controlled float controller/setter gate #6073

Open najlitarvan opened 3 weeks ago

najlitarvan commented 3 weeks ago

this is a heavy rewording of this suggestion and if deemed appropriate i will delete the previous one,since they are kinda a duplicate. https://github.com/tsunamayo/Starship-EVO/issues/6060

primary solution: logic controlled float controller this idea would introduce a new logic block with the ability to use multiple inputs, if though about simply, it would be a logic controlled slider equivalent each input would be visible in a menu and have their tag (changeable via the multitool’s tag tool) shown as seen in video one there would be three settings between which could be chosen (as seen in the beginning of vid 3): • Set to: will set the float to a specific value, main use would be as a multi position sequence gate or setting reactor, shield outputs etc... • change by: would be adding or subtracting from the desired position, that the attached mechanism would try to move to at it’s own pace, depending on it’s travel speed • rate: similar to change by, but mostly meant for rotators, where change by is tick based, this would operate in seconds, will allow for smoother rotation set to and change by can se seen in video 2, rate can be seen in video 3. change and rate can also have negative numbers in their setting, which would cause the block to move in an opposite direction modifier: • loop: would allow the value to “roll over”, treating the extremes as if they were next to each other, so .99 + 0.02 would equal .01 main uses for this new system: • multi positon sequence gate • ability to more precisely control mechanisms without relying on collisions • ability to precisely control the output of reactor and other components based on ship state without the necessity of player input, which could be very nice for survival. • thruster output control alternate solution: setter gate setter gate would be a variant of the sequence gate that would only have settings, what state should the connected mechanism be in when the setter is set on, it will not do anything when turned off, only when on and would work as a pulse. this block would have an unusual interaction though, multiple of these could connect to a single mechanism. and everytime one of these setter gates is pulsed on, it would set the mechanism to the position in it’s setting. if two setters were to be turned on, the newly turned on one, overrides the already turned on setter gate.

controller ui: controler

video 1: https://github.com/user-attachments/assets/2ffe77a0-3bcc-415c-bd57-b0325b94c425

video 2: https://github.com/user-attachments/assets/ba06705c-bdc0-4fa9-84ee-979448b51a44

video 3: https://github.com/user-attachments/assets/3a133278-56fa-4236-9136-5a51f1b9269b

setter gate ui if connected to piston: setter_gate