Space Engineers

Space Engineers

310 ratings
Blarg's Hinge Steering
6
5
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
14.167 KB
23 Aug, 2020 @ 5:52am
9 Nov, 2020 @ 12:19pm
7 Change Notes ( view )

Subscribe to download
Blarg's Hinge Steering

In 1 collection by Blargmode
Blargmode's scripts
5 items
Description
Turn using hinges instead of regular wheels. WASD control of course.

Installation
1. Install the script.
2. Correct any errors shown in the script output.

Bare minimum components:
• Control seat of some kind
• A hinge
• Programmable block (and scripts enabled in the world settings).



If you have more than one hinge/rotor on the ship, you'll need to tell the script what hinge(s) to use. Do that by tagging the hinge with "#steer".

If it's turning the wrong way, put a minus before the tag (like this "-#steer") and recompile.

You can limit how much the hinge can turn on the hinge itself. The script will adapt. Turning speed, the tag, and whether to automatically straighten can be changed at the top of the script.

If you want propulsion on all wheels, use Whiplash141's excellent Subgrid Wheel Control script

Rotors? Well I didn't plan to support them but they work as well. You need to set rotation limits for auto straighten to work. Make sure to point the 0°-side of the rotor forward.

Latest update to v1.4.0 (2020-11-09)
This version adds mouse/arrow key support. To use it, just add yaw or pitch to the hinge name, like this: "#steer yaw".
Details in change notes.

Update to v1.3.0 (2020-10-16)
This update brings center offset angle.
You can now use something other than 0° as the center for auto straightening. Just add e.g. c45 to the hinge's name for a 45° center offset. Details in change notes.

Update to v1.2.0 (2020-10-16)
This update brings the none keyword when selecting what buttons to use.
See the change notes from v1.1.0 for usage.

Update to v1.1.0 (2020-08-26)
This update brings:
  • A way to toggle auto straightening on or off while driving.
  • Support for using the other direction keys. Not just A + D.
Check the change notes for this version for details.



Last but not least, here's the wheel loader blueprint from the video/pictures
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?