Page 1 of 1
train is lost - bug?
Posted: 10 Jul 2015 17:58
by Wahazar
Is it known bug/feature?
I got "train is lost" message when train (diesel) is going from non-electrified to electrified part of the network.
Train itself move without problems.
Attached save can reproduce it (for example train 39).
Re: train is lost - bug?
Posted: 10 Jul 2015 20:24
by Transportman
Are you sure you attached the correct save?
Just something that pops to my mind, can it be that the train needs maintenance at a depot, but that it just cleared the crossing/cannot reach that depot?
Re: train is lost - bug?
Posted: 10 Jul 2015 22:47
by Wahazar
Transportman wrote:Are you sure you attached the correct save?
Strange, there was many messages on server, but after save, I can reproduce only one example, with train 39.
Probably it is related with depot - there is 'service' order, but train have high reliability and order is skipped - in this moment message appears.
Re: train is lost - bug?
Posted: 11 Jul 2015 05:11
by Alberth
The first company also has lost trains, and eventually runs into a deadlock
At the left, a full train is waiting for a platform

- waiting_for_space.png (193.6 KiB) Viewed 1898 times
At the right the middle train is waiting for a free path

- waiting_for_input.png (101.17 KiB) Viewed 1898 times
This is however in a different company than train 39. Is there a difference in performance running on different tracks? I extended the catenary until the station, and didn't get the message any more. It's quite weird.
Re: train is lost - bug?
Posted: 11 Jul 2015 06:48
by Transportman
McZapkie wrote:Transportman wrote:Are you sure you attached the correct save?
Strange, there was many messages on server, but after save, I can reproduce only one example, with train 39.
Probably it is related with depot - there is 'service' order, but train have high reliability and order is skipped - in this moment message appears.
Oops, train 39 is in the other company, my bad.
Re: train is lost - bug?
Posted: 11 Jul 2015 10:26
by frosch
This is FS#6329.
@McZapkie: In particular this also causes your desyncs. The train is lost on the server, while it is not on newly joining clients (or when loading a savegame), so the train takes different routes on server and client.
Re: train is lost - bug?
Posted: 11 Jul 2015 12:31
by Eddi
in the really early days of YAPF i had a similar problem, where the cache got filled with different value depending on whether an electric or non-electric engine entered a mixed junction
Edit: dug out the bug report:
https://bugs.openttd.org/task/988
Re: train is lost - bug?
Posted: 11 Jul 2015 15:01
by Wahazar
I'm glad that desync source was clarified, I was worrying that some of my newgrfs are faulty.
Hope that is is feasible to localise and correct this bug, because partially electrified networks are part of the game both from economic point of view
(less maintenance costs of non-electrified tracks in contrary to cheaper running costs of electric locomotives) and from pathfinding purposes
(opportunity to force certain trains to certain platforms without using waypoints, which always occupy some precious tiles).