Space Engineers

Space Engineers

Not enough ratings
Gravity Engine III
By Cruel Sun
Gravity Engine III In-Game script manual
   
Award
Favorite
Favorited
Unfavorite
Basic commands
Active and idle mode
On
Active. It's the default value.
Off
Paused
OnOff
Switching
Reset
Reset all settings

Preview from previous versions


LCD Keys
_GE
Operational LCD (Designed to the corner lcd)
_GS
Scenario operational LCD

Use _GE# for set LCD from the list.
Example _GE3, _GS4
Using the Gearbox
There is -104.38 -50 -25 -10 -2 0 2 10 25 50 75 104.38 speed values

+,-
Gear up and down
0
Stop
Cargo unloading
Instruction
Description
Unload
Unloads your Grid (if its connected)
Unload [mask] ([mask] ...)
Transfers only specified types of content. Works by the mask. You can use short and entire words. Also works well Unload Ore Ammo Rifle
Content is only transmitted in cargo containers. The Script don't put resources in refineries, assemblers, connectors and etc. as a ♥♥♥♥♥ thief in his pockets

More example words:
  • Types : Ammo Component Gun Ingot Ore Oxy Drill Welder Grinder Rifle Bottle
  • Components : BulletproofGlass Canvas Computer Construction Detector Display Explosives Girder GravityGenerator InteriorPlate LargeTube Medical MetalGrid Motor PowerCell RadioCommunication Reactor SmallTube SolarCell SteelPlate Superconductor Thrust
  • Ore and Ingot names : Cobalt Gold Iron Magnesium Nickel Platinum Silicon Silver Stone Uranium
    Use Ore/Cobalt for Ore and Ingot/Cobalt for Ingots. (Unload Ore/Uran)
  • Oxygen and Hydro : Oxy Gas
  • Guns and Tool names :
    Rifles: /AutomaticRifle Precise Rapid Ultimate
    GrinderItem Grinder2 Grinder3 Grinder4
    DrillItem Drill2 Drill3 Drill4
    WelderItem Welder2 Welder3 Welder4
Scenario (Autopilot, Miner, Docking here too)
Scenario requires a LCD panel. You can select different LCD's for many of scenario scripts.
You can manually enter a scenario and you can use autogeneration.
The scenario is saved in CustomData, so it can be reloaded.
Scenario operational screen key is _GS.

SP=MyPanelName
Use this before you start searching, why it don't work.

Scenario Commands (as Run arguments)
SP=MyPanelName
Active LCD selection
S
Runs/Stops scenario from LCD
Run
Runs scenario from LCD CustomData
RunFrom=BlockName
Runs scenario from any block CustomData
S=##
Set the preferred Speed
D=##
Minimum distance to a point
Add>
Moving to the current location point
Add+
Moving to the point directed to this point
Add-
Set current position as direction point
Add=
Set current direction
Add^
Set current roll direction
Add%
Add this point as Docking scenario point
Undock
Unlocks the connectors
Release
Releases the direction vector
Drills=On(Off)
Turn on and off all the drills
Grinders=On(Off)
Turn on and off all the grinders
Offload [mask, mask]
Unload grid (works like Unload command)
Ac, AcOn, AcOff
Lock a Connector block automatically
restore
Reload connamd for the scenario. A looped script
load
Loads the scenario from CustomData
save
Saves the scenario to CustomData
clear
Clear the LCD panel
GoTo
Automatically goes to raycasted object
GoTo Gps:....
Going to point


Scenario generation

Usage: New:[ScenarioName][:Parameter 1][:Parameter 2]...
Create the Scenario and send it to the active panel.
Example: New:SQRD:80:4:3 - scenario for digging, 80 meters deep, 4 by 3 passes

Use Run to Create and Activate the Scenario
Example: Run:SQRD:80:4:3 - scenario for digging, 80 meters deep, 4 by 3 passes

Scenario profiles
SQRD
Diggind a Square.
Parameter 1 - Deep (meters) (100 m by default)
P. 2 - horizontal passes (2 by default)
P. 3 - vertical passes (2 by default)
P. 4 - Speed (2 m/s by default)
New:SQRD:35:6:4:3
SQRG
Grinding a Square.
P. 1 - Deep (meters) (100 m by default)
P. 2 - horizontal passes (2 by default)
P. 3 - vertical passes (2 by default)
P. 4 - Speed (2 m/s by default)
New:SQRG:35:6:4:3
PTurn
Fastest turning back (retreat)
New:PTurn

Using Scenario as Autopilot


Using Scenario as Miner


Using Scenario for docking

Natural Gravity inside
Two modes is available - NG and Alt. Indicates on _GE screen in upper right corner.
  • NG mode helps you to land and rise up.
  • Alt mode is for altitude managing. Helps you to hover.
ng+,ng-,ng=##
NG Mode: multiplier
Alt
Activates Altitude mode
alt+,- and ++, --
Change altitude by 100m and by 1000
alt*, /
Twice and half of value
ng
Sends current Planet coords to CustomData
ptf
In this mode a grid will be arranged to the planet center
ptb
from the planet
ptd
horizontaly
ptu
upside down


Autoparking
Activates when you leave the grid (or when you disconnect from the server). Also if the grid have a wheels, sets on the Handbrake (Use key P to deactivate).

AP,Pon,Poff
Switching, Turning On and Off
Adjusting power
p+,p-
Power up and down

Also in the script header you can find
bool AutoPowerCalibration = true;//Decreases the power on low speeds
Other commands suggested/requested by users
gOn, gOff, gOnOff
Turn On, Off and Switch for gyroscope subsystem
dOn, dOff, dOnOff
Turn On, Off and Switch for dampening subsystem
Asteroid Base
At first, this feature requires for front directed camera on your grid. Any number, without setup.

All finded asteroids goes to the Base automatically.
Asteroind gots they Names - like Undine 45 or Bellona A3. Very various.

Commands
Scan
Scanning for some object.On success all info shows on scenario panels.
Base is stored in CustomData of Scenario panels (copyed in each).
ResetBase
To clear the base
Update
After you change someting manually in the Base (in CustomData)
Note [your text]
To set object descritpion
Note+ [your text]
To add object descritpion
Find [your text]
To you can fast find anything
12 Comments
Darth Porgus 5 Feb @ 10:34am 
Can you use that gravity block as a engine in vanilla or is this done using a mod?
Dr.Evil 22 Jul, 2019 @ 10:54pm 
Могу скинуть скрипт с моей добавкой, если хочешь)
I can send your sript with my add, if you want)
There is one issue with this add'on. Script can`t update gravbullet (new welded) while ship moving sideways. if it's stays or moving Z axis everything works fine)
Cruel Sun  [author] 8 Jul, 2019 @ 5:12am 
@Dr.Evil It's interesting.
/ Занятное назначение, мистер Зло /
Dr.Evil 7 Jul, 2019 @ 5:00pm 
I`ve added GunMode to your script, to use Gravity engine forces fo speed up bullets with AM or juck form connectors (second often off to deal damage on many servers)
Chaos 5 May, 2019 @ 10:36am 
okay, thanks!
Cruel Sun  [author] 5 May, 2019 @ 10:30am 
Yes - run it as parameter
Chaos 5 May, 2019 @ 10:24am 
I assume I run the progblock with command of gOff? or is that set in custom data of the progblock?
Cruel Sun  [author] 5 May, 2019 @ 10:21am 
О Sorry, about gyros, at now is you can only set active and not active mod for all. When you using a GearBox, all works correct, in manual WSAD mode gyroscopes has blocked for you dont have a problem with the Center of mass. You can use gOn, gOff, gOnOff to try it without.
Chaos 5 May, 2019 @ 10:08am 
and what about gyroscopes? thanks for the quick reply
Cruel Sun  [author] 5 May, 2019 @ 10:06am 
If you want to have other purposes generator - add Space to Name like " Gravity Generator", in this case it ill be used only when the Engine not acting. If you want to have generator as always on, add - , Like "-Gravity Generator"