City growth
Moderator: OpenTTD Developers
-
- Engineer
- Posts: 70
- Joined: 22 Dec 2002 09:38
City growth
City Growth in OpenTTD is not so good. Just like the original. Maximum population seems to be about 5.000 citizens.
In TTD Patch, there are a number of switches, that makes it possible to manipulate the City Growth.
These switches are located in the file ttdpatch.cfg.
Can we use those switches in the file openttd.cfg, or are there other possiblities to manipulate the City Growth.
In TTD Patch, there are a number of switches, that makes it possible to manipulate the City Growth.
These switches are located in the file ttdpatch.cfg.
Can we use those switches in the file openttd.cfg, or are there other possiblities to manipulate the City Growth.
I think you guys are too spoiled 
I my time where there were no town-growth modificators you could still get 10.000 towns with hard work, even in arctic, above the snowline

I my time where there were no town-growth modificators you could still get 10.000 towns with hard work, even in arctic, above the snowline

TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
Hmm, how the hell did you do that ?Darkvater wrote:I think you guys are too spoiled
I my time where there were no town-growth modificators you could still get 10.000 towns with hard work, even in arctic, above the snowline

Anyway, with town growth settings in ttdpatch you can get much more than 10k

-
- Engineer
- Posts: 96
- Joined: 04 May 2004 20:36
- Location: Portland, TX
there is no 5k limit.Tech^salvager wrote:Is there going to be modifcations later in the game to let it go over the 5k limit?
Creator of the Openttd Challenge Spinoff, Town Demand patch
After action reports: The path to riches, A dream of skyscrapers
After action reports: The path to riches, A dream of skyscrapers
in fact, there's a scenario with a town that has 1 million inhabitants
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
FYI, those huge cities are TTDPatch, not OTTD.
Regarding OTTD, let's see how does this town growth work: except the details like checking food/water in certain landscapes or funding new commercial buildings, there are two basic parameters - number of houses and number of stations in inner city radius. The population doesn't come into play, the size is always counted by number of houses. Based on this number, the diameter of inner city radius changes.
Now, regarding the inner city radius, it's the central part of city, few tiles in diameter - for the smallest cities, it's 2 tiles, for the largest possible cities it's 9 tiles. Everytime OTTD checks the city growth rate (once per month), it counts all the stations in the inner city radius - if there're no stations, there's a chance of about 1:12 that it will build a house - this means one house per year on average, not very impressive.
If there are any stations in the radius, it will always try to build a house, but it can take up to 210 ticks with one station. With 5 and more stations it builds a house once per 50 ticks, which is roughly once per two months. Note that it counts only recently serviced stations (in the last 20 ticks).
And that's all what counts! The number of recently serviced stations in the inner city radius. It doesn't matter what do you transport there, how much of it and what your ratings are, the important thing is to have at least 5 stations in the inner city radius and service them frequently.
Now, there are three catches:
Regarding OTTD, let's see how does this town growth work: except the details like checking food/water in certain landscapes or funding new commercial buildings, there are two basic parameters - number of houses and number of stations in inner city radius. The population doesn't come into play, the size is always counted by number of houses. Based on this number, the diameter of inner city radius changes.
Now, regarding the inner city radius, it's the central part of city, few tiles in diameter - for the smallest cities, it's 2 tiles, for the largest possible cities it's 9 tiles. Everytime OTTD checks the city growth rate (once per month), it counts all the stations in the inner city radius - if there're no stations, there's a chance of about 1:12 that it will build a house - this means one house per year on average, not very impressive.
If there are any stations in the radius, it will always try to build a house, but it can take up to 210 ticks with one station. With 5 and more stations it builds a house once per 50 ticks, which is roughly once per two months. Note that it counts only recently serviced stations (in the last 20 ticks).
And that's all what counts! The number of recently serviced stations in the inner city radius. It doesn't matter what do you transport there, how much of it and what your ratings are, the important thing is to have at least 5 stations in the inner city radius and service them frequently.
Now, there are three catches:
- The inner city radius for 72 houses is 9. But for 73 and more houses, it is 0! This means that such a city grows as fast as a city with no stations at all, that is on average one building per year. So the basic limitation is 72 houses per city. If you would have all the houses the biggest possible buildings with population of 250, you could have 18000 people, but that'd be very hard to do. The practical maximums are about the 5000-6000, unless you are lucky or manage the city carefully, destroying too small buildings.
- The growth is linear, that means a small city grows as fast as a huge city. In practice a rather fast growth rate of small city seems superslow for a big city.
- OTTD doesn't search for more than 20 steps from the city center for sites for new buildings - this limits practical land area to a radius of less than 20 tiles (because it walks along the roads).
The flush toilet is the basis of Western civilization. -- Alan Coult
-
- Engineer
- Posts: 70
- Joined: 22 Dec 2002 09:38
-
- Engineer
- Posts: 96
- Joined: 04 May 2004 20:36
- Location: Portland, TX
City Growth
Hi,
I read the topic above, and created a city with just 5 bus stations.
Then I bought a bus and let them drive through these 5 stations.
The city really grows veryf wel. But just until the limit of about 4000 to 5000 citizens.
I did download the patch, because i like to test it.
But now that i have downloaded the patch, I do not know, how to proceed.
I understand, that I have to compile the file, but also that file get to be integrated into the program.
I know nothing of compiling. Is there someone who can help me, so that I can compile and test the game?
Thanks in advance.
I read the topic above, and created a city with just 5 bus stations.
Then I bought a bus and let them drive through these 5 stations.
The city really grows veryf wel. But just until the limit of about 4000 to 5000 citizens.
I did download the patch, because i like to test it.
But now that i have downloaded the patch, I do not know, how to proceed.
I understand, that I have to compile the file, but also that file get to be integrated into the program.
I know nothing of compiling. Is there someone who can help me, so that I can compile and test the game?
Thanks in advance.
When patching svn 913, I get this error:Testers wanted for the patch - please look for pathological behavious (as described in the patch) and I'd be interested how big city would you manage to grow with the patch
Code: Select all
patching file town_cmd.c
Hunk #2 succeeded at 650 (offset 7 lines).
Hunk #3 succeeded at 752 (offset 7 lines).
Hunk #4 succeeded at 1586 (offset 22 lines).
Hunk #5 FAILED at 1606.
1 out of 5 hunks FAILED -- saving rejects to file town_cmd.c.rej
- Attachments
-
- town_cmd.c.rej.txt
- (999 Bytes) Downloaded 259 times
"Set fashion, not follow. Spit vitriol, not swallow" - Marilyn Manson
Despite the previous problem I was able to compile the growtown patch and it seems to work fine, so I made a scenario to see how big a town I could create. The result was a town with a population of 2.7 million! (see below, I had to change the extension-scn isn't allowed)
I noticed a couple of bugs with the patch, the most notable being the max mail & passengers only reaches about 32,000 then resets to -32,000 then counts up. The other bug is large building are created on the outskirts of the city.
I noticed a couple of bugs with the patch, the most notable being the max mail & passengers only reaches about 32,000 then resets to -32,000 then counts up. The other bug is large building are created on the outskirts of the city.
- Attachments
-
- Largeville.png (75.34 KiB) Viewed 11660 times
-
- Largeville.scn.txt
- Largeville Scenario
- (59.21 KiB) Downloaded 409 times
"Set fashion, not follow. Spit vitriol, not swallow" - Marilyn Manson
- lucaspiller
- Tycoon
- Posts: 1228
- Joined: 18 Apr 2004 20:27
I can't be bothered to compile the game with the patch right now, but I'd like to thank you for making the patch anyway. I really like how in the original TTD, you could start a bus and a mail truck in a city, even with 2 bus stops, and it would grow significantly. The way OTTD is now, even with tons of passengers transported from airports, busses and train, they still don't grow all that much.
Thanks
Thanks

- Rexxie
Sanity is a full time job.
Sanity is a full time job.
Who is online
Users browsing this forum: Bing [Bot] and 27 guests