Space Engineers

Space Engineers

maaax's Hoverbike Script v1.1
30 Comments
kirb 2 Sep, 2024 @ 10:15am 
For some reason with this script my hover vehicle is able to keep itself up just fine but when i move horizontally in any direction the lift thrusters go limp and i fall to the ground...
kinngrimm 22 Apr, 2024 @ 6:08am 
on the multziplayer server i am, interial dampners are deactivated complettly, would this script still work?
PimpMyDog 16 Apr, 2024 @ 2:41pm 
Hey have you tried doing it with front camera scan yet? On flat grounds this script works the best of the ones I have tried.
Blacky Watchy 6 Apr, 2022 @ 2:08am 
the script is giving me problems, i have only a remote in the group but im getting triggered a message saying that there can only be one cockpit on the group
Tzeentch's Aeldari Spirit Stones 18 Oct, 2020 @ 11:28am 
i tried this on a little baby worker bee design i made and it encountered an exception error when running "Auto" Argument after running "Init" Argument, i'll do my best to write it here.. (Init Argument showed no errors)

Caught exception during execution of script: Function does not accept a floating point Not-a-Number values.
at System.Math.Sign(Single value)
at Program.DoUpdate()
at Program.Main(String argument, UpdateType updateSource)
at
Sandbox.Game.Entities.Blocks.MyProgrammableBlock.<>c__DisplayClass46_0.<ExecuteCode>b__0(IMyGridProgram
program)

at
Sandbox.Game.Entities.Blocks.MyProgrammableBlock.RunSandboxedProgramAction(Action')
action,
String&
response)
GamerZero 1 Oct, 2020 @ 11:47am 
is it possible to add this to the preload scripts?
DecaRabia 28 Sep, 2020 @ 4:44am 
"Forward scanning for hills, using a forward-facing camera"
I wish it will be next feature. I need for not kill myself every ride I made! LOL!
Amazing script, I fixed the WASD control using other trusther in any direction, but I love the hovering system and how I drift when I turn riding.
Thumbs up for the hangar mode too, very smart and usefull!
LeftFieldRebel 24 Sep, 2020 @ 6:42pm 
ah that would be my problem solved :) woot, cheers Captain Insano
maaaxaltan  [author] 23 Sep, 2020 @ 2:32pm 
Thanks Captain Insano. I've updated the the guide so it now says the correct command
Captain Insano 22 Sep, 2020 @ 9:09pm 
I wasn't able to get Raise or Lower to work. I finally looked through the program text and found out the commands are "Higher" or "Lower" not "Raise" or "Lower". Might want to fix that on your page as I see others had issues. In any case I LOVE the script, having lots of fun playing with it. Well done.
maaaxaltan  [author] 12 Aug, 2020 @ 11:04am 
@LeftFieldRebel thanks , could you actually send me what things you're trying to change? Errors when you press Check Code are usually caused by space engineers, not the script... but I can see if there's anything you can do differently so you wont get those errors. The speed for how fast the ship lands can be adjusted too.
LeftFieldRebel 10 Aug, 2020 @ 11:35pm 
i like the updates, def some quality of life improvements... still getting errors when i press the check code button and cant seem to get the Raise/Lower commands to work yet but all in all very nice... my only compliant at this point is the landing command drops it a tad hard but that's prob more a error on my part tbh
maaaxaltan  [author] 10 Aug, 2020 @ 4:02pm 
@aarno5 nice, I believe it will work underground if you download the update and set up cameras on the bottom of your ship
aarno5 8 Aug, 2020 @ 10:28pm 
Thanks for the help, it works far better now. Although getting up hills is still a bit of a pain, it is a hoverbike so it isnt really ment to climb them. Also i dont know if it is possible but i would love to see this script work underground.
maaaxaltan  [author] 7 Aug, 2020 @ 8:06pm 
@aarno5 do you mean when it is landing, or just under normal operation? If you open up the script and scroll down a bit, there are a couple configuration options that you can adjust, including the base altitude it flies at, as well as how fast it lands.

@LeftFieldRebel very cool :) make sure youre typing in everything exactly as you're changing the config values, C# is a very picky language

@miscreant sorry to hear you're having problems, there aren't any errors or messages you're getting from the programmable block right? Feel free to send me a blueprint so I can take a look at it
cllmsteele 7 Aug, 2020 @ 4:48pm 
@maaaxaltan it is good to know that is works without the DLC i didn't know that it was for an LCD.
LeftFieldRebel 7 Aug, 2020 @ 6:54am 
this line dosen't like to be set to false lol "private const bool AUTOMATICALLY_SET_LCD_PARAMS = true;"
pawsie 7 Aug, 2020 @ 1:31am 
Hello, I followed the instructions and get upto init, and that works fine, but once I put auto nothing happens, it just kinda sits where I built it and doesnt try to go up or down
LeftFieldRebel 6 Aug, 2020 @ 7:54pm 
i've built my own jet bike using this script, i really love this script mate :) https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2189725142
aarno5 6 Aug, 2020 @ 7:04pm 
is there any way to make it hover higher or slowdown sooner
so it doesnt hit the ground when it falls?
maaaxaltan  [author] 6 Aug, 2020 @ 8:21am 
@climsteele it will, the DLC is only needed if you want the transparent LCD panel as used in the demo. It still will work with other LCDs though
@greenie thanks, glad you like it
greenie 6 Aug, 2020 @ 7:36am 
this is sweet, thanks for the hard work
cllmsteele 5 Aug, 2020 @ 3:55pm 
i like the design but if you don't have the DLC will it still work?
maaaxaltan  [author] 5 Aug, 2020 @ 3:21pm 
@Hunter S. Thompson Hey thanks, Im glad you like it!

@Person4772 Glad you're enjoying the script. Yeah it definitely has a bit of an issue with hills, I'm actually trying to adding more cameras right now to help with that. If that doesn't turn out, raising the default altitude would a definitely good idea

@/// oh hey that's really cool! Yeah, I've heard about PID controllers before, though i've never really studied them in detail so that is definitely a good idea. How you got the ship to land exactly on the connector is really cool as well, i'll have to do some reading tonight!
gg64du02 5 Aug, 2020 @ 2:09pm 
my stv can connect a ship to a connector btw : https://www.youtube.com/watch?v=okzl2pCKgVE
gg64du02 5 Aug, 2020 @ 2:07pm 
hey, I thought you copied one of my script but I took look, you did not. :D

I don't know if you know control theory but you can do altitude regulation with a PID controller. :)

Basically you did a kind of a PD controller. :)

I did a Single Thrust Vector flight computer if you want to take a look. :)
Person4772 4 Aug, 2020 @ 2:19pm 
Nice Job with the Script!

Some Feedback:

-Same hill Problem as others, Cameras and Forward Sensors would probably help

-The Default Minimum altitude seems a little low, on high speed craft it seems to amplify the problem of hill navigation

Other than that its an amazing script! Looking forward to seeing what you can do with it in the future :steamhappy:
Hunter S. Thompson 4 Aug, 2020 @ 2:50am 
Hey Maaax, thank your for the script, I very much enjoy it!
maaaxaltan  [author] 3 Aug, 2020 @ 4:58pm 
Hi sevya, thanks for your interest and glad you're enjoying the script.

1) Yeah, I'd be able to do that. Hill detection is definitely a bit rough with the script at this time, so anything that can combat that would be a good idea.

also, one of the other things I've been working on recently is adding forward facing cameras to the bike as well. The idea would be that the cameras could scan ahead of the bike and detect any hills or obstacles that are coming up. I'm not sure if this will entirely solve the problem, but i bet it will help a lot.

2) Probably, i'll look into that and see if it is possible. I already know how to override the ship's gyroscopes to get it to land, but it's just a matter of tilting the ship at exactly the right times to to zero out the velocity that i'm not sure I know how to do. However, I will look into it and let you know if I figure it out.
sevya 3 Aug, 2020 @ 2:53pm 
Maaax, I like this script. I've been playing around with it, and it's fun. It's harder to fly than it looks, but so are helicopters. I see you're working on version 1.1. I have a couple of features to request.

1) Can you make an option to put the desired altitude as an argument for the script? In rougher terrain, the script has more trouble identifying obstacles in time. It would just be nice to have a hot bar button to climb above such problems.

2) Can you make the script stop horizontal movement as part of landing? Landing is the part I'm most interested in this script, and the craft stopping itself as part of the landing process would be a big help.

Thank you for taking the time to look at my comments.