Space Engineers

Space Engineers

Not enough ratings
WCCS - Dock
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
98.967 KB
14 Mar, 2017 @ 8:47pm
26 Dec, 2019 @ 5:52pm
41 Change Notes ( view )

Subscribe to download
WCCS - Dock

In 1 collection by Wicorel
Wico Drone Control Scripts
8 items
Description
Manages movement and docking on a drone.

Connectors to be used should have [DOCK] in the name or CustomData.

Requires Antenna Receive sub-module to receive docking coordinates.

Note that the 'mother' ship requres my DOCK Manager script running (or replacement)

Handles MODES:
MODE_DOCKED
MODE_DOCKING
MODE_LAUNCH
MODE_RELAUNCH


Arguments:

launch

when docked, launches the ship straight ahead. (same functionality as my MK3 miner)



godock

Drones now remember all bases and their positions.
When asked to dock (godock command), drone picks the 'best' base to try to dock to. (right now, it's just closest)
The drone then asks that base specifically for an 'approach' waypoint.
If it gets no reply, it tries to move into antenna range of the last known position of the base
When it gets to the approach waypoint, it asks the base for a connector
aligns to the docking connector
Moves backward toward the docking connector until connected

all movement except final docking has collision detection and drone performs pathfind around obstacles.


Note: Code is compressed using MDK. See source here: https://github.com/Wicorel/SpaceEngineers/tree/master/Wico%20Dock

Information on MDK Here: https://github.com/malware-dev/MDK-SE

Drone Script Collection
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1436521807

51 Comments
Wicorel  [author] 23 Jan, 2020 @ 3:28pm 
This part is the drone side. The mothership is in the Antenna Receive script.

It can be mobile.. however. the ship needs to be non-moving while docking is taking place.
Black.icE 22 Jan, 2020 @ 9:50pm 
Can this script be used on a mobile mothership, please?
no 31 May, 2019 @ 2:04pm 
I've added the antenna receive script and the master control script, it turns out I only needed to recompile it :steamfacepalm: . I think the instructions should be a bit clearer though since I had to look through some stuff to find the answer, thanks for your help though :steamhappy:
Wicorel  [author] 31 May, 2019 @ 7:44am 
The 'base' also needs the Antenna receive script and the master control script so it can tell the drone its available connectors.
no 31 May, 2019 @ 6:18am 
Hello, I seem to be having a problem with this script. I have followed the instructions and my drone won't move at all. I have an antenna attached to the drone and an antenna attached to the base or "mom" . Is this script not working? Also, could I have access to the world you used for the demo just to compare? Thanks :cozyspaceengineersb:
Vĕnŕøm™ 27 Feb, 2019 @ 4:36am 
Thanks for the info.
On our server someone made the docking port inside a tunnel/passage so the ship has to turn before the entrance, because it cant turn inside.

On my carrier i had to rework the whole hangar so it can rotate but if the drone only turned 20m earlier i would not need to do anything.

It would be nice if there was a parameter/variable to change the distance.
Wicorel  [author] 26 Feb, 2019 @ 9:00am 
The docking start position is set to the length of the ship +50%. Are you having a problem with this distance?

The drone will align it's connector to the docking connector no matter which side of the drone the connector is on. This is so it can connect when moved closer.

The rest of the drone is aligned to the base ship if the alignment is set in the target connector.
if align= is not found in CustomData of the target connector, no alignment is done

0 = forward
1 =up
2 = down
3=left
4=right
5=back

These are oriented according to the orientation of the ShipController in the base.
Vĕnŕøm™ 26 Feb, 2019 @ 6:22am 
Can i change the distance where the drone turn for docking?
Can I determine how the drone is aligned to the docking port like 90°?
sonicrules1234 19 Nov, 2018 @ 11:39am 
I'm having problems with this again. Everything looks fine except for the speed of the spinning progress indicator. The ship doesn't move when I tell it to dock.

Here's a link to the world:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1569165496
sonicrules1234 24 Jul, 2018 @ 8:11am 
I'd love to see this working on planets as well. :D