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]
'safe' PBS
Moderator: TTDPatch Moderators
'safe' PBS
The occasional look back at your past can teach you a great many things...
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/
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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
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
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
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
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...
Who is online
Users browsing this forum: No registered users and 27 guests