'safe' PBS

Got an idea for a new feature in TTDPatch? Post it here.

Moderator: TTDPatch Moderators

Post Reply
User avatar
m3henry
Tycoon
Tycoon
Posts: 1985
Joined: 15 Feb 2006 12:00
Location: Hampshire

'safe' PBS

Post by m3henry »

I have recently had a speight of PBS related crashes.
So I had this idea:

Why not have a PBS system that reserves the tiles until the train leaves the junction instead of when the train exits the tile in-front, this would reduce the efficiency of the junction, but mean the train is very unlikely to have a crash, or be stuck trying to reverse at a signal or end-of line section.

Is this a inplementable feature or is it not.[/list]
The occasional look back at your past can teach you a great many things...
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Post by WWTBAM »

but that removes a large part of the useful ness of PBS as you said, so PBS is only useful for junctions where the trains dont need to cross each other like this lXl
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Can you show us a junction (translation: "savegame and configs") where PBS breaks, but your proposed changes would prevent the breakage?
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
User avatar
JGR
Tycoon
Tycoon
Posts: 2560
Joined: 08 Aug 2005 13:46
Location: Ipswich

Post by JGR »

This wouldn't actually help safety that much, because once a train is already onto a junction it would crash even if the train had not unreserved its previous tiles. Existing crashes woud probably still occur. (PBS crashes are exceedingly rare, unless you have lots of trains stuck at signals and reversing).
Additionally, this change would make unreserving tiles behind the train as it leaves the junction much more complicated and more likely to introduce new "track unreservation" bugs.

A far more useful 'safety feature' which would more efficiently catch certain PBS bugs would simply for a train to stop and display a stop message (similar to: train X tried to reverse but cannot do so safely...), if it is in a PBS junction and the tile it is about to leave does not connect to a reserved tile in the appropriate orientation in the next tile.
ie. If there is a case where part of a train's reserved path is unreserved, because it was overwritten by another train, etc., instead of continuing blindly (and unsafely) it should just stop instead.
Most of the PBS crashes I can think of happened when a trains path in front of it was unreserved due to erroneous behaviour of reversing trains elsewhere or other bugs, and another train reserved a path across the previously reserved path of the first train.

Just my thoughts on the matter.

JGR
User avatar
m3henry
Tycoon
Tycoon
Posts: 1985
Joined: 15 Feb 2006 12:00
Location: Hampshire

Post by m3henry »

I know, but during that speight of crashes, savegame lost, I was getting a lot of messages, so I couldnt keep track of all the trains that were getting stuck. then it would take two TTD months for the crash messages to come through.

This feature (if possible) would allow for user free reversal without having to re-reserve track
The occasional look back at your past can teach you a great many things...
Post Reply

Return to “Suggestions”

Who is online

Users browsing this forum: No registered users and 27 guests