Space Engineers

Space Engineers

Auto-Docking Optional Home Script 2
86 Comments
Jimbodiah Aug 6, 2024 @ 1:41pm 
I have the autodocking working, but the homeship extra script is going to the old gps coordinates whe I move the home ship. Antennas on both, in range, location saved, permissions the same. When I recompile the home script it says antenna found, but a bit later that message will disappear and I only see "installed correctly".

What am I doing wrong?
Halloa May 5, 2024 @ 4:17am 
Awesome work, thanks!
Brigobet May 1, 2024 @ 2:20pm 
The script fails with "Assembly not found. Please compile script." message. What can i do from here?
Thanks in advance :)
matdhouse Oct 13, 2023 @ 2:16pm 
i have no clue how your setup works, how do i save the moblie home location and where do i put it?
Taipay Apr 3, 2023 @ 12:20am 
The German tutorial video is no longer available, I think you already know that :-)
Zerg Feb 14, 2023 @ 6:46pm 
is there any way, with some mod or anything that i can have the docking waypoints loaded in when i rebuild/repair drones so i don't have to manually record new paths for each drone after a battle?
Paxination Sep 13, 2022 @ 2:12pm 
NVM I figured it out. I am using modded connectors. Particularly the ones from passageway connectors by zardo. It was trying to connect to the back side of the conveyor connector block, which is in the ship. Its working perfectly now. Could you update both your scripts descriptions to mention it wont work with modded connectors?
Paxination Sep 13, 2022 @ 12:11pm 
Dont know why but i cant read that comment, says its waiting for automated content check system. But the comment is 7 hours old already.
Spug  [author] Sep 13, 2022 @ 3:59am 
@Paxination I'm going to need more information than that to help you out. Keep in mind that this script does not cater for objects in the way - there is no collision avoidance. However I'm just guessing the issue here
Paxination Sep 12, 2022 @ 9:04pm 
Auto docking wont work either. Just keeps slamming into my ships. Set on classic.
Paxination Sep 12, 2022 @ 8:53pm 
Drone recall isnt working for me. Its slamming into my mothership not even CLOSE to the alignment I set. It see's the antenna on both ships.
Pounce Jul 29, 2022 @ 11:04am 
@furryware timer blocks are even better at putting your ship into the state you want, i have one for docking and one for starting, switching batteries, thrusters gyros and what not on and off.
Spug  [author] Jul 29, 2022 @ 10:44am 
@furryware you will need to find one (or use timers to disconnect and then thrusters on then off)
Ferrusware Jul 29, 2022 @ 8:45am 
do the script allow take off or will i need to find one ?
Pounce Jul 7, 2022 @ 2:07pm 
works like a charm, on an server!
eamonn.fanton May 17, 2022 @ 5:03pm 
Is it possible to have multiple 'home ships'.

Currently in the process of creating an Eagle From the 'Space 1999' TV series.
Have most of the basic complete,

Up to now I have been using a camera to aid in docking pods to the Eagle. Its a bit hit and miss, Saw your script and thought this would be absolutely perfect, but there is a but.

I have designed my Eagle too carry three different pods. A cargo pod, simple mobile base pod, and the beginnings of a weapons pod. Pods are picked up via a piston and connector r setup where the Eagle land over the pod (extended landing gear) drops the connector via a piston and once that is locked to the connector on the pod the piston is reversed to lift the pod into the cargo bay of the Eagle.

What I would really like to do is use your script in reverse so to speak in that the Eagle mothership could dock to multiple 'home' pods.

Here's a screen shot to give you an idea of what I am talking about
https://imgur.com/a/VzOIMTf/url
Spug  [author] Feb 12, 2022 @ 5:45am 
@Kaito there's an option in the script to allow the antenna to be attached to a separate grid I believe
Jebes_Cust Feb 5, 2022 @ 10:16pm 
yes
Kaito Feb 5, 2022 @ 4:36pm 
Are they within antenna range of each other?
Jebes_Cust Feb 5, 2022 @ 4:33pm 
Does this work with ships in orbit ( Real orbits Mod/ Orbiter Space Engineers Simulator ) I can't seem to get it to find a flight path to my orbiting station both scripts are setup and say they are working but when I try to dock it freaks out. I'm I doing something wrong or does this just not understand out to sync up with the stations orbit. The Orbiter Space Engineers Simulator Mod allows scripts to see the orbit info of a ship or station in orbit so if the script doesn't already have have that ability would you be willing to add that functionally, I know nothing about this scripting language nor how this all works but I would think since you already have the auto docking framework it shouldn't be that hard to make it pull the Orbiter Space Engineers Simulator's info to sync up with another orbit and dock, big thanks if you would even consider doing this and if you did you would be the soul creator of the only (Auto Docking for Orbiting ships Script) On the Workshop.
Kaito Jan 11, 2022 @ 9:46am 
When you say "Don't put antennae on a different grid to the respective programming block", does that include subgrids on a rotor? Because it's quite a common trick to stick a couple small grid programmable blocks on a rotor on compact large ship grids to save space. It also looks kinda cool.

Is that a use case you would be able to support?
booped_bud Jul 29, 2021 @ 1:37pm 
hey do you guys know of any good drone scripts, im trying to make a aircraft carrier that will launch a bunch of drones and at a target 2-3 km away and then recall them using this script
Duke Skyloafer Jun 2, 2021 @ 9:58am 
Hi Spug, quick question: The home script is printing out its status on one of the grid LCDs, looks like maybe the first one it finds. Is it possible to move this output to a specific LCD or a control seat screen?
Spug  [author] Mar 18, 2021 @ 4:41pm 
Glad to hear it! @CyberEntity24
Mercair Mar 18, 2021 @ 3:20pm 
I literally just started building a huge drone mothership (Using HUBERT's drones https://steamcommunity.com/sharedfiles/filedetails/?id=2425165251) So I discovered this at the perfect time! This is awesome! will def use this on all my motherships in the future :)
貓凉 Feb 15, 2021 @ 5:46pm 
牛逼了大佬
Lord of Flies Feb 5, 2021 @ 10:57am 
Hi @spug, in changeable variable section there is {double connector_clearance} which makes the ship to fly in front of connector in X meters "horizontally" prior to connection.
is it possible to do the same but from left to right or vice versa?
(i have optional mobile home script running as well)
Chywire Feb 1, 2021 @ 9:20am 
@spug yeah that worked, thanks!
Chywire Feb 1, 2021 @ 9:16am 
@spug thanks I'll give that a shot
Spug  [author] Jan 31, 2021 @ 2:40am 
@Chywire there's a chance you've got one of the annoying keen bugs. For some reason it stops my timer block search short sometimes when it reaches pistons and rotors that are on a station. For this reason, having "force timer block search on station" must sometimes be kept off. If it's still happening with that off then honestly I'm not sure I'm afraid, let's just hope turning that off works.
Spug
Chywire Jan 31, 2021 @ 1:53am 
I can't get the timer to trigger when the dock is completed. I have tried with both the ship and the station and was sure to add [dock] to the timers name, anyone got any ideas what I might be doing wrong?
Bullet Magnet Jan 22, 2021 @ 5:02pm 
@dunnersguy couldn't you just put a control block on the "station" side and remote into it and toggle off the gyros and then dock?
Spug  [author] Dec 1, 2020 @ 3:10am 
I'm afraid not, the only related thing you could do would be to have a timer on the station (and you have the optional home script on there). You'd set the station timer to run the optional home script with the docking argument the ship uses. This would recall the ship, telling it to dock. And so you could have that timer do other actions too.
If really necessary, I think there's antenna communication scripts that allow you to activate that timer block from the ship, but I'm not sure...
dunnersguy Dec 1, 2020 @ 2:09am 
Hey Spug, I have done that on the ship, I am wondering if I can do that on the station somehow when a ship asks how to dock to the station?
Spug  [author] Nov 30, 2020 @ 12:32am 
@dunnersguy yes, if you put a timer on your ship and add the text [start dock] to it's name, it will be triggered immediately whenever a docking procedure is started.
dunnersguy Nov 29, 2020 @ 9:12pm 
Hey, is there any way of activating a timer when a ship has requested to dock? The reason I ask is that I am using an auto align to the sun script and the ship nearly ran into the mother ship as it started rotating during the docking. I just want a timer to pause the autoalign while the docking is happening
pro100tv Nov 19, 2020 @ 9:15am 
Works perfect now! Thank you so much!
Spug  [author] Nov 19, 2020 @ 8:44am 
@pro100tv I've updated the optional home script to allow it to be used by other scripts, please check the new version works for you now.
pro100tv Nov 19, 2020 @ 8:32am 
That's okay. Thank you for quick response.
Spug  [author] Nov 19, 2020 @ 8:17am 
Yes, I'm afraid new pathways have to be set after creating a new ship copy.
pro100tv Nov 19, 2020 @ 8:07am 
Also - is it necessary to set new pathway after printing the ship from blueprint or pasting it in creative mode?
pro100tv Nov 19, 2020 @ 7:41am 
Yes, please. That would be great!
Spug  [author] Nov 19, 2020 @ 3:19am 
@pro100tv yes - there's a filter on what is allowed to pass arguments to my script. I can allow other scripts to activate this one if it's something you really want?
pro100tv Nov 18, 2020 @ 11:08pm 
Works really good for me. I was able to create mobile refuelling platform!

There's one issue though - when I try to pass the argument to dock via SDS Operational Script it doesn't work.

I checked if it works with the same argument passed from the toolbar and it does.

Any ideas why is it happening?
Spug  [author] Oct 18, 2020 @ 3:29am 
@VoidWatcher no this script can't control wheels on rovers, only thrusters and gyros etc.
VoidWatcher Oct 17, 2020 @ 8:51pm 
Can I use this to dock a rover to a bigger rover? (The connector is also on a piston)
Spug  [author] Oct 4, 2020 @ 2:50pm 
For my script, if you have any problems with any particular parts of my instructions just ask about them.
German installation video may help:
https://www.youtube.com/watch?v=l3UqZDCwM44&feature=youtu.be
There's also a great video of somebody using it waypoints here:
https://www.youtube.com/watch?v=FQ3GZ1XIhMs
Spug  [author] Oct 4, 2020 @ 2:50pm 
Hi CJ, you'll need to have ingame-scripts enabled in your world settings first. Once you have done that, scripts run inside a block called the "programming block", you'll need one of these on your ship for each script you want to run. The scripts have access to all your ship systems/blocks and control them however. If you go into the programming block interface, you can press "edit" which takes you to their programming screen - press "browse" to load up a script such as "Spug's Easy Autodocking 2" ;)
The "run" button takes in whatever you've written in the "argument" field and the script does whatever it's meant to do with it. You'll need to read the steam workshop descriptions for instructions.
TheGalvanist Oct 4, 2020 @ 1:31pm 
I've only played this game for around 33 hours I think over the course of a few days since I've got nothing to do, I've tried my damnedest to figure out how AI's work and how I am suppose to use these scripts but I'm just not experienced enough with the game. I'm working on making a APC convoy with a few trailers and I want to make small drones for various needs so I went around and gathered up a bunch of scripts not know at all how to implement them. I found one for auto mining which I want to use with the ore detector blocks, I found your auto docking while moving and stationary scripts, I've also found a Patrol script though I'm not sure how to set it up and have it so the drones(All of them) stay with or in the vicinity of my little convoy while it moves around the planet.

Any help would be appreciated with understanding how this sort of stuff works.
Casia Loopy Sep 22, 2020 @ 10:14pm 
@Airomis
That'd be amazing, but might be possible by just telling the drone to stop, and then hitting the recall spug recall script. I havn't used the script yet or i'd test myself.