Space Engineers

Space Engineers

73 ratings
Formation System - Rover Follower
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
828.835 KB
16 Apr, 2019 @ 2:28pm
14 Apr, 2021 @ 4:16pm
5 Change Notes ( view )

Subscribe to download
Formation System - Rover Follower

Description
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 Comments
Pettmybuckets 19 Feb @ 10:45pm 
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 29 Dec, 2023 @ 12:55pm 
Yeah this script is broken for 2x2... would really be great to get a fix...
BAKADAKALAKA556 12 Nov, 2023 @ 2:22pm 
script throws exceptions when using short 2x2 wheels
Righty 4 Sep, 2023 @ 10:15am 
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 26 May, 2022 @ 11:53am 
is there a youtube video to follow please?
[TGG] DoctorHeisenberg 3 Jul, 2021 @ 5:54am 
oh i thought it was only for ships
avaness  [author] 2 Jul, 2021 @ 4:09pm 
Yes just use the leader script
[TGG] DoctorHeisenberg 2 Jul, 2021 @ 8:29am 
can you do a rover leader?
Niceguygamer 17 Aug, 2020 @ 5:00pm 
ok
avaness  [author] 17 Aug, 2020 @ 4:31pm 
No