Space Engineers

Space Engineers

Spug's Easy Automated Docking [OBSOLETE/See Description]
absolain 29. mar. 2019 kl. 8:04
Making a round-trip
I'm hoping to use this script, which works brilliantly btw, on my cargo ships. Their mission is to go out to a mining outpost, dock, return to base, dock, and go back to the mining outpost again, etc.

I'm currently using 2 remote controls and 4 timer blocks because I found the patrol and circle autopilot routines to be unreliable (and, in fact documented the horrendous behavior of the patrol mode, which is confirmed super buggy).

remote 1 - pathing from the depot back towards the base, with the last waypoint triggering the home dock timer
home dock timer - wait 3 seconds, lock connector, start home undock timer
home undock timer - start up remote 2, unlock connector
remote 2 - pathing from the base back to the depot

My question being, how can I use your script in a round trip context? It seems to only have the functionality to run a command after docking, but I'd have to be able to differentiate between docking at home, and docking at the outpost.

Does it work to use your script in the middle of one remote which handles the full there-and-back route?

Thanks in advance (and thanks for the hard work on this script!)
< >
Viser 1-1 af 1 kommentarer
ETHREAL1 12. apr. 2019 kl. 23:46 
hey so this is what i do to solve this; (does not work with hangers very well)
i first use this scrip as well: https://steamcommunity.com/sharedfiles/filedetails/?id=859401813
it has the ability to trigger timer blocks when docking undocking and with battery levels that you designate, with that you can sorta make it work so the logic would be as follows; (you will need two+ fuel scrips)

fuel scrip 1 detects 100% battery charge;
fuel scrip 1 triggers timer block 1;
timer block 1 unlocks the connector, then runs the docking scrip with a set argument, EX: dock 2, then turns off fuel scrip 1 and turns on fuel scrip 2;
when the drone docks at the connector marked dock 2 the second fuel scrip will just monitor the battery;
fuel scrip 2 detects 100% battery charge;
fuel scrip 2 triggers timer block 2;
timer block 2 unlocks the connector, then runs the docking scrip with a set argument, EX: dock 1, then turns off fuel scrip 2 and turns on fuel scrip 1;
when the drone docks at the connector marked dock 1 the second fuel scrip will just monitor the battery;

circle complete
whats not so nice is each destination requires a timer block and a program block, but the circle can be expanded to as many destinations as needed.

also it makes me sad but it kinda looks as though the dev of this scrip is no longer supporting it...
Sidst redigeret af ETHREAL1; 12. apr. 2019 kl. 23:48
< >
Viser 1-1 af 1 kommentarer
Per side: 1530 50