Space Engineers

Space Engineers

1,685 értékelés
Whip's Subgrid Thruster Manager
5
3
7
6
4
3
2
   
Díjazás
Kedvenc
Kedvenc
Törlés
Címkék: other_script
Fájlméret:
Közzétéve:
Frissítve:
1.014 MB
2016. szept. 3., 1:47
2023. júl. 16., 8:12
38 változásjegyzék ( megnézés )

Feliratkozás a letöltéshez
Whip's Subgrid Thruster Manager

1 Whiplash141 készítette gyűjteményben
Whip's Scripts
22 elem
Leírás
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
Népszerű témák Összes megnézése (19)
268
jún. 29., 17:31
KIEMELVE: Bug Reports
Whiplash141
32
2023. máj. 25., 16:28
KIEMELVE: User Creations
Whiplash141
1
2023. dec. 12., 10:24
Compatibility with other scripts and autopilots
¤Foxtrot¤
1 445 megjegyzés
Whiplash141  [készítő] szept. 15., 14:52 
See "Ignored thrust name tag" in custom data.
Primelock szept. 15., 13:21 
I'm trying to use connectors for subgrid thrusters, I can enable them in the custom data but i'm afraid other thrusters will be used also. Can I tag certain thrusters that I want to use with the script and ignoring others?
prestanovich24 szept. 10., 6:41 
i cannot for the life of me get this to work in the way i want. all i wanna do is make retractable thrusters on pistons, and all it does is, make main grid dampening tilt nose first, and doesnt even attempt to keep it balanced. unless all my thrust is on the subgrid. very annoying when all i want is forward and reverse in the sub grid.
Abisius aug. 24., 22:03 
@Seagull1362
why dot you just deactivate the intertia dampeners of the fighter or shutdown the engines and gyros?
heck the shutdown can even bedone automatically via an event controler.
Seagull1362 aug. 24., 21:24 
it helps with having a carrier and small fighters connected by connectors, but with that set to "true" on a carrier with a piston on the same grid breaks the script and causes catastrophic failure and thrust override
Whiplash141  [készítő] aug. 24., 21:15 
Just a note, the script (by default) will not register anything connected via connectors. I don't ever recommend changing "Detect blocks over connectors" to true, but the option is there by request
Seagull1362 aug. 24., 21:12 
oh wait, i found out what it was. The carrier (large grid) had a piston attatched to it. The physics broke itself when the script registered the attatched fighter (small grid) and decided to yeet itself
Seagull1362 aug. 24., 20:50 
if i can replicate it again ill shoot you 2 BPs, one for a carrier capable vessel, another for a fighter
Seagull1362 aug. 24., 20:48 
its on the SW:SE Rebirth servers, ill test it again once i grind down a grid
Whiplash141  [készítő] aug. 24., 12:50 
Got a minimal blueprint I can debug? I can't replicate that behavior