Space Engineers

Space Engineers

72 ratings
Sunchiro's AutoDock
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script
File Size
Posted
Updated
858.704 KB
5 Jan @ 5:01am
10 Jan @ 1:49am
8 Change Notes ( view )

Subscribe to download
Sunchiro's AutoDock

Description
AutoDock


[ WORK IN PROGRESS ]
Automatically detects docking connectors, aligns your ship, and manages thrust for seamless docking.
  • Functions very well in zero gravity.
  • Works fine in natural gravity if it's feasible for the ship.
  • Find nearest unoccupied dockable connector within 500m.
  • Automatically controls thrust to maximize acceleration within the ship's deceleration capabilities. Maximum speed up to 50m/s.
  • Can dock on ship with linear velocity. Can't dock on ship with angular velocity.

Cleared Line of Sight needed.
May work on path finding in the future.

Rotation still janky. Use at your own risk!

I couldn't use In-game Script because it need to scan for grid.

USAGE


Add this configuration to connector custom data on both connectors.

[AutoDock] Dockable=true

Press single quote ' while in controller (Cockpit, Control Seat)
Script will override Thrust and Gyro and turn off dampener.
Press ' again to disengage.

Ship align with connector orientation. so place rotate your connector accordingly.

TODO
  • Check permissions to ensure only authorized users can initiate docking.
  • Allow defining which side of the dock or ship to use. Currently, if another ship is nearby, it may attempt to dock with that ship :]
  • Implement pathfinding for complex docking scenarios.
  • Add favourite rotation angle.

Feel free to comment.
17 Comments
titanet 31 Jul @ 5:45pm 
when small ship or ship has high propulsive force(like Hydrogen) are not work properly.
only shaking at front of connector. big ship(Slow Ship) still good.
when in gravity. vertical docking kills my ship and base. but side docking is not bad
i am not sure there are conflict in my mod list. this is only viable docking mod at this time. :steamhappy:
SHADOWTHX 23 Jul @ 5:17am 
added mod to server. added [AutoDock] Dockable=true to connects. pressed ' from cockpit and nothing. does nothing
woodsguide 19 Feb @ 3:43am 
getting collision imminent warnings as well..
also my small miner just took off at breakneck speed from 20m away, bounced off the connector and exploded 2km away.. i had zero control over the vessel

mod worked great for the first couple days ;/
Kaiechi 17 Feb @ 7:27am 
so far ive not been able to make a successful connection with any small grid invoilved, every time the connectors get close it spams the screen with "Beware Collision Imminent" while oscillating the ship a few meters away. And every large grid ive tried fails to decelerate in time and just slams into the connector and destroys it
Dagglypuff 12 Feb @ 10:49am 
After testing this mod I have only noted 2 issues:

1. When attempting to approach some connectors if the connecter is a inset connector then it will display "Beware Collision Imminent" causing the mod to prevent docking.

2. If you are coming in to dock and then activate the auto dock it causes it to look for one elsewhere. (I was within 10 m of my desired docking port)
RIN 10 Feb @ 2:58am 
message that a collision is imminent and the ship never makes it to the docking port.
nhboehm 9 Feb @ 1:01pm 
Hi,
I keep getting a message that a collision is imminent and the ship never makes it to the docking port. It only approaches and then starts shaking like crazy.
woodsguide 8 Feb @ 12:40am 
is it possible to adjust/limit the docking speed?
is kinda crazy when my ship jumps to full throttle when i am just a handful of meters away from the docking port.

great mod btw ;o)
Vas 7 Feb @ 8:33pm 
Shouldn't this be a programming block script and not a mod?
qqww 7 Feb @ 5:10am 
Is that possible to trigger auto dock by a sensor or event controller?