Building Properties
Moderator: OpenTTD Developers
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Building Properties
Do all building NewGRFs work off a code-specified set of building properties or are designers able to create types that go beyond the parameters of default sets?
(Besides my noted belief that stadium size should track town population I'm wondering if really tall buildings can have really large populations).
(Besides my noted belief that stadium size should track town population I'm wondering if really tall buildings can have really large populations).
Re: Building Properties
The easiest to read page is https://newgrf-specs.tt-wiki.net/wiki/NML:Houses
Understanding everything isn't really needed, but it gives a good impression of what things you can configure in a house.
"code" is in 'house callbacks', small pieces of code that get called on certain events, and then typically given an answer what to do or what to draw.
Understanding everything isn't really needed, but it gives a good impression of what things you can configure in a house.
"code" is in 'house callbacks', small pieces of code that get called on certain events, and then typically given an answer what to do or what to draw.
Being a retired OpenTTD developer does not mean I know what I am doing.
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: Building Properties
Got it,there are a set number of types and a population limit of 255.
Re: Building Properties
In case of multi-tile buildings only the most norther tile can have population, other tiles must have 0 population. Max population of a tile is 255 inhabitants, this amount results in generating about 16 passengers every 256 ticks. Passenger generation can be further increased by using "Custom cargo production (2E)" callback. It can be defined on any house tile (not only the northern one) and allows to increase passengers generated out a single tile up to 255*256 every 256 ticks.
Mail generation is similar except of that there is no "only the northern tile" rule, each house tile is like a separate house.
Further reading here and here.
Mail generation is similar except of that there is no "only the northern tile" rule, each house tile is like a separate house.
Further reading here and here.
Actually no. NewGRFs can define entirely new house types. They can also replace or disable any chosen type from the default set.Baldy's Boss wrote:there are a set number of types
don't worry, be happy and checkout my patches
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: Building Properties
In any event you can't change the size of a stadium to match the size of a town,and you can't further expand a company headquarters once the company is hundreds of times the size it takes to reach the current top size headquarters.
Re: Building Properties
why would you even need that? a football field is the same size no matter whether you're in a tiny village or a huge city. the only thing that changes is the audience seats, and you don't necessarily need to adjust the footprint of the stadium for that, you can just make it more fancy looking. and you can do that with NewGRFs easily.Baldy's Boss wrote:In any event you can't change the size of a stadium
if you seriously want larger sports complexes you need to code them as industries instead of houses.
the size of your company doesn't actually matter for how your headquarter looks, it's based on your performance rating. also, the headquarter isn't actually a "house" in the technical sense of the word.Baldy's Boss wrote:once the company is hundreds of times the size it takes to reach the current top size headquarters.
-
- Tycoon
- Posts: 1396
- Joined: 23 Feb 2014 22:02
Re: Building Properties
The number of spectator seats should affect the visible size of the stadium and should depend on town population.Eddi wrote:why would you even need that? a football field is the same size no matter whether you're in a tiny village or a huge city. the only thing that changes is the audience seats, and you don't necessarily need to adjust the footprint of the stadium for that, you can just make it more fancy looking. and you can do that with NewGRFs easily.Baldy's Boss wrote:In any event you can't change the size of a stadium
if you seriously want larger sports complexes you need to code them as industries instead of houses.
the size of your company doesn't actually matter for how your headquarter looks, it's based on your performance rating. also, the headquarter isn't actually a "house" in the technical sense of the word.Baldy's Boss wrote:once the company is hundreds of times the size it takes to reach the current top size headquarters.
Companies of vastly different sizes can achieve top performance ratings...the HQ ought to keep growing if the company does (and perhaps take on a disused look if the company is in decline).
Re: Building Properties
I don't know what you mean exactly but NewGRFs can behave like that - they can give an impression of larger/smaller stadiums. The graphics may look differently or even change dynamically. Also it doesn't have to be a 2x2 tile building, other sizes (1x1, 1x2 and 2x1) are permitted too. There can be many different stadiums in a set.Baldy's Boss wrote:In any event you can't change the size of a stadium to match the size of a town
don't worry, be happy and checkout my patches
Who is online
Users browsing this forum: No registered users and 50 guests