Space Engineers

Space Engineers

Landing Gear Balancer
21 Comments
silverbluemx  [author] 6 Jul @ 4:33am 
New update today !
-Supports up to 100 landing gear kits
-Detects and warns about obstructed cameras (the screen says "Obstructed camera on kit#" when this happens)
-Shows on screen if in long legs or short legs mode
silverbluemx  [author] 15 Apr @ 9:57am 
@Vaygrim : strange.
Can you share pictures of how your ship is built, or share it on the workshop ?
A few troubleshooting suggestions :
- Is it large grid or small grid ? It should work for both but I did more testing with small grids
- What does the programming block says when you compile the script ? It should say "Group +name+ found !" and "Group +name+ has the correct setup (1 camera, 1 piston, 1 gear)" for each of your landing kits
- What does the display screen say ? Is "ground uneveness" always 0 or something else ?
- Does each landing kit have a dedicated camera ?
- Does each camera have a direct line of sight to the ground ? (if you display the view from each of them, do you see the ground right in the middle of the screen, and not a part of the ship ?) For example, with the ship in the pictures, if I use a Large Magnetic Plate (round one from Heavy Industry DLC) on the legs then it would block the view, and I'd need to offset the camera more.
Vaygrim 11 Apr @ 8:13am 
Setup and implemented script as instructed above, end result was all four piston 'legs' always extending to the exact same length collectively. No real 'balancing' for uneven terrain to speak of.

Would love to get this working, please advise.
XzOmBieKiLla6X 20 Mar @ 12:35pm 
Absolutely love this! Thank you!
Space_Captainface 16 Mar @ 8:38pm 
@RYGUY27 Under Installation >> "- install the script in a programmable block"
RYGUY27 15 Mar @ 8:51pm 
does it need a pb? id doesn't say in the description
silverbluemx  [author] 21 Feb @ 11:23pm 
@GoldMiner177.
Probably yes although leveling would be more approximate (cameras may end up further away from the landing gear/magplate). There's also more variety in the hinges arrangements. Do you have a specific setup in mind ?
GoldMiner177 16 Feb @ 10:29am 
@silverbluemx
have a question, could this be updated for hinges too? if you're up to the challenge that is
TheKeixs 17 Jan @ 8:03pm 
el diavlo que genialida
Invention64 7 Jan @ 6:15am 
@silverbluemx technically you could use a PID to achieve this, as it doesn't need to know which direction a control will move it, just that there is controls and a measurable goal.

But like you said definitely overcomplicated for a script like this.
silverbluemx  [author] 5 Jan @ 6:30am 
@Sarianos : What you suggest would probably be more complex than what I've done.
At this point this script relies on the pilot or another script (such as Flight Assist for example) to level the ship (*). Then each landing leg (or "kit") individually adjusts its own length based on:
- the distance to the ground that it locally measures
- the minimum and maximum distance of all other legs.
The legs (or "kits") don't know if they're at the front of the ship, the left, etc. so they don't know how they should extend/retract to *make* the ship level.

(*) This piece of info wasn't in the description before, I've added it.
[RTB] Sarianos 4 Jan @ 9:30pm 
@silverbluemx
In theory could this be used with wheels on pistons instead of mag-pads to create a self levelling rover?
lnadon005 4 Jan @ 12:27pm 
Thank you, the fix works perfectly, Great Work
lnadon005 4 Jan @ 5:47am 
Thank you for your quick response, will test and report back
silverbluemx  [author] 3 Jan @ 11:34am 
@Inadon005 : Well... looking at the code, I don't understand how it might have worked during my tests. Maybe I overlooked something.
Anyway, I've uploaded a fix. Now when using the "retract" and "extend" commands, the script waits roughly 5sec before turning everything off.
Let me know if you have any issue remaining after that.
lnadon005 2 Jan @ 1:47pm 
Nice been looking for something like this, only one problem, when retracting the script turns off before the movement starts, have to select each kit and manually turn them on to retract. any advice?
zen 31 Dec, 2024 @ 11:56am 
I have 2 stacked suspension blocks with wheels replaced with rotor heads, those rotor heads are attached to a grd with a landing gear

I have 5 of those that act as my ships cushioned landing gear
ditb3 31 Dec, 2024 @ 9:04am 
I don't realize what SE script we are still missing yet until you release this script, impressive work! I've not tested this on subgrids yet but I believe the script's method will work without much modification if all subgrid landing gears are symmetrically placed at all four angles, assuming the script will handle the subgrids
silverbluemx  [author] 31 Dec, 2024 @ 7:23am 
@CroNAK : thanks !

@ZEN : I may add support for that at some point, but don't get your hopes up, I'm not using such a solution on my own ships. What does it look like ?
zen 25 Dec, 2024 @ 8:03pm 
I could really use this but for my wheel suspension based landing gear
CronNaK 23 Dec, 2024 @ 9:48am 
Dude... where have you been all these years! Ive been dying for something like this to be used on my outriggers for my Crane!!! <3