Space Engineers

Space Engineers

Not enough ratings
All-Axis Spherical Gravity Drive Manager
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.838 KB
17 Jan, 2017 @ 7:23am
9 Feb, 2017 @ 7:02am
4 Change Notes ( view )

Subscribe to download
All-Axis Spherical Gravity Drive Manager

In 1 collection by Meridius_IX / Lucas
Meridius_IX's Script Library
5 items
Description
This gravity drive controller is used for ships with a gravity drive configuration that uses Spherical Gravity generators and Artifical Mass blocks.

Please Note: This script will not auto-balance your gravity drive. It is your responsibility to ensure that it is balanced properly with your ship's center of mass.

How It Works:
The script can only be activated when the player is sitting in the assigned seat. When the gravity drive is activated, the script will read your thruster output and will activate the gravity drive for whatever direction your thrusters are trying to move the ship. If the player leaves the seat while the script is running, the script will shut down the gravity drive and activate the ships Intertia Dampeners (to prevent a run-away ship).

Blocks Needed:
- 1x Programmable Block
- 1x Timer Block
- 1x Cockpit / Flight Seat / Control Station
- Artifical Mass and Spherical Gravity Generators (As many as needed)

Script Setup:
There are several configurable values in the header of the script. Here is a description of what they do:

Thruster & Mass Block Tags: These tags are used to identify the thrusters and artifical mass blocks needed to propel the ship. I've included some default tags for your use, but you can change these to another value if you're comfortable with it.

Other Blocks: These are the names of other blocks the script requires (Timer, Cockpit, Etc). These names need to be the exact names of the blocks used in the script.

Axis Control: While this script is cabable of moving the ship in multiple directions, the option exists to limit it to specific directions only (Forward/Reverse, Up/Down, Left/Right). Options can be changed to "true" or "false".

Automatically Tag Thrusters: Once you've specified your thruster/mass tags above, you can sit in your main control seat and the script will automatically add the tags to all your thrusters. Change this value to "false" if you do not want your thrusters automatically tagged.

Disable Spherical Gravity: Some players will want their spherical gravity on at all times to guard against player made weapons that use artifical mass or loose components/ores. Set this value to false if you want your gravity spheres to remain active once the gravity drive is turned off.

Gyro Assist: This option will flash the override on gyroscopes that contain the specified naming on and off as the gravity drive is in operation. This can help slightly reduce unwanted ship pitch/yaw/roll if your drive is not perfectly balanced.

Artifical Mass Setup:
You will need to manually add the tags to the blocks that push the ship in a particular direction. For example: Using the default tags included in the script, I would add "(FWD)" to all mass blocks that propel the ship forward when gravity is applied. Mass blocks can also contain multiple direction tags if they share an axis.

Spherical Gravity Generator(s) Setup:
The Spherical Gravity Generators don't need too much setup and can use their defualt naming. You'll likely want to set the gravity fields to -1.00G and set the range so that all mass blocks are covered by the fields.

Timer Setup:
The timer for this script should have the following actions assigned:
- Gravity Drive Programmable Block > Run With Default Argument.
- Gravity Drive Timer Block > Trigger Now.

Thruster Setup:
If you've already specified your tags in the script (or used the default tags) and you have the "Automatically Tag Thrusters" option enabled in the script, then all you need to do is sit in the main control seat and run the script once (with no argument). Afterward, your thrusters will all be tagged. It's important that your main control seat is pointing forward with the ship, otherwise the tags will likely be applied incorrectly.

Cockpit / Flight Seat / Control Station Setup:
To activate / deactivate the gravity drive, add the following to your toolbar:
- (Activate Drive) Gravity Drive Programmable Block > Run (Use Argument: On)
- (Deactivate Drive) Gravity Drive Programmable Block > Run (Use Argument: Off)

Examples of Ships Using This Script:
- Daenerys Battlecruiser Torpedo Version

29 Comments
Mordrack 10 Jan, 2021 @ 6:20pm 
And gyro control added from Whiplash gdrive. Merged the 2 + some upgrades
Sprinkles 16 Oct, 2019 @ 2:57pm 
working fine to this day
ZettaHex 22 Sep, 2019 @ 8:11pm 
Does anyone know if this still works? Not sure if I set it up wrong or if It's broken. Though I think it's the latter. Program renames all the appropriate thrusters and will power the gravity generators when activated but won't actually turn on the artificial masses.
CTH2004 3 Mar, 2019 @ 9:03am 
If it breaks, will it be updated?
ArmoredInsecta 3 Feb, 2019 @ 11:37pm 
would the script work still? and is it there's a video of a setup of the script?
ZettaHex 24 Feb, 2018 @ 6:20am 
Awesome :]
Meridius_IX / Lucas  [author] 24 Feb, 2018 @ 6:16am 
I might have removed that option, it didn't work too well at the time. I might try to redo it though, I've had some thoughts on how to make it better
ZettaHex 24 Feb, 2018 @ 5:59am 
Also It says in the description that there is an option to add limited gyro assist but I don't see it in the script. Don't know if thats cuz it wasn't actually implemented or if I overlooked something.
ZettaHex 24 Feb, 2018 @ 5:55am 
It worked, something changed. But had made a work around with a macro so it's all good. Great work btw!