Action0/Airport Tiles

From GRFSpecs

Jump to: navigation, search

Contents

Introduction

Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatch Airport tiles work like industry tiles and similarly to town buildings, except that they are not stand-alone. This means an airport tile can't stand alone, it's always part of an airport.

Properties

NumberVersionSizeDescription
08Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchBSubstitute airport tile type
09Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchBAirport tile override
0ESupported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchBCallback flags
0FSupported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchWAnimation information
10Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchBAnimation speed.
11Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchBAnimation triggers

Descriptions

Substitute tile type (08)

This tile type will be used instead of your new one if your definition isn't available for any reason. Assigning this property copies the properties of the old type just like it does with houses. If this tile's action 3 appears before this property is set, the action 3 will have no effect.

Airport tile override (09)

Works like the house override property for houses and industry tiles.

Callback flags (0E)

Bitvalueversionmeaning
01Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchuse callback 153 to decide the next animation frame
12Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchuse callback 154 to decide animation speed
24Not supported by OpenTTD Not supported by TTDPatch(reserved)
38Not supported by OpenTTD Not supported by TTDPatch(reserved)
410Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchuse callback xx to check if a slope is suitable (not yet implemented)
520Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchuse callback 150 to decide if default foundations need to be drawn
640Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchuse callback xx to allow or deny autosloping below the tile (not yet implemented)

Please note that callback 152 doesn't have a bit here. To use callback 152, simply set the wanted bits in property 11 and it will work as intended.

Animation information (0F)

The low byte specifies the number of animation frames minus one, so 00 means 1 frame, 01 means 2 frames etc. The maximum number of frames is 256, although you can have some problems if your animation exceeds FD (253) frames. The high byte must be 0 for non-looping animations and 01 for looping animations. Every other value is reserved for future use. In addition, if the whole word contains FFFF, animation is turned off for this tile (this is the default value).

Animation speed (10)

The meaning is the same as for house property 1B, but the lower limit is 0 instead of 2, so the fastest possible animation changes frames every game tick (27ms). The default value is 2.

Animation triggers via callback 152 (11)

This shares some flags with industry tiles and others with stations. Call callback 152 when:

BitValueVersionMeaningVar 18
01Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchairport was just constructed
12Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchthe tile is processed in the periodic processing loop
24Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchnew cargo arrives at the station (for all airport tiles the same)[1]
38Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatcha cargo type gets removed from the station (for all airport tiles the same)[1]
410Supported by OpenTTD 1.1 (r19204)1.1 Not supported by TTDPatchevery 250 ticks (for all airport tiles the same)
  1. 1.0 1.1 Bits 8..15 of var 18 contain the triggering cargo type. If your GRF has a cargo translation table, the cargo type will be an index in that table, or FFh if the cargo isn't in the table. If you don't have a cargo translation table, the cargo type will simply be the climate-dependent cargo type number.

Example

Personal tools
advertisement