New industry: Supermarket

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: New industry: Supermarket

Post by DJ Nekkid »

Lots of shopping malls/centers are often built in the outskirts of cities, and then after a couple or three decades, have a new "city" grown around it.
Member of the
ImageImage
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: New industry: Supermarket

Post by michael blunck »

JacobD88 wrote: [...] With reference to "If the behaviour of a "house" would be sufficient, just code it as a house" like i say, i think this type of industry would be useful in or near towns not large enough to have the correct number of buildings to accept goods or food for the reasons in my post :)
"Houses" are quite flexible with regards to their behaviour, which make them good candidates for industry-like buildings. E.g., by using callbacks, it´s possible to

- decide the cargo types accepted,
- change the cargo amounts accepted,
- decide about custom cargo production,
- trigger the destruction of a building,
- protect them conditionally.

In addition, you may decide in which way to build a house in the first place:

- only during town generation,
- as a protected building which town administrations or AIs may not remove,
- you may also set the accepted cargo types,
- and the minimum life span.

In contrast to "industries", they mainly lack the production cycle.

See http://wiki.ttdpatch.net/tiki-index.php ... ion0Houses for more information.

If you´re interested to get more information, or advice for coding, feel free to open a thread in http://www.tt-forums.net/viewforum.php?f=26.

regards
Michael
Image
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: New industry: Supermarket

Post by frosch »

michael blunck wrote:- change the cargo amounts accepted,
Though I know what you mean, I guess that will be misinterpreted by a lot.
Houses do not know how much cargo they accepted in the past / this month.

Industries can stockpile.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
SirXavius
Transport Coordinator
Transport Coordinator
Posts: 302
Joined: 28 Jun 2006 18:25
Location: Florida

Re: New industry: Supermarket

Post by SirXavius »

I'm with blunck, in that supermarkets shouldn't need to be an industry unto themselves. But that's as long as there not as fickle as other buildings. I hate constructing truck stopss for gas stations, supplying them with fuel, and then they close shop within the year. If i'm interpreting blunck correctly, you can make buildings so they don't close so quickly just because town growth is running over them. With that stipulation, i'd rather they be coded as houses rather than industries. No worries about stockpiling and such -- you supply it, they'll buy it! :)

But i love this idea and it would make a great addition to our towns. If anyone takes up the challenge, let us know... :wink:
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: New industry: Supermarket

Post by FooBar »

Could anybody shed some light on how town growth works in terms of delivery of food or goods?

Let's say we put a supermarket as industry (not house) in an arctic town above snowline. The station where the food is delivered to is positioned so that the houses of the town within the catchment area of the station give 7/8 acception for food (station accepts food due to supermarket in catchment area). Does this allow the town to grow?

So for an artctic town above snowline, does the food need to be delivered to one or more 'house-entities', or could it also be an 'industry entity' within a certain distance from the town?
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: New industry: Supermarket

Post by frosch »

In arctic towns need one unit of food per month to grow beyond a population of 90.
In tropic towns need one unit of food and water per month to grow beyond a population of 60.

The cargo has to be accepted by a station that belongs to the town. (e.g. as seen in the station name).
It does not matter whether houses or industries were the reason for accepting.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: New industry: Supermarket

Post by andythenorth »

frosch wrote:The cargo has to be accepted by a station that belongs to the town. (e.g. as seen in the station name).
It does not matter whether houses or industries were the reason for accepting.
Interesting thanks. FooBar and I are...up to something :wink:

cheers,

Andy
User avatar
SirXavius
Transport Coordinator
Transport Coordinator
Posts: 302
Joined: 28 Jun 2006 18:25
Location: Florida

Re: New industry: Supermarket

Post by SirXavius »

:wink: Understood. 8)

We wait with baited breath... :))
User avatar
CommanderZ
Tycoon
Tycoon
Posts: 1872
Joined: 07 Apr 2008 18:29
Location: Czech Republic
Contact:

Re: New industry: Supermarket

Post by CommanderZ »

Ugh, I think every town with 800 or more inhabitants is (at least in its centre) able to consume goods. And for smaller towns would such a huge mall look ridiculous.
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

Re: New industry: Supermarket

Post by andythenorth »

SirXavius wrote:We wait with baited breath... :))
Ahem, I would give it approximately twelve months based on my prior experience of 'being up to something'. Just so you don't asphyxiate or anything :wink:

Although if anyone particularly wants to code new cargos or implement layout variations for new industries I suggest they PM me as soon as possible (and not in 12 months by when we might have no need of their help!) :)

More coming soon in a thread near you (perhaps tomorrow).
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: New industry: Supermarket

Post by FooBar »

Thanks Frosch, that's EXACTLY the information I needed.





And yes, Andy and I are surely up to something. You most likely don't get just a supermarket, but maybe even one or two bonus industries as well!
User avatar
RSpeed tycoonfreak
Transport Coordinator
Transport Coordinator
Posts: 349
Joined: 02 Feb 2006 13:17
Location: Azewijn The netherlands
Contact:

Re: New industry: Supermarket

Post by RSpeed tycoonfreak »

Meanwhile, I'll just focus on drawing a decent supermarket or mall :P
But i wont get that done this week, proberbly somewhere around next week or the weekend after. :wink:
Visit The Fake Airport Website
Image
Hobbys: being 18 years old, soccer, go karting, and transport tycoon.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Google [Bot] and 3 guests