Page 19 of 22

Posted: 03 Apr 2005 07:44
by Trev
Another crash. Two trains leave a station at the same time, wait at the entrance of a PBS block for a train to clear, then pick crossing paths.

Crash occours on December 21st at Gawler Station.

Running alpha 48 on Windows XP.

Posted: 03 Apr 2005 17:32
by Patchman
Apparently I've fixed this already, when I load it in my a49 version they don't crash but they do in a48.

Posted: 05 Apr 2005 13:06
by SHADOW-XIII
- there was road-rail junction (road owner: town)
- I removed (demolished only one, not that with rail) 4 road squares (for a bridge)
- what I see ? both rails are grayed ! (PBS-ed)
- on one of the rails train manage to run and gryed disappeared, on the second one it is still there
- there is/was no pbs signal at any side of the road-rail junction

including: savegame before doing anything,after building bridge(you can demolish bridge to see that one of the rails is still greyed until any train will pass it), ttdpatch.cfg

Posted: 05 Apr 2005 13:17
by Mek
I'm having some more train crashes with alpha 48. They all mostly look the same, so i'm only posting one savegame, but if you want more, i've got them :)

Posted: 05 Apr 2005 17:23
by JTanczos
Crash in a tunnel. 1 train holds up a second train at a signal in front of a tunnel. 1st train's back end clears the signal and completely enters the tunnel. As the 2nd train approaches the red light it turns green for same tunnel and crashes with train 1.

Posted: 08 Apr 2005 20:11
by Oracle
I should have posted this before, but this savegame is mad. If I load it here I get about 10 train crashes in a few minutes (with gamespeed on 8x). There is a problem with a PBS signal behind another, causing a train to get stuck (remove the first one when it pops up), but the crashes are shocking and happen at several places on the map.
It was saved in alpha 47 but still causes crashes under 48.

Posted: 11 Apr 2005 20:31
by AndersI
I have a minor problem with PBS, running Alpha 48.

In a station entrance with three lanes going to the station, when all lanes can reach any platform, PBS works as it should (blork-test1.png), but when I try to prioritize the lanes, in effect cutting off some platforms from the lower two lanes, PBS gets confused (blork-test2.png).

It seems the PBS sees that there is a free platform, activates the path finding, and doesn't find a path to the free platform and chooses something stupid instead...

Posted: 11 Apr 2005 20:36
by krtaylor
Simple - Don't do that. PBS wasn't designed to be quite that smart, I think.

Posted: 11 Apr 2005 21:20
by sobo
would be good for the future though..
"dont consider possible exits which cannot be within the PBS block.."

Posted: 11 Apr 2005 21:58
by krtaylor
I've already asked for something related - "don't make it a PBS block if there are no non-intersecting paths" - but that's too hard. And this sounds like a similar programming challenge.

Posted: 11 Apr 2005 22:25
by Patchman
sobo wrote:would be good for the future though..
"dont consider possible exits which cannot be within the PBS block.."
Believe me... you have no idea how many other setups that would break. I'm trying very, very hard not to add more special cases to PBS, because those already make debugging and fixing problems incredibly hard.

Some junction setups just don't work well with PBS. This is one of them.

Posted: 12 Apr 2005 19:53
by AndersI
Patchman wrote:Some junction setups just don't work well with PBS. This is one of them.
Fair enough! (That's why I said 'minor problem')

Posted: 13 Apr 2005 01:08
by Flamelord
Is there something in the PBS code that tells trains that if a train was told to skip a light and ended up intersecting a reserved piece of rail, that the rail is marked reserved incorrectly?

EXAMPLE:

Junction:

..S
<|
..S

the lines are rails, ignore the dots, the S's are signals.

A train is ALMOST out of the junction to the north, but there is a HUGE jam because of a lack of foresight on the part of the railroad's engineers (This is in my dad's current game), so the train waiting at the signal to the south is told to skip the light, even though the junction just after it still has a reserved track in it, the straight track. The train is being sent to the depot, and manages to do so safely. However, the train behind it SKIPS the light without being told to, and crashes into the train in front of it! OH NO!

Why does that happen?

Posted: 13 Apr 2005 01:33
by DaleStan
AFAICT, trains just unreserve tracks once they pass them, regardless of whether or not they were previously reserved.

Posted: 13 Apr 2005 01:35
by Patchman
Yes, a train wouldn't know if the track is reserved for itself or for another train. If it comes to a tile with reserved track, it can only assume that it must be the right train, because no other train could've got to that tile, since it would've been an intersecting path.

Forcing trains to ignore a PBS signal is a lot more dangerous than with regular signals, for this reason.

Posted: 13 Apr 2005 15:23
by Flamelord
Ah, that makes sense. That's approximately what I had figured happened when those trains crashed.

Posted: 28 Apr 2005 19:04
by Oracle
Interesting PBS problem here, mainly caused by stupid track layout that needs fixing by me but a problem nevertheless. The MP-54 EMU and the S2 Northern will come extremely close to crashing in this game (right in front of you when it loads) because the S2 will not reserve a path properly across the track it uses.

PBS configuration:

Code: Select all

pathbasedsignalling.autoconvertpresig on   // Convert pre, exit and combo signals into PBS signals
pathbasedsignalling.manualpbssig on   // Allow manually setting PBS signals
pathbasedsignalling.preservemanualpresig off   // Don't convert junctions with manually set signals into PBS
pathbasedsignalling.showreservedpath on   // Show reserved track pieces darker
pathbasedsignalling.shownonjunctionpath on   // Show reserved track pieces on non-junction tiles too
pathbasedsignalling.allowunsafejunction off   // Don't hold trains at unsafe PBS signal
pathbasedsignalling.allowunsafereverse off   // Don't stop trains that can't reverse safely

Posted: 05 May 2005 11:48
by KaCzach
Under a48 this station worked fine, after upgrading to a49 this is what I get:

Posted: 05 May 2005 13:20
by SHADOW-XIII
KaCzach wrote:Under a48 this station worked fine, after upgrading to a49 this is what I get:
agree, I noticed the same thing here ... I had to remove all PBS at stations

and I have some problems with train taking straight way at PBS junction, it takes a bit detour

Posted: 05 May 2005 15:30
by Patchman
KaCzach wrote:Under a48 this station worked fine, after upgrading to a49 this is what I get:
Can you explain in more detail what's wrong, and also post the savegame together with ttdpatch.cfg and newgrfw.cfg?