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

tneo
Engineer
Engineer
Posts: 58
Joined: 16 Apr 2007 07:41

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

Post by tneo »

Linux 64 bit version, for those interested. :)
Attachments
OTTD-linux-amd64-r13501M.tar.bz2
Linux 64 bit 13501M build
(2.57 MiB) Downloaded 158 times
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

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

Post by DaleStan »

FooBar wrote:I think the way it is now is just fine. It prevents you from doing stupid things in the first place, but if you really want to, you can still grab the old dynamite in order to get things done. This way it's relatively safe for the inexperienced users
Because inexperienced users don't use the dynamite tool? I think you're a bit confused here.

It was years before I figured what purpose that usually-disabled bulldozer tool served.
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
Aegir
Tycoon
Tycoon
Posts: 2884
Joined: 09 Feb 2004 10:02
Contact:

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

Post by Aegir »

DaleStan wrote:
FooBar wrote:I think the way it is now is just fine. It prevents you from doing stupid things in the first place, but if you really want to, you can still grab the old dynamite in order to get things done. This way it's relatively safe for the inexperienced users
Because inexperienced users don't use the dynamite tool? I think you're a bit confused here.

It was years before I figured what purpose that usually-disabled bulldozer tool served.
Good, so I wasn't the only person to take years to learn what the bulldozer was ;).
Currently working under the name 'reldred' on Github, and Discord.
NFO/NML coder, part-time patch writer for JGRPP, and all round belligerent.

14:40 <orudge> I can't say I discriminate against any particular user
14:41 <Aegir> orudge: I can!
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

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

Post by FooBar »

DaleStan wrote:It was years before I figured what purpose that usually-disabled bulldozer tool served.
Probably because you didn't RTM :wink:

Anyways, you're probably right somewhere, so maybe that 'do you want to continue'-asking dialog isn't too bad after all.

Or forbidding to remove reserved track by default, and only allow it after enabling a patch option.
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 8 out!)

Post by Michi_cc »

FooBar wrote: Or forbidding to remove reserved track by default, and only allow it after enabling a patch option.
How about using the magic bulldozer cheat for that? Reversing a train should always free the current reservation, but if YAPP really f*** up some situation the magic bulldozer would help to clean the mess. Can't use cheats in network games though, IIRC, so maybe not the best solution.

-- Michael Lutz
-- Michael Lutz
User avatar
Beardie
Tycoon
Tycoon
Posts: 2029
Joined: 12 Apr 2008 19:38
Skype: rbeardwell91
Location: Buckshaw Village, Lancashire, UK

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

Post by Beardie »

Hello wondering if anyone could help me i have used the patch and compiled it with v0.6.1 of OpenTTD using OTTDbuild. but when i come to look for any of the extra options in the configure patch menu it doesn't exist and does this patch include the PBS Signal GUI or do i get that separately, because that hasn't appeared either.

I am slightly confused by it all to be honest.
Previously Known As Beardie27
Check out my UPDATED! Screenshot Thread
Check out my Railway Photography and Deviant Account


Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

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

Post by DaleStan »

FooBar wrote:Probably because you didn't RTM
And, in your experience, users can be trusted to read the manual?

I want your users.
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
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

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

Post by FooBar »

Beardie27 wrote:compiled it with v0.6.1...
You shouldn't compile with 0.6.1, but with r13495. 0.6.1 is far too old to support the current YAPP.
DaleStan wrote:And, in your experience, users can be trusted to read the manual?
Users? No. You? Yes. :mrgreen:
But please notice that I've written that "you're probably right somewhere". That somewhere is "users in general".
User avatar
Beardie
Tycoon
Tycoon
Posts: 2029
Joined: 12 Apr 2008 19:38
Skype: rbeardwell91
Location: Buckshaw Village, Lancashire, UK

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

Post by Beardie »

FooBar wrote:
Beardie27 wrote:compiled it with v0.6.1...
You shouldn't compile with 0.6.1, but with r13495. 0.6.1 is far too old to support the current YAPP.
Right i have compiled it with the lastest trunk and i still don't get the extra options in the "Configure Patches" menu
Previously Known As Beardie27
Check out my UPDATED! Screenshot Thread
Check out my Railway Photography and Deviant Account


Image
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

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

Post by FooBar »

Latest trunk might be too new for latest YAPP. Try compiling with r13495 (i.e. check 'use revision to match patch' in BOTTD). If it then still doen't work, there's something horribly wrong.

In that case, attach whatever output BOTTD has given you, as that might reveal what may be broken.

Also, sometimes it's useful to flush BuildOTTD's source cache. Just press the 'Purge' button in the interface before compiling. Sometimes that's required if there are major changes in trunk.
User avatar
Beardie
Tycoon
Tycoon
Posts: 2029
Joined: 12 Apr 2008 19:38
Skype: rbeardwell91
Location: Buckshaw Village, Lancashire, UK

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

Post by Beardie »

Fixed it now, its the link on the first page of this topic that i used to download it, and i get a error were OTTDBuild doesn't like it but it says V8 werid? I donwloaded the from the link on this page instead it works now.

I would have the first page of the topic changed and fix it if i was you.
Previously Known As Beardie27
Check out my UPDATED! Screenshot Thread
Check out my Railway Photography and Deviant Account


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 8 out!)

Post by Michi_cc »

Beardie27 wrote:I would have the first page of the topic changed and fix it if i was you.
The patch available in the first post is a perfectly valid patch file. It's unfortunate that BuildOTTD doesn't like it, but that doesn't make it any less valid. I do provide an SVN-compatible patch file exactly for this reason.

-- Michael Lutz
-- Michael Lutz
User avatar
Beardie
Tycoon
Tycoon
Posts: 2029
Joined: 12 Apr 2008 19:38
Skype: rbeardwell91
Location: Buckshaw Village, Lancashire, UK

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

Post by Beardie »

ok, but i was just thinking about people who first come on to this topic
Previously Known As Beardie27
Check out my UPDATED! Screenshot Thread
Check out my Railway Photography and Deviant Account


Image
Mchl
Director
Director
Posts: 611
Joined: 05 Jan 2007 15:50
Location: Poland
Contact:

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

Post by Mchl »

Michi_cc: Maybe you should state explicitly, that BuildOTTD users should download SVN compatible patch?
User avatar
Beardie
Tycoon
Tycoon
Posts: 2029
Joined: 12 Apr 2008 19:38
Skype: rbeardwell91
Location: Buckshaw Village, Lancashire, UK

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

Post by Beardie »

Mchl wrote:Michi_cc: Maybe you should state explicitly, that BuildOTTD users should download SVN compatible patch?
I Think it has already been done now, Ty for that. Just don't want anyone to have the same problem as me.

Anyway just wondering why hasn't this patch been Incorporated into OpenTTD because i think it is one worth having it done.
Previously Known As Beardie27
Check out my UPDATED! Screenshot Thread
Check out my Railway Photography and Deviant Account


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 8 out!)

Post by Michi_cc »

Ammler wrote: Just for the logs, the assert we had so far:
src/pbs.cpp:137: void UnreserveRailTrack(TileIndex, Track): Assertion `(GetTileTrackStatus(tile, TRANSPORT_RAIL, 0) & TrakToTrackBits(t)) != 0' failed.
2x src/train_cmd.cpp:2431: void FreeTrainTrackReservation(const Vehicle*, TileIndex, Trackdir): Assertion `IsFrontEngine(v)' failed.
Having a savegame would certainly help... I especially don't have an idea how you managed to trigger that second assert. First one might be from demolishing some reserved tracks.

-- Michael Lutz
-- Michael Lutz
Mchl
Director
Director
Posts: 611
Joined: 05 Jan 2007 15:50
Location: Poland
Contact:

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

Post by Mchl »

Beardie27 wrote: Anyway just wondering why hasn't this patch been Incorporated into OpenTTD because i think it is one worth having it done.
Developers seem to have mixed feelings about it. They're thinking about it, but haven't made a decision yet (neither positive nor negative).

(At least that is what I know about the matter. I am in no way dev team's representative)
User avatar
Beardie
Tycoon
Tycoon
Posts: 2029
Joined: 12 Apr 2008 19:38
Skype: rbeardwell91
Location: Buckshaw Village, Lancashire, UK

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

Post by Beardie »

Mchl wrote:
Developers seem to have mixed feelings about it. They're thinking about it, but haven't made a decision yet (neither positive nor negative).
Well i would like to see it done, but were going to have to wait. :wink:
Previously Known As Beardie27
Check out my UPDATED! Screenshot Thread
Check out my Railway Photography and Deviant Account


Image
phil88
Transport Coordinator
Transport Coordinator
Posts: 267
Joined: 25 Jan 2007 23:26

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

Post by phil88 »

Mchl wrote:
Beardie27 wrote: Anyway just wondering why hasn't this patch been Incorporated into OpenTTD because i think it is one worth having it done.
Developers seem to have mixed feelings about it. They're thinking about it, but haven't made a decision yet (neither positive nor negative).

(At least that is what I know about the matter. I am in no way dev team's representative)
I'm not really sure what the negatives are of including it in trunk to be honest. It's not like it's an option that you HAVE to use, you can still use the regular old signals if you so please.

I think it would be a great idea if it was put in the trunk.
- Phil
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

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

Post by Rubidium »

phil88 wrote:I'm not really sure what the negatives are of including it in trunk to be honest. It's not like it's an option that you HAVE to use, you can still use the regular old signals if you so please.
One is using 10+% more CPU than a build without YAPP on a map with lots of trains that do not use YAPP signals. Progress is great, but does it warrant making OpenTTD run that much slower when you don't use the signals?

Another thing is the desync issue that some people mention. My current hypothesis is that this is a cache mismatch in YAPF between the client and the server. I haven't had the time to actually look into that though.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 4 guests