The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: vk on December 22, 2010, 02:17:11 PM

Title: [9.0][Pak128.Britain-Ex 0.7.1] Train does not accept passengers
Post by: vk on December 22, 2010, 02:17:11 PM
I have a train connection between 2 stations. From time to time one or more convoys stop accepting passengers. If there is no minimal load, they travel empty between stations. If there is a minimal load set they wait forever to be loaded.

It is always the same line. Other lines seem to be ok.
There are lots of passengers at both stations which want to go to the opposite one.
Other convoys assigned to the same line behave fine.
New convoys are ok. They break after after a while.
It is possible to fix a convoy by sending it to a depot, disassembling it there and making a new one. But after some time it breaks again.
Title: Re: [9.0][Pak128.Britain-Ex 0.7.1] Train does not accept passengers
Post by: inkelyad on December 22, 2010, 02:33:51 PM
Savefile?
Title: Re: [9.0][Pak128.Britain-Ex 0.7.1] Train does not accept passengers
Post by: jamespetts on December 22, 2010, 02:52:50 PM
VK,

thank you for the report (and welcome to the forum!). As Inkelyad says, we need a saved game file of your game so that we can try to reproduce the problem. Put it in a .zip file, upload it somewhere and post a link so that we can download it.
Title: Re: [9.0][Pak128.Britain-Ex 0.7.1] Train does not accept passengers
Post by: vk on December 22, 2010, 08:56:59 PM
Here it is: http://www.sendspace.com/file/wci9cm
The broken train is standing at Newport Railway Station.
Title: Re: [9.0][Pak128.Britain-Ex 0.7.1] Train does not accept passengers
Post by: jamespetts on December 22, 2010, 10:22:09 PM
Right, I think that I've found the problem. When you had the train set as "wait for load", the program kept checking the average speed, which, since the train had not moved, was zero. This was greatly reducing the average speed for that line, which, in turn, made the infrequent 'bus line between the same origin and destination passengers' preferred route, so they were waiting for the 'bus instead of taking the train, which was incorrectly recorded as being far too slow.

I have now changed the code so that average speed will not be computed when the journey distance is zero, which should prevent this from recurring in the future. This fix should be made available in the next version of Simutrans-Experimental to be released. Thank you for your report!