Space Engineers

Space Engineers

73 beoordelingen
Formation System - Rover Follower
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Bestandsgrootte
Geplaatst op
Bijgewerkt op
828.835 KB
16 apr 2019 om 14:28
14 apr 2021 om 16:16
5 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Formation System - Rover Follower

Omschrijving
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 opmerkingen
Pettmybuckets 19 feb om 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 29 dec 2023 om 12:55 
Yeah this script is broken for 2x2... would really be great to get a fix...
BAKADAKALAKA556 12 nov 2023 om 14:22 
script throws exceptions when using short 2x2 wheels
Righty 4 sep 2023 om 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 26 mei 2022 om 11:53 
is there a youtube video to follow please?
[TGG] DoctorHeisenberg 3 jul 2021 om 5:54 
oh i thought it was only for ships
avaness  [auteur] 2 jul 2021 om 16:09 
Yes just use the leader script
[TGG] DoctorHeisenberg 2 jul 2021 om 8:29 
can you do a rover leader?
Niceguygamer 17 aug 2020 om 17:00 
ok
avaness  [auteur] 17 aug 2020 om 16:31 
No