Airport specs

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
kamnet
Moderator
Moderator
Posts: 8584
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Airport specs

Post by kamnet »

AirportTypes shows ID numbers 0 through 9. Can you define more beyond that?
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Airport specs

Post by PikkaBird »

http://newgrf-specs.tt-wiki.net/wiki/Action0/Airports
The maximum number of possible airports is 128. All (even overridden) original types count towards this limit.
As there is (currently) no way to define a new statemachine for an airport, any new airport must have the same logical layout as one of the defaults, but may be rotated and may use a different tile layout.
User avatar
kamnet
Moderator
Moderator
Posts: 8584
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Airport specs

Post by kamnet »

That means I cannot use ID numbers 0-9, but 10-onward which in turn can override 0-9, correct?
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Airport specs

Post by PikkaBird »

I'm thinking:

If you want to modify an existing airport, use its ID and don't set property 08.
If you want to create an additional airport, use an ID > 9 and set property 08 to copy an existing airport.
If you want to disable an existing airport, use its ID and set property 08 to ff.

But try it and see what happens. :)
User avatar
kamnet
Moderator
Moderator
Posts: 8584
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Airport specs

Post by kamnet »

That's what I was thinking as well. I just happened to stumble upon NML:Airports while searching for something else tonight and was curious about how to code a few extra styles of airports.
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 7 guests