[Patchpack] r24122 + some patches v0.04a

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

handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

[Patchpack] r24122 + some patches v0.04a

Post by handrake »

Motivation
I wanted to enjoy all the features in the trunk with some awesome patches, so I took some time to create this patchpack. Thanks to all the OpenTTD developers and patch writers.

Download
Please download the binary and diff file from here. Alternatively, you can clone the project repository if that's what you'd prefer. All bugs should be reported as a reply to this post or even better as an issue to the project site. Please don't report bugs from this patchpack directly to Flyspray.

Because I don't personally play in MP, I have no guarantee this patchpack will always behave as expected, but there shouldn't be too many issues if server/clients all use this patchpack.

Any comments/suggestions are appreciated.

Changelog Patches in order of inclusion To-do
Last edited by handrake on 01 May 2012 01:57, edited 30 times in total.
MJS
Director
Director
Posts: 540
Joined: 28 Jul 2005 09:31

Re: [Patchpack] r24077 + some patches

Post by MJS »

Nice work, thanks!
User avatar
ffpp
Engineer
Engineer
Posts: 125
Joined: 29 Jan 2010 12:56

Re: [Patchpack] r24077 + some patches

Post by ffpp »

Hi handrake,

thanks for including me and good effort overall. I really like having CargoDist coupled with a separation patch.
I'm planning on releasing a newer version of my patch the next few days, including a whole bunch of improvements.

Are you going to maintain this project in the future ?
bremerjoe
Engineer
Engineer
Posts: 97
Joined: 24 May 2011 21:01

Re: [Patchpack] r24077 + some patches

Post by bremerjoe »

This looks like a very nice small patch collection. I have to admit that I do not like playing without some Cargo Distribution patch and as I have no idea about coding or even compiling I have to wait for people to publish nice precompiled patches. So thanks for publishing this one. Will try it out and it seems to be best suited for me as long as CPP gets updated to current trunk.
Everybody can contribute to OTTD! It does not require you to be an IT specialist or designer. And it does not take days or weeks of your time either.
There are many simple yet important tasks like translations, investigating facts and details and many other that need work and if you help a bit then the experienced developers can focus more on making OTTD even more awesome!
OTTD = Awesomeness created by a whole lot of volunteers, be one of them if you like the game!
handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

Re: [Patchpack] r24077 + some patches

Post by handrake »

ffpp wrote:Are you going to maintain this project in the future ?
I do intend to do that, but again, iff time permits :mrgreen:
User avatar
Lordmwa
President
President
Posts: 899
Joined: 20 May 2006 19:30
Location: West Sussex, England

Re: [Patchpack] r24077 + some patches

Post by Lordmwa »

Thanks A LOT, my own attempts were not working too well.....
The TT forums trivia tournament! Come along and join in the fun
http://www.funtrivia.com/private/main.cfm?tid=90722
User avatar
FLHerne
Tycoon
Tycoon
Posts: 1543
Joined: 12 Jul 2011 12:09
Location: St Ives, Cambs, UK

Re: [Patchpack] r24077 + some patches

Post by FLHerne »

As above, thanks :bow: . I was trying to do something similar, but didn't have enough experience with C++ to solve the various conflicts. Now I can use more recent GRFs :D .
Temporary Permanent signature filling text. Content coming soon delayed indefinitely! Oh, and I have had a screenshot thread.
Linux user (XMonad DWM/KDE, Arch), IRC obsessive and rail enthusiast. No longer building robots; now I ring church bells.
Author of an incredibly boring stickied post about NewGRFs.
User avatar
Lordmwa
President
President
Posts: 899
Joined: 20 May 2006 19:30
Location: West Sussex, England

Re: [Patchpack] r24077 + some patches

Post by Lordmwa »

If you were planning to update this the only other patch that i would strongly reccomend is a daylength patch im amazed how fast time goes without it!
The TT forums trivia tournament! Come along and join in the fun
http://www.funtrivia.com/private/main.cfm?tid=90722
handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

Re: [Patchpack] r24077 + some patches

Post by handrake »

Lordmwa wrote:If you were planning to update this the only other patch that i would strongly reccomend is a daylength patch im amazed how fast time goes without it!
I've looked at it but that patch is kind of old (6000 revisions!). I'll have a go at it in a few days. But again, no guarantees :)
handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

Re: [Patchpack] r24093 + some patches v0.02

Post by handrake »

Updated to r24093 and included day length patch. (See first post)
Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: [Patchpack] r24093 + some patches v0.02

Post by Supercheese »

Awesome! Gonna use this for the game I just started. 8)
More detailed feedback to come.
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
User avatar
ffpp
Engineer
Engineer
Posts: 125
Joined: 29 Jan 2010 12:56

Re: [Patchpack] r24093 + some patches v0.02b

Post by ffpp »

Suggestion: improved breakdowns patch :)
Though, I don't know how much work it takes to include it, I think it is out of maintenance for a while now.

Thanks for stitching it all together.
lostwizard
Engineer
Engineer
Posts: 4
Joined: 06 Apr 2012 03:07

Re: [Patchpack] r24093 + some patches v0.02b - patch fails

Post by lostwizard »

Let me start by saying, good job on the patch set so far.

I just tried applying version 0.02b to trunk r24093. It failed on src/station_gui.cpp and src/timetable_gui.cpp. It's not clear why though I can see the reject files show what appears to be a complete replacement of the files failing.

I'm running this on a linux system but that should not prevent things from working.
handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

Re: [Patchpack] r24093 + some patches v0.02b - patch fails

Post by handrake »

lostwizard wrote:Let me start by saying, good job on the patch set so far.

I just tried applying version 0.02b to trunk r24093. It failed on src/station_gui.cpp and src/timetable_gui.cpp. It's not clear why though I can see the reject files show what appears to be a complete replacement of the files failing.

I'm running this on a linux system but that should not prevent things from working.
Try deleting those two files. It may be the case where they exist but are untracked, thus preventing new files from getting generated. Alternatively, you can pull from my repo directly. It's probably easier that way.
Last edited by handrake on 06 Apr 2012 03:39, edited 1 time in total.
lostwizard
Engineer
Engineer
Posts: 4
Joined: 06 Apr 2012 03:07

Re: [Patchpack] r24093 + some patches v0.02b - patch fails

Post by lostwizard »

Try deleting those two files. It may be the case where they exist but untracked, thus preventing new files being generated. Alternatively, you can pull from my repo directly. It's probably easier that way.
Yeah, I had the same thought. I pulled the repo and set about building. It failed with

Code: Select all

...../src/aaa_template_vehicle_func.cpp:69:202: error: cast from ‘const Train*’ to ‘uint32 {aka unsigned int}’ loses precision
(and several other instances of the same error for other pointers)

Looks there is a problem with the code on 64 bit systems. It's dubious to cast a pointer to uint32 in general but it is certainly incorrect on 64 bit platforms. I'd be happy to help you further with this over email or private messaging (to save spamming the forum with it).
User avatar
ffpp
Engineer
Engineer
Posts: 125
Joined: 29 Jan 2010 12:56

Re: [Patchpack] r24093 + some patches v0.02b - patch fails

Post by ffpp »

lostwizard wrote:
Try deleting those two files. It may be the case where they exist but untracked, thus preventing new files being generated. Alternatively, you can pull from my repo directly. It's probably easier that way.
Yeah, I had the same thought. I pulled the repo and set about building. It failed with

Code: Select all

...../src/aaa_template_vehicle_func.cpp:69:202: error: cast from ‘const Train*’ to ‘uint32 {aka unsigned int}’ loses precision
(and several other instances of the same error for other pointers)

Looks there is a problem with the code on 64 bit systems. It's dubious to cast a pointer to uint32 in general but it is certainly incorrect on 64 bit platforms. I'd be happy to help you further with this over email or private messaging (to save spamming the forum with it).
Funny, this is from my patch and I looked into the piece of code pointed to by your error.
It is a little printf wrapper function where I didn't care for clean code because I use it only for development, not in the actual game and would have removed it later anyways, when developing the patch is finished.
I would be good if you could post or send me a list of all instances where this happens. Then I can see if it's really only those helper functions or if I have some unclean code somewhere else too.
handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

Re: [Patchpack] r24093 + some patches v0.02b - patch fails

Post by handrake »

ffpp wrote:
lostwizard wrote:
Try deleting those two files. It may be the case where they exist but untracked, thus preventing new files being generated. Alternatively, you can pull from my repo directly. It's probably easier that way.
Yeah, I had the same thought. I pulled the repo and set about building. It failed with

Code: Select all

...../src/aaa_template_vehicle_func.cpp:69:202: error: cast from ‘const Train*’ to ‘uint32 {aka unsigned int}’ loses precision
(and several other instances of the same error for other pointers)

Looks there is a problem with the code on 64 bit systems. It's dubious to cast a pointer to uint32 in general but it is certainly incorrect on 64 bit platforms. I'd be happy to help you further with this over email or private messaging (to save spamming the forum with it).
Funny, this is from my patch and I looked into the piece of code pointed to by your error.
It is a little printf wrapper function where I didn't care for clean code because I use it only for development, not in the actual game and would have removed it later anyways, when developing the patch is finished.
I would be good if you could post or send me a list of all instances where this happens. Then I can see if it's really only those helper functions or if I have some unclean code somewhere else too.
I just got rid of all the printfs in that file and everything was fine.
lugo
Engineer
Engineer
Posts: 100
Joined: 12 Oct 2010 13:55

Re: [Patchpack] r24093 + some patches v0.02b

Post by lugo »

is the version on your site for 32-bit or 64-bit systems? (openttd-handrake-patchpack-r24093-v0.02b.zip)

edit: thanks for your efforts btw! :)
handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

Re: [Patchpack] r24093 + some patches v0.02b

Post by handrake »

lugo wrote:is the version on your site for 32-bit or 64-bit systems? (openttd-handrake-patchpack-r24093-v0.02b.zip)

edit: thanks for your efforts btw! :)
32-bit
AndiK
Engineer
Engineer
Posts: 53
Joined: 07 Dec 2004 18:34
Location: Grafing bei München (Munich)
Contact:

Re: [Patchpack] r24093 + some patches v0.02b

Post by AndiK »

Downloading right now. I've been working on a smallish patch pack for a few friends and myself, but yours renders mine quite redundant. Thanks for the effort (and for giving my patch a chance in a pack ^_^).
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 6 guests