Space Engineers

Space Engineers

Blarg's Hinge Steering
75 kommentarer
shadreq 16. jan. kl. 20:13 
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. kl. 20:04 
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. maj 2024 kl. 23:07 
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 kl. 11:21 
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. juli 2023 kl. 13:56 
Publish it drakonoid we need it
MYST_Drakonoid 21. dec. 2022 kl. 22:15 
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. juni 2022 kl. 12:38 
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 kl. 19:41 
Does this script work for Xbox controller or just with keyboard?
Ren 15. sep. 2021 kl. 19:20 
@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. juli 2021 kl. 22:21 
Any way to get this working with analog joy input?
Fool of Many Fandoms 26. apr. 2021 kl. 22:01 
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 kl. 3:44 
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 kl. 14:29 
Any way to get it to be able to use the mouse scroll wheel?
★UP | julius ★TeamPyro★ 8. feb. 2021 kl. 1:22 
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 kl. 3:35 
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  [ophavsmand] 11. jan. 2021 kl. 9:17 
@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 kl. 17:05 
How do I get this to work?
Hornet 27. nov. 2020 kl. 14:12 
with this script my sky crane can finally work now
lechkingofdead 25. nov. 2020 kl. 21:15 
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 kl. 2:31 
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 kl. 13:14 
@Blargmode

Thank you very much.
Blargmode  [ophavsmand] 9. nov. 2020 kl. 12:23 
@[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 kl. 0:59 
@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  [ophavsmand] 8. nov. 2020 kl. 4:58 
@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 kl. 3:02 
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 kl. 15:10 
@Blargmode Thank you for the answer.
Blargmode  [ophavsmand] 5. nov. 2020 kl. 11:28 
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  [ophavsmand] 5. nov. 2020 kl. 8:41 
@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  [ophavsmand] 5. nov. 2020 kl. 8:34 
@[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 kl. 4:17 
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 kl. 17:05 
Is there a possibility, to add the arrow keys as input?
It would make this script truly perfect.
Sirshartsalot 4. nov. 2020 kl. 14:06 
i will remove it then okay
Sirshartsalot 4. nov. 2020 kl. 14:05 
Why does it add hinges though?
Blargmode  [ophavsmand] 4. nov. 2020 kl. 12:27 
@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 kl. 11:57 
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 kl. 4:36 
i was using the normal hot keys for my miner and hating it THANK YOU!
Фуганок 1. nov. 2020 kl. 13:42 
Наконец-то К-700 соберу в инженерах
hhylz2001 29. okt. 2020 kl. 21:36 
Wow thanks! I need this for my Jaeger!
IronWill 4. okt. 2020 kl. 22:20 
I'm not sure when I'll use it, but the video alone made me subscribe
Xmasbeer 12. sep. 2020 kl. 7:34 
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 kl. 13:56 
aah, got it working. Thanks! im loving it already!
Blargmode  [ophavsmand] 30. aug. 2020 kl. 13:24 
@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 kl. 12:21 
it does not show up in my mods, what can i do to fix it?
Chaos Uncensored 30. aug. 2020 kl. 1:12 
That is perfect, thank you for clearing it up for me :)
Blargmode  [ophavsmand] 29. aug. 2020 kl. 7:59 
@=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 kl. 0:48 
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  [ophavsmand] 29. aug. 2020 kl. 0:40 
@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 kl. 17:02 
@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 kl. 12:32 
This is awesome!:47_thumb_up:
Paul Drive 28. aug. 2020 kl. 9:35 
I've been SO waiting for this!