Space Engineers

Space Engineers

Follow Me Formation Flying
80 Comments
Ruben 28 Mar, 2023 @ 5:49am 
okay i found the solution, it was beacause there were no Ions boosters.
Ruben 28 Mar, 2023 @ 3:16am 
Hello, i don't know if the script is still supported or not, but when i use it, the ships come and go without stopping (I'm in space ) even though i made the same things as in the video
Tueem 15 Feb, 2023 @ 1:21am 
is the source available somewhere?
StabbyMcCree 7 Dec, 2022 @ 5:05pm 
Love this script! It's fast, light, clean, and works beautifully! Very well done.

One question however. I have the Warfare 2 DLC which includes the Spotlight turret. Does this turret work as the aiming ai for fixed guns? It doesn't seem to, but this may be a fault in my design.
BoxOfBeer 19 Nov, 2022 @ 8:38pm 
Razorray21,
Try to set the position relative to the antenna in the body of the transmitting station, maybe you have a knocked down grid of coordinates. I encountered this when I placed the antenna horizontally.
Razorray21 19 Nov, 2022 @ 5:07am 
Good Morning. I love how you made this to work.

however, i seem to be having an issue with it on an atmo drone following a rover.

i followed the video tutorial, and it seems to activate, but it just hangs there and very slowly turns and loses bottom thrust and falls.

possibly something with the gyro limiter? small grid drone, kinda heavy, so has 2 gyros

only thing ive really messed with is the relative up, because the first try had it crash imminently into the ground, and i want it to be above the rover.
BoxOfBeer 5 Sep, 2022 @ 8:38am 
Greetings.
Is it possible to dock with the host to pre-specified positions as in auto-docking scripts? So that when the fuel / batteries / cartridges are almost completely used up, the drone will automatically return to the mother ship? This would make it possible to make a full-fledged defensive fleet without using 10 program blocks. It also made the "quick jump" task easier.
For example, by disabling the script, give it the docking position relative to the antenna, or something like that
For me, a good example of what I want is a PAM miner.
Cigarette 3 Sep, 2022 @ 3:16am 
Does this still function any more? doing all i can and my ship won't move, but it does rotate.
GabbaGandalf 2 Aug, 2022 @ 5:51am 
have two client ships but one doesn't fight it just follows, the other fights perfectly.
an idea where the problem is?
the ships are identical!
cyberhorn 14 Jun, 2022 @ 7:44pm 
It's a nice script if you want to control only one while the others behave on the more erratic side. Haven't had any issues with following, just had to rename the remote control in order to get them to follow the lead drone.
Nighthunter 25 Mar, 2022 @ 4:20pm 
are the clients responding very slow to anyone else? I got 2km far away from them just by flying forward.... and they need a ton of time to catch up to me.
GabbaGandalf 8 Jan, 2022 @ 10:00pm 
very very nice thx for this master pice
Malhavoc 29 Sep, 2021 @ 8:52am 
Attempting to change formation after initial client/go commands.. The drones ignore any further instructions.

I had updated the formation in the custom data of the host, then send client, send go. The drones had no reaction. I attempted various other commands and I bricked them.
BIV 3 Sep, 2021 @ 11:09pm 
Fantastic work.
α¯\_(ツ)_/¯Ω 18 Jul, 2021 @ 8:43am 
perfect script
hitnec 9 May, 2021 @ 8:59pm 
that list is not working 4 me, but what seems to work is:

If I as the last think I do is recompile the client script, thats the script in a client drone it comes to live

no clue why.. but that works
nicknds  [author] 9 May, 2021 @ 1:35pm 
hitnec,

Host:
1. Run "host"
2. Run "go"

Client:
1. Run "client"
2. Run "go"

Advanced Host:
1. Run "host"
2. Run "go"
3. Run "send client"
4. Run "send go"

Sent commands are received by every ship in the network except the one that sent the command. From the host you can activate clients en mass

Troubleshooting:
1. The relative positions of the clients may be set to all 0's, either set their relative position manually or wait for the host to distribute relative positions
2. Ensure the Broadcast Password is the same for both clients and host
3. Confirm both the host and clients have a Remote Control block
4. If clients have unique relative positions that are not all 0's, move the host a little bit to send new coordinates to the clients
hitnec 9 May, 2021 @ 2:31am 
I can see in the video can you use the "send client" from the host
and after that you get 3 active clients..I get 0

whats the typical error?
hitnec 9 May, 2021 @ 2:26am 
I followed the video and it does not work, my drones dont move :(
nicknds  [author] 7 May, 2021 @ 2:04pm 
hitnec,

There is a video attached to this page with a demonstration of setting up some drones and flying them around

zorecati,

The script needs a gyro limiter built in to prevent it from maxing out the gyros and creating an endless spin. I ran into this bug recently on only one ship so I didn't know about it when I made this script
hitnec 7 May, 2021 @ 6:08am 
cant get it to work, any video for it?
zorecati 22 Apr, 2021 @ 5:53pm 
Weird question. I have 3 ships, 1 host with 2 clients. One client works just fine, the other just spins and maxes the gyro's. I've reinstalled remote control and programing unit but it continues. Any thoughts?
nicknds  [author] 3 Apr, 2021 @ 9:45pm 
Stormcatz,

vanilla Jump Drives can't be controlled by scripts or timers

You will have to turn them off and attach them to your ship. You can send the go/stop command "send stop" and "send go" from the host
Stormcatz 3 Apr, 2021 @ 8:29pm 
Is there any way that we can get these to Jump together?
Kharak 30 Mar, 2021 @ 10:56am 
Ahh yea that would make sense I had only hydrogen thrusters on my ship. Thanks!
nicknds  [author] 30 Mar, 2021 @ 10:52am 
solijonnathan,

that sounds like the planetary autopilot bug

iirc It happens when you don't have downward thrust or your ship uses only hydrogen thrusters. It is a bug with vanilla autopilot
Kharak 30 Mar, 2021 @ 10:45am 
I am curious on this because I don't know how to fix this, but I am experiencing trouble where the client driven ships get to the certain coordinates that it gets told to, and then drifts upwards. I am unsure how to describe it in detail, but needless to say it works for a little while and then it refuses to continue following. Any idea why I might be having this problem, or is this something new?
nicknds  [author] 25 Mar, 2021 @ 10:03pm 
lordmizou98,

The script controls the vanilla Remote Control autopilot by providing waypoints. Vanilla autopilot has Collision Avoidance built in but it isn't always reliable

It will try to avoid asteroids and other objects. If it can't find a path around the obstacle it just crashes into them

When clients fly directly at each other they begin to avoid each other but they tend to do it too late to avoid crashing
lordmizou98 25 Mar, 2021 @ 1:31pm 
I love tyhis mod and exactly what I needed for my play style, but if I go long distances, will they avoid asteroids ? or crash into them
Grebanton1234 24 Feb, 2021 @ 2:26am 
ok thx ill try to assign a position
nicknds  [author] 23 Feb, 2021 @ 11:07am 
Grebanton1234,

Check the client's relative position. It if is 0,0,0 then it has no assigned position and will do nothing until it receives an assigned position

If you're still having trouble, upload your world and I will take a look today
Grebanton1234 23 Feb, 2021 @ 10:21am 
First my ship was made of heavy armor so it was very slow actually and secondly even if i moved nothing happened
nicknds  [author] 22 Feb, 2021 @ 11:53am 
Grebanton1234,

That is vanilla autopilot
Fast clients can't make a small enough movement to get into position

It doesn't do anything until the host moves. It's a formation not a patrol
Grebanton1234 22 Feb, 2021 @ 6:52am 
and now it doesnt do anything
Grebanton1234 22 Feb, 2021 @ 6:45am 
when i set everything up the client just starts going back and forth eventhough the host is standing still
nicknds  [author] 22 Feb, 2021 @ 12:59am 
Grand Moff Tarkin,

I have prepared a small demonstration of what can be done with this setup. I attached the recording to this page

The host-client communication systems are nearly finished

The formation generation needs some minor adjustments.They should be able to generate infinite preset positions and the system can handle an unlimited number of custom positions

Clients in formation will now align themselves with the host when they are idle

Shooting fixed weapons at targets has been improved to handle more turrets designating targets. Targeting avoids characters, missiles, meteors, friendlies, faction members, and owned grids

Faster ships can keep in formation even if they are Star Destroyers
SevenofThr4wn 20 Feb, 2021 @ 10:20pm 
And can this work with large ships such as a Star Destroyer
SevenofThr4wn 20 Feb, 2021 @ 10:19pm 
Could you make a video of how to see it up, I perfer a visual representation of the setup.
MrFox 15 Feb, 2021 @ 8:05pm 
Infinite, WOW! I was thinking a limit of maybe 10?
Very impressive through! 5 stars
nicknds  [author] 12 Feb, 2021 @ 10:19am 
Woodzykiler,

I have been working on automatically putting drones in formation for while. I can upload the current progress

The goal is preset formations that grow infinitely and custom positions

Clients contact the host every 10 seconds, if any client goes 30 seconds without contact then it's position is made available for the next drone

Clients that autoregister will be given a custom position if available, or the next available position in the formation

The formations use two distance settings
Initial distance from host + 2.5x the host size (Formation Offset)
Distance between clients (Formation Spacing)

It needs more work to get it all working in harmony, and programming infinite formations is not easy
MrFox 11 Feb, 2021 @ 7:55pm 
Feature request, for auto printing drones
Get grid ID. Then place drone in formation automatically?
Use Grid ID to find place based on distance apart setting?
SevenofThr4wn 4 Jan, 2021 @ 2:45am 
This is exactly what I wanted
alucard 11 Jul, 2020 @ 3:13pm 
I did a bit more testing and was able to achieve some success with an atmo drone. The prior ship was hydro/atmo, so maybe that's part of the issue. I will continue testing today.

Let me know if you find anything else out!
nicknds  [author] 11 Jul, 2020 @ 5:59am 
alucard0909, I'm getting that too. Even if I turn off the script my autopilot just floats away on planets. It is the same with another script I have for patrolling an area on a planet

The script tells the Remote Control to use autopilot to go to a coordinate then the script waits until it needs to update the coordinate. It doesn't do anything in terms of controlling your ship's movement

I couldn't find a way to fix the bug by turning blocks on and off or changing settings with autopilot

I'm certain it is a bug with the autopilot, but not everyone has it for some reason. Until Keen fixes the autopilot bug on planets then autopilot and scripts that rely on it are useless on planets, sorry :steamsad: I want it fixed too so I can see my other updated script in action

If you can find some trick to get it to stop drifting on planets then I can try implementing it into the script to catch that bug
alucard 11 Jul, 2020 @ 1:35am 
Thanks for the great script. When I use this on planets my drones just float up endlessly but fairly slowly, even when the host is not moving at all. Any suggestions?
nicknds  [author] 6 Jun, 2020 @ 6:49pm 
antirelic, I added the settings. By default the dampeners will always remain on when inside a gravity well. I'm glad you like it, thanks!
antirelic 6 Jun, 2020 @ 8:09am 
Great. I look forward to the update. I really do enjoy this script. You've done a good job.
nicknds  [author] 2 Jun, 2020 @ 12:23am 
antirelic, that is strange. It should work on planets


I set the dampeners to turn off when a new waypoint is set so the drone will drift along its previous course while the autopilot figures out how to get to the new waypoint

Most of the time this is a straight line so to make the average speed higher I turn off the dampeners. When the autopilot starts, the dampeners turned on in my tests. With the dampeners left enabled the ship will slow down for up to a few seconds then start accelerating again dropping the average speed


I will add settings to:
-Toggle the dampeners when resetting waypoints
-Never disable dampeners when in a gravity field
antirelic 1 Jun, 2020 @ 8:03pm 
Any plans to make this work on planets? currently the drone falls from the sky when the PB is activated (turns off inertial dampeners)
antirelic 21 May, 2020 @ 5:35am 
This script works great btw. Easy to setup, works reliably.