YAPP - Yet Another PBS Patch (now in trunk!)
Moderator: OpenTTD Developers
Re: YAPP - Yet Another PBS Patch
Thanks. I will remove the code from my previous message as it is rather untidy, but keep it somewhere in case it is important. How long does that usually take?
Re: YAPP - Yet Another PBS Patch
Took approx 10min on my computer but it depends on your hardware configuration.
Re: YAPP - Yet Another PBS Patch
Well its been going about 20 mins so far. Hopefully it wont take much longer.
Re: YAPP - Yet Another PBS Patch
Hi,
cu
Rainer
so as a dumb user I very strongly wish that the GUI checks that rule already and doesn't allow me to place an illegal signal - at least in "Beginner" mode.Michi_cc wrote:Together this means that the entry signals into a block should only be of one kind, either normal or pbs, but not both at the same time. Secondly, only use one-way pbs signals as block exit signals for a block which has normal entry signals so no train can enter the block without being seen by the normal signals.
cu
Rainer
Re: YAPP - Yet Another PBS Patch
Development isn't finished, so changes in this area are still possible.Rainer wrote: so as a dumb user I very strongly wish that the GUI checks that rule already and doesn't allow me to place an illegal signal - at least in "Beginner" mode.
As a beginner the most sensible way is just not mix signal types. The only place where mixing is needed from a functional point of view is when upgrade a network piece by piece and not a once. All other things shouldn't need mixing of signals. But anyway, suggestions for a good way to handle mixed signal situations which don't cause performance problems are welcome.
-- Michael Lutz
-- Michael Lutz
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: YAPP - Yet Another PBS Patch
Looks like a nice and good piece of work so far .Michi_cc wrote: As a beginner the most sensible way is just not mix signal types. The only place where mixing is needed from a functional point of view is when upgrade a network piece by piece and not a once. All other things shouldn't need mixing of signals. But anyway, suggestions for a good way to handle mixed signal situations which don't cause performance problems are welcome.
As pointed out earlier, IMO a good position to take is to treat either
-only pieces of tracks which are entirely surrounded by the PBS algorithm and consider entry signals on those pieces with mixed signaling consistantly as normal signals
- consider for mixed track sections the normal signals as additional PBS entry signals and thus treat the trains accordingly.
I have to agree with peter that even the most weired signaling should in worst case only lead to stop all trains - but it shouldn't have trains crash. Excempt are of course those situations where the user actively messes around with the signaling (e.g. changes, adds or removes signals while trains use the track).
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: YAPP - Yet Another PBS Patch
At the moment a certain way to crash trains into each other is to include waypoint stations in a PBS block. The route is only reversed till the end of the station tile, but not past the station. The result are a lot of crashes.
I don't think waypoint tiles should be 'safepoints' since they don't have any way to hold trains. I haven't tried stations yet, but in my opinion a station is never a 'safe point' at the end of a reserved block, unless there is a signal at the tile behind the platform.
I don't think waypoint tiles should be 'safepoints' since they don't have any way to hold trains. I haven't tried stations yet, but in my opinion a station is never a 'safe point' at the end of a reserved block, unless there is a signal at the tile behind the platform.
Re: YAPP - Yet Another PBS Patch
Hi,
cu
Rainer
This leads me to the conclusion that the only safepoints are signals and depots.broodje wrote:I don't think waypoint tiles should be 'safepoints' since they don't have any way to hold trains.
cu
Rainer
Re: YAPP - Yet Another PBS Patch
Wow - great patch!
But there is a bug when using a waypoint: The red train has an order to go to the waypoint and only reserves the tiles before the waypoint in the block, therefore crashing with the blue train.
(this only works if the train has got an order to go to the waypoint)
And i really like the idea of stations with built-in signals on all ends that lead to a pbs-block. That would save much space.
Oh, and all signals are only green for a very short period ... couldn't they stay green until the whole train passed them? It doesn't look very nice this way ...
But there is a bug when using a waypoint: The red train has an order to go to the waypoint and only reserves the tiles before the waypoint in the block, therefore crashing with the blue train.
(this only works if the train has got an order to go to the waypoint)
And i really like the idea of stations with built-in signals on all ends that lead to a pbs-block. That would save much space.
Oh, and all signals are only green for a very short period ... couldn't they stay green until the whole train passed them? It doesn't look very nice this way ...
Re: YAPP - Yet Another PBS Patch
In real life, they turn to red a few seconds afeter the loc. is passed, so it seems more realistic that way.Buhmann wrote: Oh, and all signals are only green for a very short period ... couldn't they stay green until the whole train passed them? It doesn't look very nice this way ...
about graphics: I tought that you could use de one way pbs signal for one way only track and the pass-trough pbs from the patch for the two way tracks.
Great patch, hope to see it soon in trunk.
Re: YAPP - Yet Another PBS Patch
Station platforms will also be "real" safepoints if train's aren't allowed to start moving again without clearance. The patch author has already announced that he may introduce this.Rainer wrote:This leads me to the conclusion that the only safepoints are signals and depots.
Re: YAPP - Yet Another PBS Patch
If this feature will be introduced, please make it optional.
Personally, I'd prefer routes set only from signal to signal (or depot).
First, because it's unrealistic. Every station exit needs its own signal - From where else would trains know whether their path was free?
Second, because if every station had its own built-in signals, deadlocks could occur:
(Edit: englis = wery hard languag)
Personally, I'd prefer routes set only from signal to signal (or depot).
First, because it's unrealistic. Every station exit needs its own signal - From where else would trains know whether their path was free?
Second, because if every station had its own built-in signals, deadlocks could occur:
(Edit: englis = wery hard languag)
- Attachments
-
- Without signals on the single track, a train *should* reserve a complete path from one terminus to the other.
Because it doesn't (Think of the signals as being integrated into the station), the two trains starting at the same time create a deadlock. - deadlock_demo.png (40.46 KiB) Viewed 4740 times
- Without signals on the single track, a train *should* reserve a complete path from one terminus to the other.
Re: YAPP - Yet Another PBS Patch
Someone, please post some builds with the patch for the unlucky users with Vista...
Re: YAPP - Yet Another PBS Patch
Don't forget that you can still compile with Vista - http://wiki.openttd.org/index.php/Micro ... s_EditionsScay wrote:Someone, please post some builds with the patch for the unlucky users with Vista...
-
- Engineer
- Posts: 40
- Joined: 29 Apr 2005 06:09
- Location: Santa Clara, USA
- Contact:
Re: YAPP - Yet Another PBS Patch
Lovely patch.
Long have I been waiting for a PBS for OTTD (to along with diagonal bridges to create compact networks).
While it is not the old PBS, I love the new implementation of the signalling system. It is simple and elegant.
While it seems counter intuitive in the beginning, it is slowly starting to make sense.
I am going to have to rework certain types of stations I am so used to. That should probably help in debugging.
Hopefully this patch makes it to the trunk.
Long have I been waiting for a PBS for OTTD (to along with diagonal bridges to create compact networks).
While it is not the old PBS, I love the new implementation of the signalling system. It is simple and elegant.
While it seems counter intuitive in the beginning, it is slowly starting to make sense.
I am going to have to rework certain types of stations I am so used to. That should probably help in debugging.
Hopefully this patch makes it to the trunk.
Talent does what it can.
Genius What it must
Genius What it must
Re: YAPP - Yet Another PBS Patch
I've noticed a small problem. If you set your signals to 'advanced by default' and allow the cycle through advanced signals only but don't turn off the signal toolbar you always get the simple signal and control-click doesn't cycle the signal at all.
Re: YAPP - Yet Another PBS Patch
Here comes a compiled version, compiled and working under win xp... Install over a nightly around the patch version, e.g. 12069...
Hope that works...
Hope that works...
Last edited by peter1138 on 07 Feb 2008 08:09, edited 2 times in total.
Reason: Do NOT post archives containing copyrighted material without authorisation from the copyright holder
Reason: Do NOT post archives containing copyrighted material without authorisation from the copyright holder
Re: YAPP - Yet Another PBS Patch
Sure, but this means a lot of installing and making sure it works. The benefit of BuildOTTD is not available, so if someone does make a build using it, please post a copy of the necessary files here so it's possible to try it out. I actually tried installing everything necessary to compile it on Vista once, but was to much work to get going. Tried BuildOTTD on my previous XP install and it was much nicer! Just asking for some help to try out this patch, thanks anyway though, appreciated!YukonRob wrote:Don't forget that you can still compile with Vista - http://wiki.openttd.org/index.php/Micro ... s_EditionsScay wrote:Someone, please post some builds with the patch for the unlucky users with Vista...
Re: YAPP - Yet Another PBS Patch
Timitry wrote:Here comes a compiled version, compiled and working under win xp... Install over a nightly around the patch version, e.g. 12069...
Hope that works...
Thanks, gonna try it right away!
Last edited by peter1138 on 07 Feb 2008 08:07, edited 1 time in total.
Reason: Removal of copyright infringing link
Reason: Removal of copyright infringing link
Re: YAPP - Yet Another PBS Patch
Hi guys. I tried to compile this patch using BuildOTTD but it has been running for about 100mins and hasnt finished yet. Any chance someone could post a .zip for it? I cannot open .rars. Thanks in advance.
Who is online
Users browsing this forum: No registered users and 43 guests