YAPP - Yet Another PBS Patch (now in trunk!)

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Trond
Tycoon
Tycoon
Posts: 973
Joined: 25 Jan 2008 07:32
Location: Gamle Ørnenuten

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by Trond »

Yes, but Roujin just posted the patches, not a prebuildt version. thats what I meant :)

Isnt that correct? ?(
..: Trond :.. because you deserve it! Image

The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell

MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by Yexo »

Trond wrote:Yes, but Roujin just posted the patches, not a prebuildt version. thats what I meant :)

Isnt that correct? ?(
That's correct :)
Michi_cc
OpenTTD Developer
OpenTTD Developer
Posts: 619
Joined: 14 Jun 2004 23:27
Location: Berlin, Germany
Contact:

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by Michi_cc »

Version 5.2 is out, get it as usual from the last release post.

Changes:
  • Fixed invalid path reservation of reversing trains through one-way signals.
  • Better handling of spread out stations like the example from Rubidium. This has performance implications for very spread out stations, but for typical stations the performance loss is insignificant.
  • Better protection of reserved station tiles from being overbuilt. (Still not perfect, but much better than before.)
-- Michael Lutz
-- Michael Lutz
MrMox
Transport Coordinator
Transport Coordinator
Posts: 260
Joined: 22 Mar 2007 07:51
Location: Denmark
Contact:

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by MrMox »

The Win32 BuildOTTD version with YAPP 5.2:
r12622 contains a small problem with nonstop orders mentioned here. This version is the same as the one above, with Rubidium's fix incorporated. Use this if you play with "TTDPatch compatible nonstop handling" set to on.
trunk_r12622_yapp_r12622_v5_2_svn.patch_08-04-2008_19-11-14.zip
Rubidium's fix included.
(2.87 MiB) Downloaded 185 times
Last edited by MrMox on 08 Apr 2008 17:27, edited 1 time in total.
User avatar
Two5Kid
Chief Executive
Chief Executive
Posts: 654
Joined: 26 Feb 2007 07:10
Location: Kota Bharu, Malaysia

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by Two5Kid »

You're a godsend MrMox, too bad I'm at work, will be downloading this latest patch soon, real soon!
Any dream worth having,
Is a dream worth fighting for!
patter
Engineer
Engineer
Posts: 125
Joined: 07 Apr 2007 13:42
Contact:

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by patter »

Michi_cc wrote:Version 5.2 is out, get it as usual from the last release post.
-- Michael Lutz
We're not worthy! We're not worthy!

Thanks for bringing back the best patch into openttd, looks like I have to recompile but hey I wasn't planning to do anything tonight :)
Progman
Engineer
Engineer
Posts: 76
Joined: 15 Jul 2006 12:55
Contact:

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by Progman »

Code: Select all

openttd: /home/progman/openttd/trunk/src/yapf/yapf_base.hpp:272: void
CYapfBaseT<Types>::AddNewNode(typename Types::NodeList::Titem&, const typename Types::TrackFollower&)
[with Types = CYapfRail_TypesT<CYapfRail2, CFollowTrackT<TRANSPORT_BEGIN, false, false>,
CNodeList_HashTableT<CYapfRailNodeT<CYapfNodeKeyTrackDir>, 12, 16>, CYapfDestinationTileOrStationRailT,
CYapfFollowRailT>]: Assertion `0' failed.
Aborted
Tested with 5.2 on r12622 loaded with a 5.1 game (see attachement)
Attachments
crash.sav
Crash at 11. Sep
(275.07 KiB) Downloaded 148 times
beefsack
Engineer
Engineer
Posts: 8
Joined: 05 Apr 2008 00:21
Location: Canberra, Australia
Contact:

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by beefsack »

Thanks a million Michi_cc you are an absolute legend :)
Trond
Tycoon
Tycoon
Posts: 973
Joined: 25 Jan 2008 07:32
Location: Gamle Ørnenuten

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by Trond »

Progman wrote:(see attachement)
it's 9/11... :wink:
..: Trond :.. because you deserve it! Image

The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell

MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
Haiya-Dragon
Engineer
Engineer
Posts: 52
Joined: 22 Nov 2002 17:10
Location: Uden, The Netherlands

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by Haiya-Dragon »

Progman wrote:

Code: Select all

openttd: /home/progman/openttd/trunk/src/yapf/yapf_base.hpp:272: void
CYapfBaseT<Types>::AddNewNode(typename Types::NodeList::Titem&, const typename Types::TrackFollower&)
[with Types = CYapfRail_TypesT<CYapfRail2, CFollowTrackT<TRANSPORT_BEGIN, false, false>,
CNodeList_HashTableT<CYapfRailNodeT<CYapfNodeKeyTrackDir>, 12, 16>, CYapfDestinationTileOrStationRailT,
CYapfFollowRailT>]: Assertion `0' failed.
Aborted
Tested with 5.2 on r12622 loaded with a 5.1 game (see attachement)
Got the same assert also with a 5.1 game loaded in a 5.2 patch version. Reloading it in 5.1 gave no problems. I can post a savegame if you wish, but it's an extended network multiplayer game with a ton of newGRF loaded, so that's probably not too practical.
oldgeek
Engineer
Engineer
Posts: 1
Joined: 09 Apr 2008 20:54

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by oldgeek »

Code: Select all

~/OpenTTD/r12622/trunk $ make run
make[1]: Entering directory `/home/norman/OpenTTD/r12622/trunk/objs/lang'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/norman/OpenTTD/r12622/trunk/objs/lang'
make[1]: Entering directory `/home/norman/OpenTTD/r12622/trunk/objs/release'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/norman/OpenTTD/r12622/trunk/objs/release'
openttd: /home/norman/OpenTTD/r12622/trunk/src/yapf/yapf_base.hpp:272: void CYapfBaseT<Types>::AddNewNode(typename Types::NodeList::Titem&, const typename Types::TrackFollower&) [with Types = CYapfRail_TypesT<CYapfRail1, CFollowTrackT<TRANSPORT_BEGIN, true, false>, CNodeList_HashTableT<CYapfRailNodeT<CYapfNodeKeyTrackDir>, 12, 16>, CYapfDestinationTileOrStationRailT, CYapfFollowRailT>]: Assertion `0' failed.
/bin/sh: line 1: 32677 Aborted                 ./openttd
make: *** [run] Error 134

Another crash with 5.2 on r12622 loaded with a 5.1 game (see attachement)
Attachments
Crash.sav
(493.53 KiB) Downloaded 157 times
MrMox
Transport Coordinator
Transport Coordinator
Posts: 260
Joined: 22 Mar 2007 07:51
Location: Denmark
Contact:

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by MrMox »

Yet Another Unofficial Build of YAPP 5.2 ...

I updated the patch file so that it works with r12651. This in order to get the fix for the problems with non-stop orders mentioned here. Notice that save-games from versions build with r12622 won't work with this version.

Have fun :D
elmex
Engineer
Engineer
Posts: 16
Joined: 24 May 2007 23:01

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by elmex »

Thanks for the patch! I wouldn't want to play without it anymore :) Keep up the good work!
User avatar
vwspeedracer
Engineer
Engineer
Posts: 28
Joined: 31 Mar 2008 01:37
Location: Colchester, VT, USA
Contact:

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by vwspeedracer »

MrMox wrote:Yet Another Unofficial Build of YAPP 5.2 ...

I updated the patch file so that it works with r12651. This in order to get the fix for the problems with non-stop orders mentioned here. Notice that save-games from versions build with r12622 won't work with this version.

Have fun :D
trunk_r12651_yapp_r12622_v5_2_svn.patch_10-04-2008_18-37-32.zip
Could we get Yet Another Unofficial Patch of Yet Another PBS Patch? I'd to build it on my Mac. :)
Fan of: Image
MrMox
Transport Coordinator
Transport Coordinator
Posts: 260
Joined: 22 Mar 2007 07:51
Location: Denmark
Contact:

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by MrMox »

Sure, here it is:
yapp_r12622_v5_2_svn.patch
(194.46 KiB) Downloaded 179 times
I've used this patch file to build a version with r12660 and haven't found any problems so far after playing for several hours. It may work for even newer versions but I haven't tried that.
User avatar
vwspeedracer
Engineer
Engineer
Posts: 28
Joined: 31 Mar 2008 01:37
Location: Colchester, VT, USA
Contact:

Re: YAPP - Yet Another PBS Patch (New version 5 out!)

Post by vwspeedracer »

Brilliant, thanks!
Fan of: Image
Michi_cc
OpenTTD Developer
OpenTTD Developer
Posts: 619
Joined: 14 Jun 2004 23:27
Location: Berlin, Germany
Contact:

Re: YAPP - Yet Another PBS Patch (New version 6 out!)

Post by Michi_cc »

Guess what, trunk had another savegame bump, so you're getting version 6 now.

Changes:
  • Removed the previous changes for spread-out stations, as they were causing asserts. Instead reserved station tiles now have a bigger penalty, you can control the factor which the base penalty for reserved tiles is multiplied by with yapf.rail_pbs_cross_st_factor. This also helps with spread-out stations, even though this solution is not perfect, but it actually works.
  • Updated for the order changes in trunk.
  • 6.1: Fixed some problems with lost trains.
  • 6.2: Auto-signal would sometimes not copy the signal type.
No other new features present.

-- Michael Lutz
Attachments
yapp_r12810_v6_2_svn.patch
SVN diff
(197.96 KiB) Downloaded 574 times
yapp_r12810_v6_2.patch
git diff
(205.2 KiB) Downloaded 166 times
Last edited by Michi_cc on 20 Apr 2008 22:38, edited 4 times in total.
-- Michael Lutz
MrMox
Transport Coordinator
Transport Coordinator
Posts: 260
Joined: 22 Mar 2007 07:51
Location: Denmark
Contact:

Re: YAPP - Yet Another PBS Patch (New version 6 out!)

Post by MrMox »

The Win32 BuildOTTD version with YAPP 6.0:
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: YAPP - Yet Another PBS Patch (New version 6 out!)

Post by pavel1269 »

I just play with this patch with friends and i must say ... GREAT! :bow:
User avatar
Roest
Traffic Manager
Traffic Manager
Posts: 215
Joined: 03 Apr 2008 08:18

Re: YAPP - Yet Another PBS Patch (New version 6 out!)

Post by Roest »

I merged it with copy&paste for anyone interested.
Attachments
yapp_copypaste_r12701.patch
(320.33 KiB) Downloaded 224 times
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 16 guests