Space Engineers

Space Engineers

Not enough ratings
Auto Recharge (coming home)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.868 KB
1 Aug, 2016 @ 9:30am
20 Aug, 2016 @ 3:26am
6 Change Notes ( view )

Subscribe to download
Auto Recharge (coming home)

Description
Auto Docking / Recharge Script

(Coming Home Function)

Short description:
Tired of switching off Thrusters and setting battery to recharge after
docking your small ship? This script takes care of that and comes with
some useful additional functionality.

= Features:
  • Set your batteries to recharge as soon as your're connected and leave the cockpit
  • Automatically turns off not needed blocks (Thrusters, Reactors, Gyros)
  • Optional: Delay for turning the spotlights after X seconds off
  • Optional: You can restrict the script`s functionality to special named connectors
  • Easy installation!
  • No mods used!

= Requirements:
  • Programmable block
  • Timer block
  • Not docked on first script execution

= Installation:

To Install this script, just import it from workshop into your programmable block and press "remember & exit". Caution: The installation process runs automatically on the first execution of the script. Your ship mustn't be connected to any other grid (ship and/or base) during the first run. All blocks should be owned by you.

Lastly, you've to set a timer block as usual: Set the timer block to execute the programmable with "default argument" block and the timer block every second.


Special thanks to xlodx for many good ideas and for testing this script.


Feel free to put questions in here, if you've any problems with this script.

Have fun! :-)
18 Comments
DJ_Apfel  [author] 14 Aug, 2017 @ 8:08am 
Hi Rìgh, did you consider the installation part? It looks like, that your ship was connected to some other Grid at the first execution. Does the script runs on the ship?

greetz Apfel
Westrum 9 Aug, 2017 @ 7:38am 
Is this broken, or am I fucking up? It seems like the script puts my BASE batteries in recharge, not my ships....
Aschran 12 Sep, 2016 @ 8:48am 
Yaaaay cool, , because i have commerce stations in my survival server and...you said it, we have like 10-20 small ships inside, +4-6 cruisers,, could be better... ;)
waiting for an upgrade, thanks
DJ_Apfel  [author] 12 Sep, 2016 @ 8:39am 
Hey guys,

at the moment the script doesn't support gyros, but we can implement ist in version 1.3. The script should work with drones which doesn't have a cockpit (i haven't test it yet).

@Aschram: Yep, that's a good idea. We thougth about such a concept. With 30 ships and more it makes sense to implement a "base"-script which controls all docked ship central. This could be a function in version 2.

Bye :steammocking:
Stratigus 11 Sep, 2016 @ 3:06pm 
i like it but how do i get it to turn off the gyros? Also will it work say on drones that dont have cockpits?
Aschran 5 Sep, 2016 @ 8:28am 
lol you should make a script that work for the station and turn off everything that connect to it ^^
--> can eat a lot of cpu to run this script on 30 ships, than 1 script on the station
xlodx  [author] 21 Aug, 2016 @ 10:39am 
It it has to run on the ship(s) not the base.
Bobisback 21 Aug, 2016 @ 9:34am 
Ok that does not really anwser my question, sorry I may not be clear in my question hahaha. If I have two ships, one being a station and the other being a small ship, which ship does this script run on? The station or the small ship or both?
DJ_Apfel  [author] 21 Aug, 2016 @ 1:58am 
Yep, you've to start it on your ship to which the programmable block is running.
Bobisback 20 Aug, 2016 @ 2:31pm 
Does this script get started on the mothership or do I have to put it on each ship i dock?