Space Engineers

Space Engineers

364 ratings
Auto-Docking Optional Home Script 2
2
8
4
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
791.098 KB
Jul 5, 2020 @ 4:43pm
Nov 19, 2020 @ 8:42am
3 Change Notes ( view )

Subscribe to download
Auto-Docking Optional Home Script 2

Description
Overview
This script allows the main script (linked below) to dock onto mobile home ships (for example a mothership). The script is designed to be placed onto the mobile home ship, so that the docking ship can know where to land.

Not only will the docking ship take into account the velocities of the mothership, it takes into account the accelerations too allowing you to be pretty mean to the poor docking ship by speeding up and slowing down like a bully.

What's more, there's a ship/drone recall feature too. If you run the optional home script with an argument that your ship recognises, it'll tell it to dock from far away. So you could have a button on your hotbar that pulls your drone ships back into the mothership like a boss.

Since I have factored in a "Safety threshold", the ship will only approach if it thinks there's a reasonable chance of docking. Sometimes when the accelerations are fairly high compared to the capabilities of the docking ship, it'll just hover and wait for you to go at a more steady pace.

Main Auto-Docking 2 script:
https://steamcommunity.com/sharedfiles/filedetails/?id=2146371052

How To Setup
  • Make sure there is a useable antenna on both the docking ship and the mobile home ship. They need to be in range of each other.
  • Place a programming block onto the mobile home ship and load this script into it. You'll know it's working if it says "This script is set-up correctly and is running".
  • Check permissions are the same for all the programming blocks and antennae, this could cause issues.
  • At this point, you are done, and you'll be able to save mobile home ship locations on it as if they were static. However on the docking ship, double check it is ready for use with the optional home script. It should say "Antenna found: Ready for use with the optional home script".

Ship/Drone Recall
To recall your ship remotely, it is very simple. Assuming you already have some docking locations saved on the docking ship, for example SpuggleDock1:
Putting SpuggleDock1 in as the argument for this script, then pressing "Run" will send out a broadcast to all nearby friendly ships that orders them to dock if they have an argument that is SpuggleDock1.
Pressing "Run" again with that same argument will cause them to stop and cancel the recall order. (It works like a toggle).
This is useful for putting on your mothership hot bar so you can just call your little ships back in.

My script isn't seeing my antenna!
You ship setup might mean either script don't see their antennas. But do not fear! Here's a checklist of things to ensure:
  • Make sure the antennae are enabled.
  • Make sure the antennae have "Enable Broadcasting" turned on.
  • Make sure there isn't any weird permission stuff going on. For example the programming block has different permissions to the antenna.
  • Don't put antennae on a different grid to the respective programming block.
  • Make sure the antennae are powered and showing on your HUD.
  • Make sure both scripts are on the latest updates.


    Vielen Dank an FreakyMuffin für sein großartiges Tutorial zu diesem Skript für das deutsche Publikum:
    https://youtu.be/l3UqZDCwM44
Popular Discussions View All (1)
0
Jan 6, 2021 @ 3:11am
Issue with Home-Script and Auto-Docking
Ratchet&Clank
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.