Space Engineers

Space Engineers

Auto-Docking Optional Home Script 2
86 kommentarer
Jimbodiah 6. aug. 2024 kl. 13:41 
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 5. maj 2024 kl. 4:17 
Awesome work, thanks!
Brigobet 1. maj 2024 kl. 14:20 
The script fails with "Assembly not found. Please compile script." message. What can i do from here?
Thanks in advance :)
matdhouse 13. okt. 2023 kl. 14:16 
i have no clue how your setup works, how do i save the moblie home location and where do i put it?
Taipay 3. apr. 2023 kl. 0:20 
The German tutorial video is no longer available, I think you already know that :-)
Zerg 14. feb. 2023 kl. 18:46 
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 13. sep. 2022 kl. 14:12 
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 13. sep. 2022 kl. 12:11 
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  [ophavsmand] 13. sep. 2022 kl. 3:59 
@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 12. sep. 2022 kl. 21:04 
Auto docking wont work either. Just keeps slamming into my ships. Set on classic.
Paxination 12. sep. 2022 kl. 20:53 
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 29. juli 2022 kl. 11:04 
@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  [ophavsmand] 29. juli 2022 kl. 10:44 
@furryware you will need to find one (or use timers to disconnect and then thrusters on then off)
Ferrusware 29. juli 2022 kl. 8:45 
do the script allow take off or will i need to find one ?
Pounce 7. juli 2022 kl. 14:07 
works like a charm, on an server!
eamonn.fanton 17. maj 2022 kl. 17:03 
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  [ophavsmand] 12. feb. 2022 kl. 5:45 
@Kaito there's an option in the script to allow the antenna to be attached to a separate grid I believe
Jebes_Cust 5. feb. 2022 kl. 22:16 
yes
Kaito 5. feb. 2022 kl. 16:36 
Are they within antenna range of each other?
Jebes_Cust 5. feb. 2022 kl. 16:33 
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 11. jan. 2022 kl. 9:46 
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 29. juli 2021 kl. 13:37 
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 2. juni 2021 kl. 9:58 
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  [ophavsmand] 18. mar. 2021 kl. 16:41 
Glad to hear it! @CyberEntity24
Mercair 18. mar. 2021 kl. 15:20 
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 :)
貓凉 15. feb. 2021 kl. 17:46 
牛逼了大佬
Lord of Flies 5. feb. 2021 kl. 10:57 
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 1. feb. 2021 kl. 9:20 
@spug yeah that worked, thanks!
Chywire 1. feb. 2021 kl. 9:16 
@spug thanks I'll give that a shot
Spug  [ophavsmand] 31. jan. 2021 kl. 2:40 
@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 31. jan. 2021 kl. 1:53 
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 22. jan. 2021 kl. 17:02 
@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  [ophavsmand] 1. dec. 2020 kl. 3:10 
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 1. dec. 2020 kl. 2:09 
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  [ophavsmand] 30. nov. 2020 kl. 0:32 
@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 29. nov. 2020 kl. 21:12 
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 19. nov. 2020 kl. 9:15 
Works perfect now! Thank you so much!
Spug  [ophavsmand] 19. nov. 2020 kl. 8:44 
@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 19. nov. 2020 kl. 8:32 
That's okay. Thank you for quick response.
Spug  [ophavsmand] 19. nov. 2020 kl. 8:17 
Yes, I'm afraid new pathways have to be set after creating a new ship copy.
pro100tv 19. nov. 2020 kl. 8:07 
Also - is it necessary to set new pathway after printing the ship from blueprint or pasting it in creative mode?
pro100tv 19. nov. 2020 kl. 7:41 
Yes, please. That would be great!
Spug  [ophavsmand] 19. nov. 2020 kl. 3:19 
@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 18. nov. 2020 kl. 23:08 
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  [ophavsmand] 18. okt. 2020 kl. 3:29 
@VoidWatcher no this script can't control wheels on rovers, only thrusters and gyros etc.
A Victorian Dragon 17. okt. 2020 kl. 20:51 
Can I use this to dock a rover to a bigger rover? (The connector is also on a piston)
Spug  [ophavsmand] 4. okt. 2020 kl. 14:50 
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  [ophavsmand] 4. okt. 2020 kl. 14:50 
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 4. okt. 2020 kl. 13:31 
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 22. sep. 2020 kl. 22:14 
@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.