I was thinking of making a mod based on Shuttle Train Lite that lets a single locomotive with no attached cars drive automatically in both directions, for use as a small, fast player transport. (Possibly using this engine sprite from Yuoki Industries Railroads, since it looks bidirectional.)
Is that possible in the game engine? Are there any mods that do something like that that I could use for reference?
Are two-way, single-engine, automatic trains possible?
-
- Inserter
- Posts: 36
- Joined: Wed Feb 25, 2015 1:02 am
- Contact:
Re: Are two-way, single-engine, automatic trains possible?
I believe that the current game engine won't allow this.
You might be able to fake it by making a shorter locomotive and replacing placed shuttles with two of the shorter loco, facing opposite directions.
You might be able to fake it by making a shorter locomotive and replacing placed shuttles with two of the shorter loco, facing opposite directions.
-
- Inserter
- Posts: 36
- Joined: Wed Feb 25, 2015 1:02 am
- Contact:
Re: Are two-way, single-engine, automatic trains possible?
Dang, that's too bad. Thanks. Perhaps you could have a "main" engine with an invisible, zero-length one attached to the "back", which is created/damaged/destroyed when the "main" engine is? That may be beyond my scripting ability, though. Is it possible to replace a single entity with two like that, in the scripting engine?sparr wrote:I believe that the current game engine won't allow this.
You might be able to fake it by making a shorter locomotive and replacing placed shuttles with two of the shorter loco, facing opposite directions.
Or, perhaps, is it possible to rotate an engine on the track in response to a pathing request? That might be simplest, if possible.
Re: Are two-way, single-engine, automatic trains possible?
You could probably wait for a train to change state, then flip it and re-path and see if the new path is shorter, and unflip if not.
A zero-length engine behind the real engine sounds viable.
A zero-length engine behind the real engine sounds viable.
Re: Are two-way, single-engine, automatic trains possible?
Why not placing the second head every time when you place locomotive? When they have twice more power and synchronized inventory, then it looks like they both are motorized in every direction.