Patch : Town growth based on passenger/mails/goods

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

Post Reply
User avatar
Gedemon
Traffic Manager
Traffic Manager
Posts: 150
Joined: 29 Apr 2004 21:53

Patch : Town growth based on passenger/mails/goods

Post by Gedemon »

A small patch that slow down town growth if there aren't enough passengers, mails and goods transported relatively to it's size.

v0.2 :

- Use food and water ratio in arctic and tropical map.
- Show what is most needed in town's window
- v0.1 Fix : overflowing town with goods can no longer give a bonus.

link to win32 build
r12781_town_growth_need_goods_v0.2.patch
Town Growth v0.2 / r12781
(15.22 KiB) Downloaded 373 times
-------
v0.1 :

when activated, the patch use basic openttd growth, but it also checks 3 numbers :
1/ Maximum town size without goods
2/ Ratio of town's monthly max passenger/mail and the number of created passenger/mail in stations
3/ Ratio of town's monthly max passenger/mail and the number of goods transported to the town

the 2 and 3 are used as factor to slow down town growth. 2 is always checked, 3 only if maximum town size is reached.

available settings :
town growth based on passenger/mails/goods (ON/OFF)
max town size before needing goods to growth (1000-15000)
max slowdown factor (2-25)

I've also included a modified version of this patch by pheeror.

It shows the town growth rate (relative to original max value, without fund building activated) in town's windows.
Attachments
Unnamed, 31st Jul 1985.png
patch on, no transport
(198.63 KiB) Downloaded 190 times
Unnamed, 3rd Aug 1986.png
patch off, no transport
(202.95 KiB) Downloaded 159 times
Last edited by Gedemon on 19 Apr 2008 01:52, edited 2 times in total.
User avatar
Gedemon
Traffic Manager
Traffic Manager
Posts: 150
Joined: 29 Apr 2004 21:53

Re: Patch : Town growth based on passenger/mails/goods

Post by Gedemon »

screens
Attachments
Niddafeld Transport, 13th Feb 1987.png
patch off, small transport
(186.74 KiB) Downloaded 167 times
Niddafeld Transport, 18th Sep 1987.png
patch on, small transport
(191.75 KiB) Downloaded 154 times
Niddafeld Transport, 8th Apr 1990.png
patch on, normal transport, but no goods transported and town size > 2000
(241.81 KiB) Downloaded 198 times
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Re: Patch : Town growth based on passenger/mails/goods

Post by PouncingAnt »

Nice to see some more patches related to enhancing the economic gameplay. I'm compiling now :)
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
User avatar
prissi
Chief Executive
Chief Executive
Posts: 648
Joined: 15 Nov 2004 19:46
Location: Berlin, Germany
Contact:

Re: Patch : Town growth based on passenger/mails/goods

Post by prissi »

Well, I tried something similar with cutting off. However, cutting off will happen automatically, since the generated number increases while transported number does not. (see http://www.tt-forums.net/viewtopic.php? ... own+growth with diagrams)
I like to look at great maps and see how things flow. A little like a finished model railway, but it is evolving and actually never finished. http://www.simutrans.com
8h
Engineer
Engineer
Posts: 7
Joined: 20 May 2007 13:26

Re: Patch : Town growth based on passenger/mails/goods

Post by 8h »

would you mind to submit your patch to Community Integrated Version?

Id like to try it out but am not able to compile it
User avatar
Gedemon
Traffic Manager
Traffic Manager
Posts: 150
Joined: 29 Apr 2004 21:53

Re: Patch : Town growth based on passenger/mails/goods

Post by Gedemon »

prissi wrote:Well, I tried something similar with cutting off. However, cutting off will happen automatically, since the generated number increases while transported number does not. (see http://www.tt-forums.net/viewtopic.php? ... own+growth with diagrams)
yes, that a very similar patch. And I need diagrams too :mrgreen:

maybe I'll run some test games from a common save but different patch values...
8h wrote:would you mind to submit your patch to Community Integrated Version?

Id like to try it out but am not able to compile it
Here's a win32 binary to test.

I'll like to submit it to Community Integrated Version, but it may need a few tunning before. So go on, test it :wink:


edit : binary v0.2
Attachments
TownGrowthWin32.rar
Town Growth patch v0.2 Win32
(1.92 MiB) Downloaded 226 times
Last edited by Gedemon on 19 Apr 2008 01:51, edited 1 time in total.
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Re: Patch : Town growth based on passenger/mails/goods

Post by PouncingAnt »

I've been giving it some test playing. I really like how it works, but I still think population growth may be a bit too easy before the max pop. before goods needed limit.

I'll give it some more testing, maybe I'll change my mind, but either way, its a nice patch :)
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
Youri219
Traffic Manager
Traffic Manager
Posts: 191
Joined: 28 Apr 2007 11:53

Re: Patch : Town growth based on passenger/mails/goods

Post by Youri219 »

Very interesting patch. How does this affect food and water?
User avatar
Gedemon
Traffic Manager
Traffic Manager
Posts: 150
Joined: 29 Apr 2004 21:53

Re: Patch : Town growth based on passenger/mails/goods

Post by Gedemon »

Youri219 wrote:Very interesting patch. How does this affect food and water?
ATM food and water are not affected by the patch.

if the patch is activated, you'll need goods and food/water (in artic/desert) for town growth, but only the amount of goods will influence town growth.

but I can make the patch to manage food and water in the same way, if you think that should be done. :)
User avatar
Gedemon
Traffic Manager
Traffic Manager
Posts: 150
Joined: 29 Apr 2004 21:53

Re: Patch : Town growth based on passenger/mails/goods

Post by Gedemon »

v0.2 done, see first post. :D

now you can see what is needed for town growth in it's windows.
Attachments
Screenshot of town windows
Screenshot of town windows
Neu Sonnenhorst Transport, 6th Sep 1993.png (222.75 KiB) Viewed 1083 times
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Amazon [Bot] and 11 guests