town growth?

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
tecxx
Engineer
Engineer
Posts: 106
Joined: 23 Jun 2003 19:31
Location: Tirol/Austria
Contact:

town growth?

Post by tecxx »

hy,
i just found this article:
http://www.tt-forums.net/viewtopic.php? ... own+growth

which says that towns basically need only one thing to grow: 5 stations near the city center which are frequently serviced. now this is dull. it means that it is totally useless to deliver food and goods to a city, right?

afaik, ttdpatch modified this behaviour, and i'd like to know if you guys could modify it in openttd too?

like, town growth is primarily based on how good the food/goods supply is and how good passenger/mail exchange to other cities is.
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

Towns in snow need food, otherwise they will not grow
Towns in desert need food and water, otherwise they will not grow.
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."
tecxx
Engineer
Engineer
Posts: 106
Joined: 23 Jun 2003 19:31
Location: Tirol/Austria
Contact:

Post by tecxx »

yes, i've found this here:

Code: Select all

	if (_opt.landscape == LT_HILLY) {
		if ((_map_type_and_height[c->xy] & 0xF) * 8 >= _opt.snow_line &&	c->act_food == 0)
			return;
	} else if (_opt.landscape == LT_DESERT) {
		if (GetMapExtraBits(c->xy) == 1 && (c->act_food==0 || c->act_paper==0))
			return;
	}
but on the normal tileset it isnt important at all, and at the snowy/desert tileset i'ts unimportant how MUCH you deliver.
and finally, goods are not a factor at all.

i also read an idea in this forum to make town groth not just happening at the town "center", but around your stations. what about this idea?
User avatar
AlienDNA
Engineer
Engineer
Posts: 97
Joined: 12 Apr 2004 08:53
Location: Leiden, Netherlands

Post by AlienDNA »

And so one can conclude that town growth is poorly implemented in the game.

It should be: the more you deliver, the faster the growth. That would be realistic, and lots of fun for a station in which 3 enormous factories dump their goods.

City's should grow when goods is delivered as well, because that would stimulate commerce, and commerce was often the reason towns grew irl. Further, goods should stimulate commercial buildings rather than houses, but I don't know if that distinction can be made by the city-building script...

And, to refer to one of my earlier post, I also think the player should be able to controll town growth through the patch-gui...
"I'm gonna rip his leg off and kick him with it!", Sanjuro, Shogo-MAD
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

Well, for that we need a coder, and a thourogly thought out plan.

I'm sure it will be done sooner or later. Pasky has started on a different town-growth algorithm that allows for bigger town growth, but that's all that has been done so far.
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."
tecxx
Engineer
Engineer
Posts: 106
Joined: 23 Jun 2003 19:31
Location: Tirol/Austria
Contact:

Post by tecxx »

is it in the svn already? i'm trying to understand the code right now :=)
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

tecxx wrote:is it in the svn already? i'm trying to understand the code right now :=)
No, pasky only made a patch.
Look here:
http://pasky.or.cz/~pasky/dev/openttd/growtown.patch

Or for more patches: http://pasky.or.cz/~pasky/dev/openttd/

Or look in this thread for more information: http://www.tt-forums.net/viewtopic.php?p=168912#168912
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."
tecxx
Engineer
Engineer
Posts: 106
Joined: 23 Jun 2003 19:31
Location: Tirol/Austria
Contact:

Post by tecxx »

nice,thank you i'll try that out right now!

a general question: when are such patches integrated into the svn and based on what decision (i'm curious also because of the "auto reconnect" patch, which works fine) ?
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

I expect when they can be declared bug free and when the developers have time after answering all the questions about stupid things like floating cars. My patch still has a few bugs so wait a while and it may be added.
OhYeah
Engineer
Engineer
Posts: 22
Joined: 14 Jul 2004 17:12

Post by OhYeah »

Hello, this is my first post on the TT forums.

First of all, it was a fantastic surprise to see all these nice people working on projects like TTDpatch and OpenTTD. Thank you guys! Your work is not in vain, as it keeps a legion of geeks busy (and happy) at night. To this very day, TTD remains one of my favourite games of all times.

Now, in my opinion, the town growth problem is the most urgent matter that need to be taken care of. Right now the system where only a lot of stations can improve town growth is unefficient, and mind me saying, not very "fun". Passanger and mail exchange and goods transported into the city should have a bigger impact on the town growth. Also it would be nice to give players the ability to control the rate of which the towns grow. (Low-medium-high style options only would suffice.)

I don't want to sound impatient, but how far is the town growth project right now and when could we see some enhancements? It would be nice if one of the OpenTTD developers could give a little insight to how are things progressing.

And once again... a big big thanks guys! You've done a great job so far, hope you keep up the good work!
tecxx
Engineer
Engineer
Posts: 106
Joined: 23 Jun 2003 19:31
Location: Tirol/Austria
Contact:

Post by tecxx »

i'm not a openttd developer, but i started working on this some days ago. my problem currently is, that i've got exams at the university till end of month, so i can't do much for openttd right now.

i'll continue soon, but if someone wants to do it i'm not trying to stop anybody :=)

my key concept:
town growth should be based on three factors:
a) city-internal passenger & mail transports

b) passenger&mail transport from city to other cities

c) city supply with goods & food

a city with just one of the three factors should grow no bigger than, lets say, 1500 people

a city with two factors should grow no bigger than ~3000 people

a city with three factors has no growth limit


also, city growth speed should depend on how "good" your three factors are.

this is just a concept, nothing final. also, i'm not sure if i'm ABLE to do this, but i'll have a try for sure :=)
User avatar
mdhowe
Route Supervisor
Route Supervisor
Posts: 446
Joined: 09 Jul 2004 07:12
Location: Hobart, Australia

Post by mdhowe »

town growth should be based on three factors:
a) city-internal passenger & mail transports

b) passenger&mail transport from city to other cities

c) city supply with goods & food
This sounds like an excellent idea, but what about adding a couple more factors like the amount of valuables transported to and from local banks and the amount of industry within the towns jurisdiction (Industry = jobs = growth). Don't know if theres many industries within town radius though.
"Set fashion, not follow. Spit vitriol, not swallow" - Marilyn Manson
User avatar
AlienDNA
Engineer
Engineer
Posts: 97
Joined: 12 Apr 2004 08:53
Location: Leiden, Netherlands

Post by AlienDNA »

Then just increase the local authority limit through the config file... :)
"I'm gonna rip his leg off and kick him with it!", Sanjuro, Shogo-MAD
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 17 guests