Add new tiles to airports?

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

Moderator: Graphics Moderators

Post Reply
temporal8
Route Supervisor
Route Supervisor
Posts: 507
Joined: 17 May 2019 14:15

Add new tiles to airports?

Post by temporal8 »

Hello, is it possible to add new tiles to airports?

Or replace the original tiles with custom tiles? (I don't mean replacing graphics but adding new tiles with new graphics)

What I'd like to do is add new graphics to the runway head and foot, and add taxiway markings.

Thanks
Real Projects 32bpp releases:

Real Semi Trucks 32bpp: viewtopic.php?t=90996
Real Houses Eyecandy Objects 32bp: viewtopic.php?t=90767
Real Ships 32bpp: viewtopic.php?t=90733
Real Industries 32bpp: viewtopic.php?t=90183
Real Houses Townset 32bp: viewtopic.php?p=1254605
Real Stations 32bpp: viewtopic.php?p=1255635
Real Cars 32bpp: viewtopic.php?p=1249244
Real Vehicles 32bpp: viewtopic.php?p=1253581
Real Bus 32bpp: viewtopic.php?p=1249245
Real Trucks 32bpp: viewtopic.php?p=1254468
Real Parks 32bpp: viewtopic.php?p=1250255
Argentina World Cup 2022 Champions Bus 32bpp viewtopic.php?p=1257026
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Add new tiles to airports?

Post by PikkaBird »

Yes. NewGRF airports are conceptually similar to industries, in that they are a set of defined tiles in a layout. You can use a separate tile ID for each tile of the airport, or use variables to change the tile graphics depending on its position within the airport. The limitation is you can only create airports with the same layout/state machine as the defaults (or rotations of the defaults).
Great Honham Transport, 17th Jan 1960.png
Great Honham Transport, 17th Jan 1960.png (586.88 KiB) Viewed 3913 times
temporal8
Route Supervisor
Route Supervisor
Posts: 507
Joined: 17 May 2019 14:15

Re: Add new tiles to airports?

Post by temporal8 »

Thanks so much for responding Pikka, I'm going to go with the Tile IDs, it's going to be better than the variables in resources terms I think.

By the way, nice airport!

Cheers.
Real Projects 32bpp releases:

Real Semi Trucks 32bpp: viewtopic.php?t=90996
Real Houses Eyecandy Objects 32bp: viewtopic.php?t=90767
Real Ships 32bpp: viewtopic.php?t=90733
Real Industries 32bpp: viewtopic.php?t=90183
Real Houses Townset 32bp: viewtopic.php?p=1254605
Real Stations 32bpp: viewtopic.php?p=1255635
Real Cars 32bpp: viewtopic.php?p=1249244
Real Vehicles 32bpp: viewtopic.php?p=1253581
Real Bus 32bpp: viewtopic.php?p=1249245
Real Trucks 32bpp: viewtopic.php?p=1254468
Real Parks 32bpp: viewtopic.php?p=1250255
Argentina World Cup 2022 Champions Bus 32bpp viewtopic.php?p=1257026
temporal8
Route Supervisor
Route Supervisor
Posts: 507
Joined: 17 May 2019 14:15

Re: Add new tiles to airports?

Post by temporal8 »

Here again, I've managed to replace one of the airports with my tiles, but the planes are hidden under the new tiles.

It's as if my new airport is covering up the old one, including the planes too, What am I doing wrong?
Real Projects 32bpp releases:

Real Semi Trucks 32bpp: viewtopic.php?t=90996
Real Houses Eyecandy Objects 32bp: viewtopic.php?t=90767
Real Ships 32bpp: viewtopic.php?t=90733
Real Industries 32bpp: viewtopic.php?t=90183
Real Houses Townset 32bp: viewtopic.php?p=1254605
Real Stations 32bpp: viewtopic.php?p=1255635
Real Cars 32bpp: viewtopic.php?p=1249244
Real Vehicles 32bpp: viewtopic.php?p=1253581
Real Bus 32bpp: viewtopic.php?p=1249245
Real Trucks 32bpp: viewtopic.php?p=1254468
Real Parks 32bpp: viewtopic.php?p=1250255
Argentina World Cup 2022 Champions Bus 32bpp viewtopic.php?p=1257026
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Add new tiles to airports?

Post by PikkaBird »

Airport tiles, like industry tiles and houses, consist of a ground sprite and 0 or more building sprites (nfo/nml). A tile which is just flat ground should just have a ground sprite; building sprites may show in front of vehicles, etc, depending on their bounding box.
temporal8
Route Supervisor
Route Supervisor
Posts: 507
Joined: 17 May 2019 14:15

Re: Add new tiles to airports?

Post by temporal8 »

Thank you very much, I now understand my mistake. I wanted to take the quick way and do it like in Real Industries, using a single big graphic as source, It actually worked quite well except for situations where I have to drive behind (for example, the control tower). But this time I'm going to need individual graphics for each tile.

Thanks again, have a nice weekend! :wink:
Real Projects 32bpp releases:

Real Semi Trucks 32bpp: viewtopic.php?t=90996
Real Houses Eyecandy Objects 32bp: viewtopic.php?t=90767
Real Ships 32bpp: viewtopic.php?t=90733
Real Industries 32bpp: viewtopic.php?t=90183
Real Houses Townset 32bp: viewtopic.php?p=1254605
Real Stations 32bpp: viewtopic.php?p=1255635
Real Cars 32bpp: viewtopic.php?p=1249244
Real Vehicles 32bpp: viewtopic.php?p=1253581
Real Bus 32bpp: viewtopic.php?p=1249245
Real Trucks 32bpp: viewtopic.php?p=1254468
Real Parks 32bpp: viewtopic.php?p=1250255
Argentina World Cup 2022 Champions Bus 32bpp viewtopic.php?p=1257026
temporal8
Route Supervisor
Route Supervisor
Posts: 507
Joined: 17 May 2019 14:15

Re: Add new tiles to airports?

Post by temporal8 »

Is it possible to add new airports like you can with industries?

Substitute: 0 is used for new industries; however, only override appears for airport properties, and if you try to use substitute, it obviously gives an error.

The only option at airports would be to add a new layout to an existing airport?
Real Projects 32bpp releases:

Real Semi Trucks 32bpp: viewtopic.php?t=90996
Real Houses Eyecandy Objects 32bp: viewtopic.php?t=90767
Real Ships 32bpp: viewtopic.php?t=90733
Real Industries 32bpp: viewtopic.php?t=90183
Real Houses Townset 32bp: viewtopic.php?p=1254605
Real Stations 32bpp: viewtopic.php?p=1255635
Real Cars 32bpp: viewtopic.php?p=1249244
Real Vehicles 32bpp: viewtopic.php?p=1253581
Real Bus 32bpp: viewtopic.php?p=1249245
Real Trucks 32bpp: viewtopic.php?p=1254468
Real Parks 32bpp: viewtopic.php?p=1250255
Argentina World Cup 2022 Champions Bus 32bpp viewtopic.php?p=1257026
User avatar
jfs
Tycoon
Tycoon
Posts: 1865
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Add new tiles to airports?

Post by jfs »

The game doesn't have any support for different airport layouts. The only thing you can do is "skin" one of the existing layouts.

There's been some work done into allowing custom airports, but I think those are in the form of offering the player "puzzle pieces" to build custom airports. I don't remember seeing a patch like that being ready for use.
temporal8
Route Supervisor
Route Supervisor
Posts: 507
Joined: 17 May 2019 14:15

Re: Add new tiles to airports?

Post by temporal8 »

Thanks for reply, have a nice day.
Real Projects 32bpp releases:

Real Semi Trucks 32bpp: viewtopic.php?t=90996
Real Houses Eyecandy Objects 32bp: viewtopic.php?t=90767
Real Ships 32bpp: viewtopic.php?t=90733
Real Industries 32bpp: viewtopic.php?t=90183
Real Houses Townset 32bp: viewtopic.php?p=1254605
Real Stations 32bpp: viewtopic.php?p=1255635
Real Cars 32bpp: viewtopic.php?p=1249244
Real Vehicles 32bpp: viewtopic.php?p=1253581
Real Bus 32bpp: viewtopic.php?p=1249245
Real Trucks 32bpp: viewtopic.php?p=1254468
Real Parks 32bpp: viewtopic.php?p=1250255
Argentina World Cup 2022 Champions Bus 32bpp viewtopic.php?p=1257026
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1791
Joined: 30 Mar 2005 09:43

Re: Add new tiles to airports?

Post by peter1138 »

temporal8 wrote: 15 Mar 2025 20:57 Thank you very much, I now understand my mistake. I wanted to take the quick way and do it like in Real Industries, using a single big graphic as source,
Yeah, well, you shouldn't do this for industries either. Break them up into tile-size pieces, buildings separate from ground.
He's like, some kind of OpenTTD developer.
temporal8
Route Supervisor
Route Supervisor
Posts: 507
Joined: 17 May 2019 14:15

Re: Add new tiles to airports?

Post by temporal8 »

peter1138 wrote: 27 Mar 2025 01:38
temporal8 wrote: 15 Mar 2025 20:57 Thank you very much, I now understand my mistake. I wanted to take the quick way and do it like in Real Industries, using a single big graphic as source,
Yeah, well, you shouldn't do this for industries either. Break them up into tile-size pieces, buildings separate from ground.
Thanks a lot for reply Peter, What you say is absolutely true. As time goes by, I'm learning more and more thanks to you guys and a lot of trial and error sometimes.

I don't always use the best way to do things and in fact many of my mods are not perfect, but as I learn more and more I try to improve.

Eternally grateful.
Real Projects 32bpp releases:

Real Semi Trucks 32bpp: viewtopic.php?t=90996
Real Houses Eyecandy Objects 32bp: viewtopic.php?t=90767
Real Ships 32bpp: viewtopic.php?t=90733
Real Industries 32bpp: viewtopic.php?t=90183
Real Houses Townset 32bp: viewtopic.php?p=1254605
Real Stations 32bpp: viewtopic.php?p=1255635
Real Cars 32bpp: viewtopic.php?p=1249244
Real Vehicles 32bpp: viewtopic.php?p=1253581
Real Bus 32bpp: viewtopic.php?p=1249245
Real Trucks 32bpp: viewtopic.php?p=1254468
Real Parks 32bpp: viewtopic.php?p=1250255
Argentina World Cup 2022 Champions Bus 32bpp viewtopic.php?p=1257026
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 8 guests