Space Engineers

Space Engineers

Blarg's Hinge Steering
75 Comments
shadreq 16 Jan @ 8:13pm 
I have been able to replicate the issue on other grids as well, it seems to freak out whenever a rotor's limits are negative as opposed to positive ex. -90 to 0 but fine when they are 0 to 90. The issue is that the rotor auto straightens to -90 as opposed to 0.
shadreq 16 Jan @ 8:04pm 
Hey anyone, Ive been having some trouble setting this script up on mirrored rotors. I find that the script keeps auto straightening my 2nd rotor in the opposite way that I need it to be. Is there a way to reverse/adjust where the script considers the "default" position on rotors and which way it turns to achieve that position? Not really sure if this description made much sense, but any help would be appreciated as I have successfully set up one side but can not figure out the other.
昶chang 17 May, 2024 @ 11:07pm 
Hello author, your script is very easy to use, can you add a piston control function, so that you can use your script to make a more complete robotic arm:steamthumbsup:
Blacky Watchy 30 Apr, 2024 @ 11:21am 
it seems like u arent working on scripts for SE any longer but i were wonderng if, in the case u return, u could check over an issue im experiencing with this script in which the hinges angles are no longer read correctly or something and it refuses to move (to be exact), pushes against the limits instead of getting to the angle it should. this script is amazing and i would love to be anle to push it to its max potential
HexStrain 26 Jul, 2023 @ 1:56pm 
Publish it drakonoid we need it
MYST_Drakonoid 21 Dec, 2022 @ 10:15pm 
hey! i have a modified version of the code that supports remote control blocks instead, it doesn't encompass all control blocks, but i was wondering if i could possible publish it making sure to give you the credit for the base code?
Eternal Colossus 11 Jun, 2022 @ 12:38pm 
Hey! Really enjoying this script and getting good use out of it. I was wondering if you could add something to the effect of "script number:" to the script, so that for example if you have two program blocks, both with this script but with different script numbers, then they could control different things and have different settings on auto straighten for example
TheJurassicGenius 13 Dec, 2021 @ 7:41pm 
Does this script work for Xbox controller or just with keyboard?
Ren 15 Sep, 2021 @ 7:20pm 
@Cronyx A little late but you could try using the plug-in "WL Analog Script Input and Throttle" with this script. May work for what you're wanting
Cronyx 1 Jul, 2021 @ 10:21pm 
Any way to get this working with analog joy input?
Fool of Many Fandoms 26 Apr, 2021 @ 10:01pm 
excuse me blargmode

is there a way to change the straighten position? i am trying to use this to make the hip joints for an aerial combat/space mech with directional thrusters on the legs, is there a way to make them default to a specific position that isn't straight out to the sides
★UP | julius ★TeamPyro★ 13 Apr, 2021 @ 3:44am 
Blargmode am i correct in thinking that the script directly attatches it self to the system that deals with controll of things like thrusters, wheels and gyros?
If i am correct, then that would also mean that it isnt possible to manually bind keys to use for controlling hinges, right?
Syngather 27 Mar, 2021 @ 2:29pm 
Any way to get it to be able to use the mouse scroll wheel?
★UP | julius ★TeamPyro★ 8 Feb, 2021 @ 1:22am 
Sh@do_wiee 2 programmable blocks, both running the programm. Then set one to have like the Q and E rotation controlls and one to another set of turning hotkeys. All parties can probabbly controll all turrets but if everone only uses the keys they need then it should work.
Sh@do_wiee 6 Feb, 2021 @ 3:35am 
heey Blagmode,

i have a question. im trying to make a B17-Flying Fortress. with 2 ballturrets. but when i try to make 1 turn with your script. both turrets will start steering.. any idea how i can make them turn separately. so that i can have 2 frends man the turrets and shoot independently.
Blargmode  [author] 11 Jan, 2021 @ 9:17am 
@Krighton The installation instructions should hopefully get you going given that you have in-game scripts enabled in the world settings.
Silas 10 Jan, 2021 @ 5:05pm 
How do I get this to work?
Hornet 27 Nov, 2020 @ 2:12pm 
with this script my sky crane can finally work now
lechkingofdead 25 Nov, 2020 @ 9:15pm 
this is gonna make inrusrial rovers and drones a lot more, "friendly" as i love the idea of hindges instead the crappy system the game has for wheels at its dumb at times for looks *i will be using this in my current survival save.
★UP | julius ★TeamPyro★ 10 Nov, 2020 @ 2:31am 
I want to say that i really like the script, but i also want to note that i originally was under the impression that i could bind keys myself which caused a lot of confusion after i wasn't able to do so. It could just be me misreading something though. I figuerd it out now and the script works great.
[7HBK] Elrond McBong 9 Nov, 2020 @ 1:14pm 
@Blargmode

Thank you very much.
Blargmode  [author] 9 Nov, 2020 @ 12:23pm 
@[7HBK] CoFFEeSHocK Ah, I see now what you mean.

Version 1.4.0 Now available!
This version adds mouse/arrow key support. To use it, just add yaw or pitch to the hinge name, like this: "#steer yaw".
[7HBK] Elrond McBong 9 Nov, 2020 @ 12:59am 
@Blargmode

My first answer was a bit vage, sorry for that. I asked for the Arrow Key input, because i build a ship with, how should i call these, finns(?) rudder(?), beside the thruster Array, with i thougt would be look nice, if they're articulated. But the problem is, that A and D is for strafe but i need the same functionality for turning Left and Right. This was the Intention for my Question.
Blargmode  [author] 8 Nov, 2020 @ 4:58am 
@NeonDrip Yeah that sounds familiar, arrow keys probably control the same axis as the mouse, and scripts can use the input from that. Then my previous reply was a bit misleading. The thing is that you can't control a script and the ship separately. They read from the same input. That's how I (miss?)interpreted the question.
NeonDrip 8 Nov, 2020 @ 3:02am 
Is it really not possible to read arrow key input with scrips? i would think youll be able to since the contral pitch and yaw in the contral seat and should be accessable like roll is.
[7HBK] Elrond McBong 5 Nov, 2020 @ 3:10pm 
@Blargmode Thank you for the answer.
Blargmode  [author] 5 Nov, 2020 @ 11:28am 
Latest update to v1.3.2 (2020-10-16)
Bugfix. Thanks for the feedback @TREASEND. Fixed the steering running amok which could happen when exiting the vehicle.
Blargmode  [author] 5 Nov, 2020 @ 8:41am 
@TREASEND Yeah, I though that uhm.. behavior was handy at first to get it to stay turned when exiting the vehicle. But I guess it's pretty dumb now when you can toggle auto centering at any time. I'll fix that.
Blargmode  [author] 5 Nov, 2020 @ 8:34am 
@[7HBK] CoFFEeSHocK Yes and no. You can assign the arrow keys to do the same as wasd in the game settings, but the script can't use arrow keys individually from the wasd keys, as that is not possible to do in an in-game script.
TREASEND 5 Nov, 2020 @ 4:17am 
hey i'm having an issue with the hinge now, if its not sitting at 0 on the dot e.g. -1 it it will keep turning past 0 till it hits 90 and stay locked at 90 till i enter the seat any ideas?
(not sure if its just the large grid but my small rover was fine)
[7HBK] Elrond McBong 4 Nov, 2020 @ 5:05pm 
Is there a possibility, to add the arrow keys as input?
It would make this script truly perfect.
Sirshartsalot 4 Nov, 2020 @ 2:06pm 
i will remove it then okay
Sirshartsalot 4 Nov, 2020 @ 2:05pm 
Why does it add hinges though?
Blargmode  [author] 4 Nov, 2020 @ 12:27pm 
@Sirflartsalot This is not a mod. It's an in-game script. You should remove it from the mod list. All you need to do to use it is press edit in a programmable block and select it from the workshop list.
Sirshartsalot 4 Nov, 2020 @ 11:57am 
This mod brings up a error when i login to my server in the middle of my screen is there a way to sort that please.
TREASEND 4 Nov, 2020 @ 4:36am 
i was using the normal hot keys for my miner and hating it THANK YOU!
Фуганок 1 Nov, 2020 @ 1:42pm 
Наконец-то К-700 соберу в инженерах
hhylz2001 29 Oct, 2020 @ 9:36pm 
Wow thanks! I need this for my Jaeger!
IronWill 4 Oct, 2020 @ 10:20pm 
I'm not sure when I'll use it, but the video alone made me subscribe
Xmasbeer 12 Sep, 2020 @ 7:34am 
Worked really well for full articulation with roll for rotor and up for a second hinge. Created a proof of concept based on your script and ended up with a vehicle that can always get itself back on wheels.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2226853753
Sh@do_wiee 30 Aug, 2020 @ 1:56pm 
aah, got it working. Thanks! im loving it already!
Blargmode  [author] 30 Aug, 2020 @ 1:24pm 
@Sh@do_wiee It's an in-game script so if you're subscribed it should show up in the programmable block. Press Edit > Browse scripts. Make sure in-game scripts are enabled in your world settings.
Sh@do_wiee 30 Aug, 2020 @ 12:21pm 
it does not show up in my mods, what can i do to fix it?
Chaos Uncensored 30 Aug, 2020 @ 1:12am 
That is perfect, thank you for clearing it up for me :)
Blargmode  [author] 29 Aug, 2020 @ 7:59am 
@=LW= Chaotic_Knightmare Shift+direction is not possible, but right now you can control different hinges with the different movement keys, A-D, W-S, Q-E, and space-C. So 4 individually controlled hinges/rotors. See here .
Chaos Uncensored 29 Aug, 2020 @ 12:48am 
Ah, so with what you stated below it should be possible to map W and S to a hinge as well, or maybe even a shift+direction for another hinge? I only ask because i have a somewhat complicated "crane" setup on a large ship that is used to move my smaller ships around. If i could use it as described above i could make it work far better/faster.
Blargmode  [author] 29 Aug, 2020 @ 12:40am 
@Mazen IIXIS There are properties available on the flight seats called GetMovementIndicator and GetRollIndicator. That gives you values usually between -1 and 1 that corresponds to the users Input. So, for turning in this script I check the x-axis of the movement indicator, as it corresponds to A and D buttons.
Mazen IIXIS 28 Aug, 2020 @ 5:02pm 
@Blargmode you said that this script doesn't need control module since directional inputs can be read directly by scripts, I'm curious how is that done? Normally it requires a mod to be able to translate key presses to be read by the programmable block, but I'm guessing there's a way to do it without needing a mod?
Red Unit 28 Aug, 2020 @ 12:32pm 
This is awesome!:47_thumb_up:
Paul Drive 28 Aug, 2020 @ 9:35am 
I've been SO waiting for this!