Path-based signalling preview and test version

Get help, info, news and advice about the Transport Tycoon Deluxe patch.

Moderator: TTDPatch Moderators

User avatar
Trev
Engineer
Engineer
Posts: 57
Joined: 29 Aug 2004 06:05
Location: South Australia
Contact:

Post 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.
Attachments
TRP24.zip
(71.98 KiB) Downloaded 124 times
PBSCrash1.jpg
PBSCrash1.jpg (55.65 KiB) Viewed 4365 times
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post 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.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post 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
Attachments
save.zip
(464.33 KiB) Downloaded 112 times
what are you looking at? it's a signature!
Mek
TTDPatch Developer
TTDPatch Developer
Posts: 417
Joined: 13 Apr 2004 13:35
Location: Eindhoven, Netherlands
Contact:

Post 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 :)
Attachments
a screenshot
a screenshot
scr99.png (201.67 KiB) Viewed 1784 times
TRP00.SV1.gz
The savegame
(230.92 KiB) Downloaded 148 times
JTanczos
Traffic Manager
Traffic Manager
Posts: 233
Joined: 28 Sep 2004 05:59

Post 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.
Attachments
JT_train_crash.zip
(266.11 KiB) Downloaded 129 times
14:31:29 * Cctoide brandishes huge syringe, runs after Singaporekid
14:31:46 * JTanczos trips Cctoide causing him to fall on the syringe
14:32:32 * Cctoide sticks syringe full of Ritalin into JTanczos instead
14:35:25 -!- JTanczos [~JT@JTanczos.users.quakenet.org] has quit [Quit: gasps from the sudden shot of ridalin... Thankfully I saved the Singaporekid from any harm! Hopefully my death has meaning in this cruel world. Dont waste it Singaporekid! dont waste.... *gurgle gurgle* *dead*]
14:35:36 < Singaporekid> Booooring.
14:35:38 < Singaporekid> :P
14:35:58 < Singaporekid> Besides, ritalin isn't lethal.
14:36:09 * Singaporekid snags some of it for himself
14:36:29 -!- Singaporekid [~notme@cm233.epsilon122.maxonline.com.sg] has quit [Quit: *GURGLE GURGLE* *lol ded*]
User avatar
Oracle
Tycoon
Tycoon
Posts: 2138
Joined: 22 May 2003 09:59

Post 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.
Attachments
TRP09.SV1
(489.93 KiB) Downloaded 136 times
User avatar
AndersI
Tycoon
Tycoon
Posts: 1732
Joined: 19 Apr 2004 20:09
Location: Sweden
Contact:

Post 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...
Attachments
With all lanes leading to all platforms, everything works.
With all lanes leading to all platforms, everything works.
blork-test1.png (16.04 KiB) Viewed 3955 times
Train from the lower tunnel really want to go to the free platform, but there is no rail.
Train from the lower tunnel really want to go to the free platform, but there is no rail.
blork-test2.png (17.39 KiB) Viewed 3955 times
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Simple - Don't do that. PBS wasn't designed to be quite that smart, I think.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
sobo
Engineer
Engineer
Posts: 89
Joined: 13 Sep 2004 17:42
Contact:

Post by sobo »

would be good for the future though..
"dont consider possible exits which cannot be within the PBS block.."
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post 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.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post 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.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
AndersI
Tycoon
Tycoon
Posts: 1732
Joined: 19 Apr 2004 20:09
Location: Sweden
Contact:

Post 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')
Flamelord
Chief Executive
Chief Executive
Posts: 731
Joined: 24 Mar 2005 22:29
Location: Oregon

Post 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?
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

AFAICT, trains just unreserve tracks once they pass them, regardless of whether or not they were previously reserved.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post 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.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
Flamelord
Chief Executive
Chief Executive
Posts: 731
Joined: 24 Mar 2005 22:29
Location: Oregon

Post by Flamelord »

Ah, that makes sense. That's approximately what I had figured happened when those trains crashed.
User avatar
Oracle
Tycoon
Tycoon
Posts: 2138
Joined: 22 May 2003 09:59

Post 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
Attachments
TRP12.SV1
(313.83 KiB) Downloaded 134 times
KaCzach
Engineer
Engineer
Posts: 9
Joined: 04 Nov 2003 21:19

Post by KaCzach »

Under a48 this station worked fine, after upgrading to a49 this is what I get:
Attachments
SCR2.png
SCR2.png (301.79 KiB) Viewed 3445 times
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post 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
what are you looking at? it's a signature!
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post 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?
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
Post Reply

Return to “General TTDPatch”

Who is online

Users browsing this forum: No registered users and 12 guests