v0.5: "train is lost"

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Seal
Engineer
Engineer
Posts: 5
Joined: 27 Dec 2006 11:34

v0.5: "train is lost"

Post by Seal »

Hi,

I installed 0.5 of OpenTTD Yesterday and found that trains get lost very easily.

I'm was using a very simple track, 1 station to another, double rail sometimes with signposts (double) on the entrance/exit of the double rail areas.

This used to work fine, now I get messages about trains being lost.

Anyone else experiencing this?

--
Seal
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

Please post the savegame where this occurs.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

Very stupid question; but did you give orders to your trains?
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Post by richk67 »

I was getting it really regularly as well on Brianetta's RC1 server. I had a long straight mainline, and trains would often whine about being lost even though they made 1 round trip/year. In the end I put in some waypoints to shut them up.

I'll dig out an autosave later.
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
User avatar
MagicBuzz
Tycoon
Tycoon
Posts: 1354
Joined: 15 Feb 2003 17:32
Location: Vergezac, France

Post by MagicBuzz »

Another stupid question : normaly, the "lost train" feature check the train route every xxx days.

Is your train able to join a route checkpoint in this interval ?

Let's say : the "lost train" feature seems to be very simple. It doesn't actually check the train finding path, it just check it crossed a route checkepoint in the last xxx days.

So if you enable the feature with "30 days" and your train needs 50 days to join it's station, you'll get a message about train is lost but it doesn't really.

Just put a higher value for this option. 90 or 120 days is ok for big maps.
Seal
Engineer
Engineer
Posts: 5
Joined: 27 Dec 2006 11:34

Post by Seal »

Yes, the train had orders :)

Some more info that might help:

I have depots just outside the stations, so before (when going from the station) the signals. It appears that the train waits for the signal a bit (another train is occupying the single rail area), then turns around, goes to the depot, says "train is lost".

Shouldn't it continue waiting at the signal until the other train is beyond a signal and continue running along when the signal goes green?

I've tried experimenting with single side signals as well, but I'm not very good at that ;)

--
Seal
User avatar
MagicBuzz
Tycoon
Tycoon
Posts: 1354
Joined: 15 Feb 2003 17:32
Location: Vergezac, France

Post by MagicBuzz »

what is the servicing interval ? may be your train just go back to the nearest depot because it's time to service ?
Seal
Engineer
Engineer
Posts: 5
Joined: 27 Dec 2006 11:34

Post by Seal »

100 days.

But even if that would be the case, why does it raise a dialog saying "train is lost"? I get this with multiple trains and it's getting annoying.


Thanks for the replies so far. 8)
--
Seal
User avatar
MagicBuzz
Tycoon
Tycoon
Posts: 1354
Joined: 15 Feb 2003 17:32
Location: Vergezac, France

Post by MagicBuzz »

imagine you train needs 100 days to reach the destination station.
10 days before reaching it, the train detects it needs servicing.
the closer depot it finds it the depot that is near the departure station.
so it goes back to this depot. then it should reach it in 90 days, so it's 180 after the last station was visited.
if the "lost train" feature is enabled with 120 days interval, it detects the train didn't reach a station during 120 days, so it says you the train is lost, as it was unable to reach any station for 120 days.

i really think it's somethinglike this that happens.
maartena
Route Supervisor
Route Supervisor
Posts: 470
Joined: 11 Jul 2003 04:53
Location: California, U.S.A.

Post by maartena »

I noticed that I got the "train is lost" message as soon as (or within 5 seconds of) me removing some track to rebuild a station entrance. I was on my own server yesterday and wanted to expand a station and rebuild a station entrance so it could serve more trains. It was serving about 40 trains already, and as soon as I removed some track (I reconnected it differently about 30 seconds later) at least 4 or 5 trains started to complain that they were lost.

Obviously, they were lost because I had removed the only route to the station they were supposed to go to, so I considered it appropriate behavior. However, I never expected them to complain within 5 or 10 seconds.... and also, not ALL trains complained, so it must have just been the trains that were:

a) on their way to the station right at that moment (and not loading up or returning to their load destination)

b) checking at that moment if their route was still valid.

It could very well be that of the 40 or so trains that serve that station, actually only 5 were on their way to it, and the other 35 were either loading, or returning to their load station and therefore NOT lost. None of the trains going TO the main station were actually in the area yet, e.g. they weren't piling up right in front of the station waiting for me to reconnect the track, they were all some distance away and driving the track at full speed. I managed to reconnect part of the line again before the first train arrived at the station to unload.

I think this is easily reproducible too actually..... just make a long line with some trains on it, and then remove a tile somewhere and wait..... ;)
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

Recently someone committed a feature that displays warning when pathfinder returns no path instead if waiting for train to wander around for one year.
KUDr
OpenTTD Developer
OpenTTD Developer
Posts: 219
Joined: 11 Jan 2006 21:36
Location: Czech Republic

Post by KUDr »

Yes this was me. I wonder why somebody complains so much and doesn't provide savegame. If there is no savegame reproducing the problem, then there is no problem to fix.
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Post by richk67 »

Here you go... Switch to yellow - train 17 is lost almost immediately, but its one of dozens.
Attachments
RichK Transport, 3rd Sep 2058.sav
Note this is a Brianetta game, so it has quite a set of grfs.
(547.91 KiB) Downloaded 84 times
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
Mr. Wednesday
Engineer
Engineer
Posts: 25
Joined: 15 Dec 2006 21:58
Location: South Bend, IN, USA

Post by Mr. Wednesday »

MeusH wrote:Recently someone committed a feature that displays warning when pathfinder returns no path instead if waiting for train to wander around for one year.
If it's just displaying a warning (without the underlying path selection changing), IMO that's altering the symptoms without changing the behavior.

Ultimately, it's problematic to try to use two trains on a duplex track, because the one on a spur with a depot would rather complain about being lost than pull up to the red signal and wait for the other train to pass.
Seal
Engineer
Engineer
Posts: 5
Joined: 27 Dec 2006 11:34

Post by Seal »

@KUDr:

Please, gimme a break :) "Complain so much" ... I'm still trying to figure out exactly what's going on and asking if someone else has the same problem.

Apparently, people have ( see savegame by richk67 ).

Mr. Wednesday has it right, instead of waiting at the red sign, apparently, it immediately complains about being lost. This confused me.

--
Seal
User avatar
MacLir
Engineer
Engineer
Posts: 48
Joined: 10 Aug 2006 18:07
Location: Marion, OH

Post by MacLir »

@Rich:
I'd like to look at that save, but I haven't been able to find a compatible 'pb_hovs.grf' for it. Could you post it or PM it? I'd greatly appreciate it. :D
Image
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Post by richk67 »

Ah - yes, it is an experimental one. Im not sure I can distribute it, though. Its one of Pikkabird's sets.
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
KUDr
OpenTTD Developer
OpenTTD Developer
Posts: 219
Joined: 11 Jan 2006 21:36
Location: Czech Republic

Post by KUDr »

richk67: please can you give me some savegame that i can load without tons of newgrf stuff? If you know how to reproduce the problem on trunk head build without obscure newgrfs, i would appreciate such savegame a lot. I would like to understand the problem and then look at it more deeply with debugger. I have played a lot with new 'train is lost' behavior, but never experienced any problem with it. Must be some railway design pattern that i don't use.
KUDr
OpenTTD Developer
OpenTTD Developer
Posts: 219
Joined: 11 Jan 2006 21:36
Location: Czech Republic

Post by KUDr »

Seal:
Seal wrote:@KUDr:
Mr. Wednesday has it right, instead of waiting at the red sign, apparently, it immediately complains about being lost. This confused me.
--
Seal
Hmm, then there must be something wrong. Train should feel lost when stopped on red only if the red signal is two-way. It is by design because if there are two trains going against each other on two-way track and only one two-way signal is between them then those trains are really lost. They can only wait for timeout and reverse.

Is it your case?
KUDr
OpenTTD Developer
OpenTTD Developer
Posts: 219
Joined: 11 Jan 2006 21:36
Location: Czech Republic

Post by KUDr »

Mr. Wednesday:
Mr. Wednesday wrote:Ultimately, it's problematic to try to use two trains on a duplex track, because the one on a spur with a depot would rather complain about being lost than pull up to the red signal and wait for the other train to pass.
Not sure if i understand. But if you have depot and then two-way signal and want the train to wait in the depot until there is green, you can try to make this signal 'presignal-exit' type (two ctrl-clicks from normal signal) or 'combo'. Then your train should wait in the depot until this signal is green.


edit: or you can play with rail_firstred_twoway_eol value in your openttd.cfg under [yapf] section setting it to false. But if you want change it for already started game, use 'patch yapf.rail_firstred_twoway_eol 0' command in console.
Last edited by KUDr on 28 Dec 2006 13:56, edited 2 times in total.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 10 guests