Space Engineers

Space Engineers

Not enough ratings
Gravity Drive Manager 2025
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
206.511 KB
5 Sep @ 11:40am
1 Change Note ( view )

Subscribe to download
Gravity Drive Manager 2025

Description
🚀 Gravity Drive Manager (Optimized 2025)

A modern, optimized rewrite of the classic Gravity Drive Manager script by Mohawk.
Faster, cleaner, and with extended debug features for easier control and monitoring.

📖 How to Use

  • Create a block group named "GDrive" containing:
     • At least one Cockpit, Remote Control, or Flight Seat
     • At least one Gravity Generator (3 on different axes recommended)
     • At least one Artificial Mass (inside the field of the generators)

  • Place a Programmable Block on your ship and paste this script.

  • Run the script.

  • Buckle up and fly! 🚀


✅ Technical Improvements

  • Simplified update cycle
     • Old: ran every tick (60 Hz) but only did useful work every 0.1s
     • New: runs at ~6 Hz (Update10) → less wasted CPU

  • Cleaner block handling
     • Uses GetBlockGroupWithName instead of scanning all groups
     • Faster and more reliable setup

  • Optimized block control
     • Old: used ApplyAction("OnOff_On") and SetValue
     • New: uses direct properties Enabled and GravityAcceleration → much more efficient

  • Streamlined thrust & dampeners logic
     • Consolidated into one function → less duplicated code, easier to maintain

  • Simplified non-GDrive generator handling
     • Automatically toggles cabin/other gravity generators on/off during flight

🖥️ Debug & UI Upgrades

  • Expanded status info
     • Ship speed (m/s)
     • Velocity vector
     • Desired input vector
     • Estimated active thrust force (N)
     • Number of GDrive generators & artificial masses
     • Non-GDrive generators count and ON/OFF status

  • Lists non-GDrive generators by name
     • See exactly which cabin/other gravity generators are active

  • Programmable Block screen support
     • Full debug info displayed on the PB’s built-in LCD
     • No need to open the console anymore!

🎯 Overall Benefits

  • Faster: lower CPU load, less lag
  • Cleaner: easier to read, understand, and modify
  • More informative: real-time debug with vectors, speed, and force
  • Better UX: see everything directly on the PB screen
2 Comments
Dușman  [author] 5 hours ago 
Thanks!
Overjay 8 hours ago 
Good job!