Space Engineers

Space Engineers

1,773 个评价
Whip's Subgrid Thruster Manager
5
4
7
6
4
4
2
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
1.014 MB
2016 年 9 月 3 日 上午 1:47
2023 年 7 月 16 日 上午 8:12
38 项改动说明 ( 查看 )

订阅以下载
Whip's Subgrid Thruster Manager

在 Whiplash141 的 1 个合集中
Whip's Scripts
22 件物品
描述
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
热门讨论 查看全部(20)
276
5 月 7 日 下午 10:54
置顶: Bug Reports
Whiplash141
33
3 月 6 日 上午 9:33
置顶: User Creations
Whiplash141
1
2023 年 12 月 12 日 上午 10:24
Compatibility with other scripts and autopilots
¤Foxtrot¤
1,521 条留言
Whiplash141  [作者] 10 月 27 日 下午 8:47 
You can have a single programmable block. If your cradle connects via connector and not merge or rotor/piston, set "Detect blocks over connectors" to true in custom data so the script can see those blocks.
JaimeDarkfyr 10 月 27 日 下午 7:59 
Question? can this work in reverse? sorry im new to scripts, and still fairly new to the game.
to clarify, i created a Thruster cradle. simply fly your ship into the middle of the cradle and merge the grids in order to acquire all the thrusters from the cradle. I guess what i wanna know is, do i have to have the program block on every main ship that uses the cradle? or can i just have the program block on the cradle itself, and have it supply its thrusters to any ship that attaches to it instead?
peacemaker 10 月 20 日 下午 5:48 
On the second look its seems to be a game bug because I can only hear it when I'm very close to it and not in the cockpit like the other thrusters on the main grid. Thanks for the response. :steamthumbsup:
Whiplash141  [作者] 10 月 20 日 下午 3:17 
I do not. That feels like a game bug. If you put a thruster on a rotor and manually set the override, do you get sound?
peacemaker 10 月 19 日 下午 10:11 
The Script is working pretty good :steamhappy: , but the thrusters on the sub-grid seems to have no sound :steamsad: . Its connected to one rotor, you know a fix?
Version 42.3.4
Pumpkin 9 月 17 日 上午 1:49 
thank you works great
Whiplash141  [作者] 9 月 16 日 下午 9:39 
i forget, but do thrusters have ownership now? if so, ensure all ownership is the same
Vetmitar 9 月 16 日 下午 8:48 
I set connector detection to true, but it is stilll not recognizing my thrusters, any aidea why? I am on the new update.
Whiplash141  [作者] 9 月 15 日 上午 12:44 
yes, your physics stability may vary though, nothing the script can do to fix that heh
Pumpkin 9 月 14 日 下午 11:46 
do this work on multiple rotors ? Like my ship is Main body , rotor , rotor , rotor , thrusters