Space Engineers

Space Engineers

155 ratings
Gravity Drive Manager
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
4.505 KB
14 Sep, 2017 @ 7:31am
10 Sep, 2018 @ 3:08pm
7 Change Notes ( view )

Subscribe to download
Gravity Drive Manager

Description
-- == DEMO SHIP AVAILABLE HERE == --




This code control your Gravity Drive automatically for you. You will use normal keyboard input WASD. It will also act as an Inertial Dampeners. Just add a bunch of Gravity Generators & Artificial Masses for achieving incredible acceleration. Your poor drifting capability has cost you your last two ship? Throw a couple of Gravity Generator sideway, et Volia! Specially useful for large and heavy warship. They will feel like those small aggressive fighter. Get the extreme maneuverability and high redundancy advantage you need in every fight!


*It's important to note that Gravity Drive is a space thing. Don't count on it if you play too close to planetary body or you could be surprise. ;-)



1) Create a group with the name "GDrive" which contain:
- At least one Seat, Cockpit or Remote.
- At least one Gravity Generator (3 in different axis for full motion).
- At least one Artificial Mass (In the range of the Gravity Generator).

2) Place a program block with this code

3) Buckle up!


*It's important to note that even if Gravity Drive could work as unique source of thrust, it's recommended to place a minimum of thrusters to ensure complete stop and precision maneuvering.
-- == DEMO SHIP AVAILABLE HERE == --

This ship is a random ship from the workshop that have been retrofitted with a GDrive in a couple of minutes.




Special thanks to Whiplash141 and it's VTOL script for laying down the
basement (also most of the walls) of this script.
Originally posted by Whiplash141:
https://steamproxy.net/sharedfiles/filedetails/?id=757123653&searchtext=vtol

Make sure to setup the Artificial Masses evently arround the center of mass
of the ship or you will get torque.

You dont need any thrusters to make your ship move but you will need them to
make a smooth stop. In emergency situation, kill the 'dampenerAntiJerk' in order
to achive a jerky kind of stop. It can be usefull after a hard fight!

Spreading of Masses and Gravity Generator through all the ship will give
you a amazing redundancy in combat.

Multiply Masses and Gravity Generator for increase thrust.

In order to reduce power consumption, reduce the range of the Gravity Generators
to the minimum amount needed to have your Artificial Masses inside the gravity feild.

If the drive is too powerfull for the ship, you will experence oscillations at low
speed. Increase the dampenerAntiJerk to a value higher than the speed of your
oscillations will correct the issue.

Fly safe!




Version 2 :
Manage Arguments.
Add Auhtor Notes.
Add GDrive status in console.
Add arguments to toggle anti-jerk.

Version 3 :
Using Group name
Support other Gravity Generator in the grid.

Version 4 :
Using Group name less sensitive.
Support other Gravity Generator Sphere in the grid.

Version 5 :
No timer needed.
Popular Discussions View All (2)
7
5 Mar, 2020 @ 8:10pm
PINNED: User Creations
Mohawk
7
28 Nov, 2020 @ 7:05pm
PINNED: Bug Reports
Mohawk
118 Comments
superkai64 13 Jul, 2023 @ 12:39pm 
Where is the code located? I open up programmable block and cannot find a way to load "the code"
IneptOrange 2 Oct, 2022 @ 5:02pm 
FOR ANYONE STRUGGLING TO SET UP AN "OFF" BUTTON FOLLOW THIS:
Firstly, this took way too long for me to figure out, but as it turns out, short version;
Run the programmable block with the arguments:
"hard_shutdown" to switch off the drive instantly like a kill switch.
"soft_shutdown" to switch off the drive slowly, allowing it to ramp down before stopping.
"startup" to switch it back on again.
ceilyurie 19 May, 2022 @ 6:26pm 
will this woirk with an upper limit of TEN grav generators TOTAL OWNERSHIP? My station is already gonan need 3, and will need at least one for gravity on board my ships...maybe more.
m1dn1ck 31 Mar, 2022 @ 2:20am 
{LINK REMOVED}
i Think it is enough *gg*
m1dn1ck 30 Mar, 2022 @ 11:32pm 
If you play on a server just thinking about that and you will know that you dont have the permission to do it or the script is blacklistet on the server, this script runs like a charme on MP Server with 80 Mods best regards from hannover germany
DrixTheGamer 11 Feb, 2022 @ 5:10am 
i can not load this script into a program block. i tested with other scrips and they load in and run fine but this one will not, after choosing it the program block still shows the default public program info. i know the script works in my world because i have a older build with it already set up that i can spawn in and everything works fine but i am unable to add it to a new program block
GrumpyPlok616 29 Jan, 2022 @ 2:10pm 
should add argument to turn off
mhwyoshi 25 Sep, 2021 @ 2:16pm 
Also quick question where is the The instructions for the arguments? The argument size and the ones that you use to make a program able block do something
mhwyoshi 25 Sep, 2021 @ 11:20am 
@Mohawk, So I made a counter system for the ordinary artificial gravity of the ship that uses One gravity generator to make the artificial gravity for the rest of the ship while another counteracts that in the area where the grubby drive is so the ship can use the gravity drive to fly. The problem is that your script keeps on turning this off when I fly and it doesn’t allow people to walk around in it when it uses the script to do so. If you can make it so the gravity generators that are not a part of the script can be made to actually work while the ship is flying that would be great. Perhaps try making a argument for this in the program
GrumpyPlok616 14 Sep, 2021 @ 7:26pm 
the programing block must be on the main grid it can not be on a sub grid