Space Engineers

Space Engineers

Not enough ratings
Automatic Metro Driver
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
0.000 B
23 Jan, 2016 @ 11:42am
29 Dec, 2023 @ 4:02pm
6 Change Notes ( view )

Subscribe to download
Automatic Metro Driver

Description
-- AUTOMATIC METRO DRIVER script --

When you have a really large station you might want a transport system from one end to the other. With this script you can automate that. This script is intended to drive your train/tram/metro or something similar thruster propelled wheeled vehicle on a straight track.

What you need for it to work:
- programmable block containing this script
- timer block
- remote control block
- thrusters paralel to the track

What you can have but not mandatory:
- LCD screen(s) to show some information like which is the next station
- timer block to trigger when arrived to a station
- timer block to trigger when leaving a station

How to setup:
1 Set the timer block to run this programmable block without any argument, then trigger itself.
2 Grab control of the remote control block, and drive your vehicle to a desired station.
3 Open K menu, go to GPS tab, and create a new from current pos. (rememeber to keep controlling the
remote control while doing this)
4 Select the newly created GPS point, give it a sensible name, then click on the Copy to clipboard button
5 Add a new line to the programmable block's Custom Data like: "Station=" (whitout quotes) then paste here the
copied gps data.
6 Repeat from 2 as many times as you want, you have to have at least 2 station.
7 Add additional config values to the Custom Data if you want, or leave everything on default.
8 Set the argument of the programmable block to "toggle" (whithout the quotes of course) then press Run
9 Enjoy the ride

Limitations
--------------
The script is designed to go on a straight track. It might work on slight turns, but it's untested, try it on your own risk!
It's also untested on planets, but shouldn't have any problems there.
13 Comments
Rusted Droid 20 Mar, 2022 @ 12:47pm 
Interesting.
I seen some scripts that can ask GPS from blocks (like battery).
Maybe try run script over connector to ask base (station) positions of GPS Antenna block (Station01..02...03).

Asking as if you have big ship that move sometimes then you must redo the GPS task.
posthy  [author] 20 Sep, 2019 @ 4:16am 
@UnclePetwinz: Thanks for letting me know. i will try to find some time to fix it. And may add some extra functionalities too, i have a few ideas.
UnclePetwinz 18 Sep, 2019 @ 6:43pm 
sorry for reviving this comment thread but i''ve been looking for a script like this for my tram system. I'm getting an error when trying to run the script - so i guess an update in the past two years broke it.
E-Man720 16 Apr, 2017 @ 9:09pm 
Much appreciated.
posthy  [author] 16 Apr, 2017 @ 4:37pm 
@E-Man720: updated, it should work again (the demo world is still broken). Remember to copy/save your station configuration before update unless you want to re-set them :) (next version will not use in-code config...)
posthy  [author] 7 Apr, 2017 @ 10:18am 
Thank you for letting me know, I will check it in a couple days. (teaser: and expect a major update in a few weeks, unfortunately I have more plans than time... :) )
E-Man720 7 Apr, 2017 @ 5:46am 
Think the script needs some work again, it can't seem to figure out which way it needs to go and just sits there. I tired the demo world and it suffers from the same thing.
tommorox2345 10 Oct, 2016 @ 9:34pm 
so planes work? or just cars? or what
E-Man720 7 Oct, 2016 @ 6:16am 
Also I think corners will be possible, but with a very carefully designed train.
E-Man720 7 Oct, 2016 @ 6:06am 
Had some issues, but they just turned out to be engineer errors, all works fine, and confirmed on planets.