train is lost - bug?

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
Wahazar
Tycoon
Tycoon
Posts: 1452
Joined: 18 Jan 2014 18:10

train is lost - bug?

Post 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).
Attachments
qamil Transport, 9th Nov 2018.sav
(2.01 MiB) Downloaded 63 times
Formerly known as: McZapkie
Projects: Reproducible Map Generation patch, NewGRFs: Manpower industries, PolTrams, Polroad, 600mm narrow gauge, wired, ECS industry extension, V4 CEE train set, HotHut.
Another favorite games: freeciv longturn, OHOL/2HOL.
Transportman
Tycoon
Tycoon
Posts: 2792
Joined: 22 Feb 2011 18:34

Re: train is lost - bug?

Post 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?
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
Wahazar
Tycoon
Tycoon
Posts: 1452
Joined: 18 Jan 2014 18:10

Re: train is lost - bug?

Post 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.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: train is lost - bug?

Post 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
waiting_for_space.png (193.6 KiB) Viewed 1891 times
At the right the middle train is waiting for a free path
waiting_for_input.png
waiting_for_input.png (101.17 KiB) Viewed 1891 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.
Being a retired OpenTTD developer does not mean I know what I am doing.
Transportman
Tycoon
Tycoon
Posts: 2792
Joined: 22 Feb 2011 18:34

Re: train is lost - bug?

Post 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.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: train is lost - bug?

Post 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.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: train is lost - bug?

Post 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
Wahazar
Tycoon
Tycoon
Posts: 1452
Joined: 18 Jan 2014 18:10

Re: train is lost - bug?

Post 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).
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 33 guests