Space Engineers

Space Engineers

371 평점
Auto-Docking Optional Home Script 2
2
8
4
2
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
파일 크기
게시일
업데이트일
791.098 KB
2020년 7월 5일 오후 4시 43분
2020년 11월 19일 오전 8시 42분
업데이트 노트 3개 (보기)

다운로드 위해 구독하기
Auto-Docking Optional Home Script 2

설명
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://psteamcommunity.yuanyoumao.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
인기 토론 모두 보기(1)
0
2021년 1월 6일 오전 3시 11분
Issue with Home-Script and Auto-Docking
Ratchet&Clank
댓글 86
Jimbodiah 2024년 8월 6일 오후 1시 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 2024년 5월 5일 오전 4시 17분 
Awesome work, thanks!
Brigobet 2024년 5월 1일 오후 2시 20분 
The script fails with "Assembly not found. Please compile script." message. What can i do from here?
Thanks in advance :)
matdhouse 2023년 10월 13일 오후 2시 16분 
i have no clue how your setup works, how do i save the moblie home location and where do i put it?
Taipay 2023년 4월 3일 오전 12시 20분 
The German tutorial video is no longer available, I think you already know that :-)
Zerg 2023년 2월 14일 오후 6시 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 2022년 9월 13일 오후 2시 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 2022년 9월 13일 오후 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  [작성자] 2022년 9월 13일 오전 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 2022년 9월 12일 오후 9시 04분 
Auto docking wont work either. Just keeps slamming into my ships. Set on classic.