Space Engineers

Space Engineers

1,749 ratings
Whip's Subgrid Thruster Manager
5
4
7
6
4
4
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.014 MB
Sep 3, 2016 @ 1:47am
Jul 16, 2023 @ 8:12am
38 Change Notes ( view )

Subscribe to download
Whip's Subgrid Thruster Manager

In 1 collection by Whiplash141
Whip's Scripts
22 items
Description
Formerly Named "Whip's Rotor Thruster Manager"


  Update
  • Added custom data configuration. You no longer need to open the code and change variables!
  • Added cute little animated running screens :D




  Description
Howdy!

This script allows you to control thrusters over subgrids. This code will also work with inertial dampeners!

This script does not control subgrids themselves, it simply allows you to control subgrid thrust like regular thrusters. Also, if you change the angle the of subgrid thruster, the code will automatically adjust the movement keys that fire it.

As always, I will continue to improve this code :)


  Setup Instructions
  1. Place a seat or remote on the main grid.
    • NEW - If you want only specific ship controllers to be considered, add the name tag "Reference" to the name of the block.
  2. Put this code in a programmable block.
  3. Attach thrusters to your subgrids. If you are using rotors or hinges, I suggest you lock them because there are some strange physics bugs associated with thrust on rotors.
    • You do not need any thrusters on your main grid! However, if you wish to enable/disable dampeners, you'd need to use the dampener toggle arguments.
    • Thrusters on grids with connectors are IGNORED by default. This is to avoid taking control of docked grid's thrusters. To change this, configure the corresponding key inside the custom data.

  4. Enjoy!


  Ship Controller Prioritization
The script will automagically detect what seat you are controlling on your ship and begin controlling subgrid thrust. If you have name tagged ship controllers, only those ship controllers will be considered for prioritization. If you have multiple ship controllers on your ship, it will select them based on the following priority.
  1. Main seat/remote
  2. The first seat that was controlled


  Arguments
Argument
Function
on
Turns program control of subgrid thrust on
off
Turns program control of subgrid thrust off
toggle
Toggles program control of subgrid thrust off/on
dampeners_on
Turns dampeners of sub-grid thrust off
dampeners_off
Turns dampeners of sub-grid thrust off
dampeners_toggle
Toggles dampeners of sub-grid thrust off/on


  Author's Notes
I designed this code to make flying with VTOL and thrust vectoring craft much easier and much more fun. I truly hope that this code brings you as much joy as it does to me!

Remember to lock your subgrids or you will get torque :)

If you notice any bugs/want to make suggestions feel free to leave a comment! This code is by no means perfect; I will continue to update and fix any issues that this code has to make it the best as possible :)

This should also go without saying, but do not reupload without explicit permission from me, not even to mod.io.

- Whiplash141
Popular Discussions View All (20)
276
May 7 @ 10:54pm
PINNED: Bug Reports
Whiplash141
33
Mar 6 @ 9:33am
PINNED: User Creations
Whiplash141
1
Dec 12, 2023 @ 10:24am
Compatibility with other scripts and autopilots
¤Foxtrot¤
1,506 Comments
kad.dsl Jun 1 @ 7:48pm 
Update: The issue turned out to be the dampener setting in the custom config. I had to turn it way down (to 20 from the default 50). Works like a charm now.
kad.dsl May 27 @ 4:21pm 
I'm trying to use this script (and do thrusters on a sub-grid) for the first time and I'm seeing some strange behavior. Small grid ship. The ship has 4 thruster pods on rotors. The rotors are locked. When the ship is "at rest" with no movement keys being pressed, if I have the dampeners on, the ship seems to be constantly fighting itself, the forward and back thrusters alternately firing. I initially thought this might be because there is unequal forward and reverse thrust, but evening the thrust out did not change the issue and then I realized it will do it up/down as well, where the thrusters are already even. I did a short video snippet to show the issue. It does it if I rotate the thrusters as well. (I did learn that I needed to turn the dampeners off while rotating the pods or it goes berserk though).

https://youtu.be/Y3GVueDgPOI

If someone has an idea on why this is happening and how to fix it I'd be very grateful to hear it.
GermanGinger May 26 @ 7:36am 
If I'm understanding this right, then in order for the command to work the main grid can not have thrusters?
Whiplash141  [author] May 25 @ 7:19pm 
No. Dampeners are synced with the dampener state of the main grid if the main grid has thrust.
GermanGinger May 25 @ 3:44pm 
Yes. Is it possible for the dampening not apply to the subgrids?
Whiplash141  [author] May 25 @ 2:50pm 
do you have thrust on the main grid?
GermanGinger May 25 @ 2:30pm 
I can't seem to run dampeners_toggle
Every time I try nothing happens. I type it in; hit run; nothing happens
Am I doing something wrong?
usmcuav May 13 @ 9:48am 
I've rebuilt Scrap Ship 09 from the new Rusty World. There are two rotor thruster subgrids with atmo engines on opposite sides of the ship. I've updated the rotors to Advanced Rotors. When I set the rotor group to 45 deg, the left one goes forward, and the right one goes to the rear. Is there a way to set the angle as a group? The ship is flying but it is a handful to maneuver.
Whiplash141  [author] May 12 @ 10:51am 
Correction for clarity:
another script of OR physics weirdness

"Im trying to remember name of other script.."
Likely vector thrust 2 or Vector thrust OS?
dragonsphotoworks May 12 @ 8:47am 
Never had it rotate rotors. It doesn't interact with them only the thrusters them selves far as I've ever seen. There is another script out there that does move rotors and hinges. But it is not this one. Im trying to remember name of other script.. But if recall it was automation it just kept ships level. So other script might be what your using as well?