Patch: Cities
Moderator: OpenTTD Developers
Patch: Cities
This patch is now in Trunk
Hey,
I have created a patch that makes a user-definable number of 'cities', towns with large populations. You can also customize how much larger the cities is (by a multiplier)
I have tested this patch and it appears to work quite well.
This patch has been compiled against the latest nightly I could find. (rev 9666)
Could this patch please be considered for integration with OpenTTD?
Josh
Edit:
v2
Just put up the latest version of the patch, fixes an issue with towns that are 64x64.
Now, if the number of towns is less than or equal to 2, no cites will be created.
If the number of towns is less than or equal to 4, only one city will be created.
v3
Merged with some other city work
Hey,
I have created a patch that makes a user-definable number of 'cities', towns with large populations. You can also customize how much larger the cities is (by a multiplier)
I have tested this patch and it appears to work quite well.
This patch has been compiled against the latest nightly I could find. (rev 9666)
Could this patch please be considered for integration with OpenTTD?
Josh
Edit:
v2
Just put up the latest version of the patch, fixes an issue with towns that are 64x64.
Now, if the number of towns is less than or equal to 2, no cites will be created.
If the number of towns is less than or equal to 4, only one city will be created.
v3
Merged with some other city work
- Attachments
-
- cities.3.patch
- The very latest version of the patch
- (11.52 KiB) Downloaded 224 times
Last edited by TheJosh on 18 Apr 2007 14:28, edited 5 times in total.
Re: Patch: Cities
I think you have to submit it for review somewhere... maybe through the flyspray bug-reporting system but Im not entirely sure.TheJosh wrote:Could this patch please be considered for integration with OpenTTD?
Welcome to the forum.

- Born Acorn
- Tycoon
- Posts: 7597
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
This patch creates a number of large towns at level generation time.
Also, i have discovered a bug, I recommend you don't try this on a 64x64 town, with a 'number of cities' set to something above 1...
I will release a version in a few hours that fixes that problem.
Here is a screenshot, notice the three towns with larger populations, yet it is only 1950
Also, i have discovered a bug, I recommend you don't try this on a 64x64 town, with a 'number of cities' set to something above 1...
I will release a version in a few hours that fixes that problem.
Here is a screenshot, notice the three towns with larger populations, yet it is only 1950
- Attachments
-
- Screenshot showing three large towns even though it is only 1950. As you can also see, the number of cities, and how much bigger they are is all customizable.
- cities_patch_screenshot.png (32.6 KiB) Viewed 6879 times
-
- Tycoon
- Posts: 11501
- Joined: 20 Sep 2004 22:45
Josh, well done! And only a handful of posts! Keep up this record and you'll be everyones new best friend! 
Great work.
I assume Josh got this in through good coding and also, the fact that he has done so many changes in the few days. It shows enthusiasm and I personally think that is a vital attribute!

Great work.
I assume Josh got this in through good coding and also, the fact that he has done so many changes in the few days. It shows enthusiasm and I personally think that is a vital attribute!

Who is online
Users browsing this forum: No registered users and 1 guest