City growth

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

FlipFlipsen
Engineer
Engineer
Posts: 70
Joined: 22 Dec 2002 09:38

City growth

Post by FlipFlipsen »

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.
User avatar
jacke
Director
Director
Posts: 533
Joined: 19 May 2002 14:47
Location: Sweden

Post by jacke »

No, there is no way to change the town growth in openttd as far as I know. But I assume settings for this will be implanted by the time.
And yes, I know it's kinda boring to play with "the old" town growth settings when you are used to play with ttdpatch.
Youlle
Engineer
Engineer
Posts: 12
Joined: 05 Jun 2004 12:30
Location: UK
Contact:

Post by Youlle »

im playing on stock OpenTTD 0.3.2.1 and i hav towns of 7000 population and plus could it be that its a saved game off TTDX? that i can get populations this large compared to everyone else?
.zolder
Engineer
Engineer
Posts: 2
Joined: 03 Jun 2004 12:42

Post by .zolder »

i have towns of just under 10.000 in ott games started in ott.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

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 :D
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."
User avatar
jacke
Director
Director
Posts: 533
Joined: 19 May 2002 14:47
Location: Sweden

Post by jacke »

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 :D
Hmm, how the hell did you do that ? :shock: I can't get much more that about 5-6k how hard I even try.

Anyway, with town growth settings in ttdpatch you can get much more than 10k :)
Tech^salvager
Engineer
Engineer
Posts: 96
Joined: 04 May 2004 20:36
Location: Portland, TX

Post by Tech^salvager »

Is there going to be modifcations later in the game to let it go over the 5k limit?
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Post by Korenn »

Tech^salvager wrote:Is there going to be modifcations later in the game to let it go over the 5k limit?
there is no 5k limit.
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post by GoneWacko »

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.
edk256
Traffic Manager
Traffic Manager
Posts: 245
Joined: 20 May 2004 06:49
Location: New York

Post by edk256 »

Could you post that scenario or post a link, please? I'd be very interested to see that.
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post by GoneWacko »

GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
pasky
OpenTTD Developer
OpenTTD Developer
Posts: 90
Joined: 25 Apr 2004 15:14
Location: Czech Republic
Contact:

Post by pasky »

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:
  • 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 patch at http://pasky.or.cz/~pasky/dev/openttd/growtown.patch (against the latest SVN) aims to remove these three limitations described above. You will detailed description at the top of the file. 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.
The flush toilet is the basis of Western civilization. -- Alan Coult
FlipFlipsen
Engineer
Engineer
Posts: 70
Joined: 22 Dec 2002 09:38

Post by FlipFlipsen »

Hi, I like to test this patch, so I downloaded the patch.

But how to go on, I do not know.
Tech^salvager
Engineer
Engineer
Posts: 96
Joined: 04 May 2004 20:36
Location: Portland, TX

Post by Tech^salvager »

I didn't realize that there was no 5kl imit just seemlike there was one. probably because i used to play with the citys set to high so there would be no more room later for growth of the cites.
alipiesas
Engineer
Engineer
Posts: 16
Joined: 27 Jun 2004 12:59
Location: Roosendaal, The Netherlands

City Growth

Post by alipiesas »

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.
User avatar
mdhowe
Route Supervisor
Route Supervisor
Posts: 446
Joined: 09 Jul 2004 07:12
Location: Hobart, Australia

Post by mdhowe »

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
When patching svn 913, I get this error:

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
User avatar
mdhowe
Route Supervisor
Route Supervisor
Posts: 446
Joined: 09 Jul 2004 07:12
Location: Hobart, Australia

Post by mdhowe »

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.
Attachments
Largeville.png
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
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

They must be signed 16bit numbers then.
CSL
Engineer
Engineer
Posts: 41
Joined: 18 Aug 2004 15:02

Post by CSL »

How can I apply the patch?
Rexxie
Engineer
Engineer
Posts: 109
Joined: 07 Jan 2004 18:37
Location: Norway
Contact:

Post by Rexxie »

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 :)
- Rexxie
Sanity is a full time job.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Bing [Bot] and 27 guests