Space Engineers

Space Engineers

73 人が評価
Formation System - Rover Follower
   
アワード
お気に入り
お気に入り
お気に入りから削除
ファイルサイズ
投稿日
更新日
828.835 KB
2019年4月16日 14時28分
2021年4月14日 16時16分
5 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
Formation System - Rover Follower

解説
Note: This project has been abandoned and will no longer receive updates or support except to fix bugs caused by major game updates.

This is the follower script for my formation system. These scripts together allow you to set a ship to follow another in a specific position relative to the leader.

For best performance, the follower ships should have the same or more maneuverability than the leader ship.

Requirements
A remote control block on both the follower ship and the leader ship that points forward.
A radio antenna on both the follower ship and the leader ship.
Thrusters in all directions and enough fuel/power for all the thrusters.
Read the settings in the scripts.
Make sure the wheel blocks are the right side up! Putting them upside down will result in runaway rovers.

Commands
Commands can be run in the follower script argument box or you can transmit a command to the system by using the leader script argument box.
  • setoffset;x;y;z - sets the offset variable to this value
  • addoffset;x;y;z - adds these values to the current offset
  • stop - stops the script and releases control to you
  • start - starts the script after a stop command
  • starthere - starts the script and sets the offset to the current position.
  • reset - resets the offset and the default configuration to the default offset.
  • clear - forces the script to forget a previous leader when calculateMissingTicks is true
  • save(;name) - saves the offset to the specified configuration.
  • savehere(;name) - saves the current position to the specified configuration.
  • load;name - loads the offset from the configuration

Configurations
You can have multiple offsets for your ship. They are manipulated using the save, savehere, and load commands. The offsets for the saved configurations can be directly modified in the CustomData field of the programmable block. By default, the script will have a single 'default' configuration with the default offset. When you make changes to the CustomData directly, you should recompile the script to make the changes appear. CustomData will only be updated by the script when using the save and savehere commands. Warning: Any error in the CustomData will cause the entire script to reset.

Setting The Offset
( > denotes a command )
> stop
Fly the ship to where you want it
> starthere

OR

( assumes a config has been previously saved using save;name command. )
> load;name

OR

> setoffset;x;y;z


Source Code
https://github.com/austinvaness/FormationSystem/tree/master/FormationRoverFollower

Donate
To support my work, you may use Paypal[www.paypal.com] or Patreon[www.patreon.com]
17 件のコメント
Pettmybuckets 2月19日 22時45分 
I was getting an Error for "missing Suspension type" that was preventing me from using this script with the new "short" suspension blocks. You can fix this yourself by going into the script code near the bottom of the page and look for where it starts to say "case "SmallSuspension3x3":"and add the fields (case "SmallShortSuspension3x3":) and (case "SmallShortSuspension3x3mirrored":) According to your grid/wheel size. make sure you do this for both. This should fix this error. Hopefully Avaness can fix it properly one day.
Star_Kindler 2023年12月29日 12時55分 
Yeah this script is broken for 2x2... would really be great to get a fix...
BAKADAKALAKA556 2023年11月12日 14時22分 
script throws exceptions when using short 2x2 wheels
Righty 2023年9月4日 10時15分 
hello! i was wondering if it will get updated to use the new short suspensions? they currently gives up an error message, which is pretty sad, thanks!
Shadow0K 2022年5月26日 11時53分 
is there a youtube video to follow please?
[TGG] DoctorHeisenberg 2021年7月3日 5時54分 
oh i thought it was only for ships
avaness  [作成者] 2021年7月2日 16時09分 
Yes just use the leader script
[TGG] DoctorHeisenberg 2021年7月2日 8時29分 
can you do a rover leader?
Niceguygamer 2020年8月17日 17時00分 
ok
avaness  [作成者] 2020年8月17日 16時31分 
No