Space Engineers
73 ψήφοι
Formation System - Rover Follower
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
828.835 KB
16 Απρ 2019, 14:28
14 Απρ 2021, 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 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 29 Δεκ 2023, 12:55 
Yeah this script is broken for 2x2... would really be great to get a fix...
BAKADAKALAKA556 12 Νοε 2023, 14:22 
script throws exceptions when using short 2x2 wheels
Righty 4 Σεπ 2023, 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 Μαϊ 2022, 11:53 
is there a youtube video to follow please?
[TGG] DoctorHeisenberg 3 Ιουλ 2021, 5:54 
oh i thought it was only for ships
76561198082681546  [Δημιουργός] 2 Ιουλ 2021, 16:09 
Yes just use the leader script
[TGG] DoctorHeisenberg 2 Ιουλ 2021, 8:29 
can you do a rover leader?
Niceguygamer 17 Αυγ 2020, 17:00 
ok
76561198082681546  [Δημιουργός] 17 Αυγ 2020, 16:31 
No