Action0/Vehicles/Planes

From GRFSpecs

Jump to: navigation, search

Contents

Introduction

Defining properties of planes.

Properties

NumberSizeVersionDescription
08BSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.02.0Sprite (FF for new graphics)
09BSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.02.0Is helicopter? 2=no, 0=yes
0ABSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.02.0Is large? 0=no, 1=yes (i.e. can't safely land on small airports)
0BBSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.02.0Cost factor
0CBSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.02.0Speed in mph*8
0DBSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.02.0Acceleration
0EBSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.02.0Running cost factor
0FWSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.02.0Primary cargo capacity (passenger or refitted cargo)
11BSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.02.0Secondary cargo capacity (mail)
12BSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.02.0Sound effect
13DSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.52.5 GRFv≥6Bit mask of cargo types available for refitting, see column 2 (Bit Value) in CargoTypes
14BSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.52.5 GRFv≥6Callback flags bit mask, see below
15BSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.5 (alpha 30)2.5Refit cost, using 1/32 of the default refit cost base
16BSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.5 (alpha 44)2.5Retire vehicle early, this many years before the end of phase 2 (see Action0General)
17BSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.5 (alpha 58)2.5Miscellaneous vehicle flags
18WSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.5 (alpha 58)2.5Refittable cargo classes, see train prop. 28
19WSupported by OpenTTD 0.60.6 Supported by TTDPatch 2.5 (alpha 58)2.5Non-refittable cargo classes, see train prop. 29
1ADSupported by OpenTTD 0.6 (r7191)0.6 Supported by TTDPatch 2.5 (r1210)2.5Long format introduction date
1BB*Supported by OpenTTD 0.7 (r13831)0.7 Not supported by TTDPatchSort the purchase list
1CWSupported by OpenTTD 1.2 (r22713)1.2 Not supported by TTDPatchCustom cargo ageing period
1DB n*BSupported by OpenTTD 1.2 (r23291)1.2 Not supported by TTDPatchList of always refittable cargo types, see train property 2C
1EB n*BSupported by OpenTTD 1.2 (r23291)1.2 Not supported by TTDPatchList of never refittable cargo types, see train property 2D
1FWSupported by OpenTTD 1.2 (r23504)1.2 Not supported by TTDPatchAircraft range in tiles. Distance is euclidean, a value of 0 means range is unlimited

Descriptions

Primary (0F) and secondary (11) caego capacity

Aircraft can transport up to two cargo types. The first (primary) cargo type can be changed when refitting the aircraft.

The secondary cargo type is always mail, and is only present when the primary cargo type is part of the passenger cargo class.

See also the page about vehicle refitting.

Sound effect (12)

The following sound effects are used by planes (note, the setting is ignored for helicopters):

NumberSound
06Propeller sound 1
07Jet sound 1
3BSupersonic
3DJet sound 2
45Propeller sound 2
46Jet sound 3

Callbacks (14)

For planes, the following callbacks have to be enabled by setting the corresponding bit in property 14 (certain other, not as frequently used callbacks are available without setting a bit here)::

BitValueVariable 0C valueCallback
2412Load amount
3815Set refitted capacity
52019show a suffix after the cargo type name
6402DSelect color mapping for vehicle
78033Sound effect callbacks

Bit is the bit you have to set, you do this by adding all the values for all the bits. Variable 0C value is what variable 0C will be set to, for checking it in the VarAction2 for callbacks.

Refit cost (15)

Refit cost, using 1/32 of the default refit cost base. This property can be overridden by callback 15E.

Supported by OpenTTD 1.2 (r23087)1.2 Not supported by TTDPatch If the refit cost factor is set to zero and bit 4 of the miscellaneous flags (17) is set, auto-refitting is allowed.

Miscellaneous flags (17)

This is a bit mask, with the following bits:

BitValueMeaning
01reserved, do not use
12Uses two company colors
24reserved, do not use
38reserved, do not use
410Supported by OpenTTD 1.2 (r23087)1.2 Not supported by TTDPatch Auto-refitting is enabled for refits where callback 15E allows it or prop 15 specifies zero cost.
520Supported by OpenTTD 1.2 (r23861)1.2 Not supported by TTDPatch Use cargo multiplier for default cargo. See page about vehicle refitting.
640Supported by OpenTTD 1.3 (r24124)1.3 Not supported by TTDPatch Disable breakdown smoke effect.

Long format introduction date (1A)

Set the vehicle introduction date, in days since the year 0. This takes account of leap years; dividable by 4, but not 100 unless 400. A start date of 1920-01-01 is obtained with a value of 701265 (51 B3 0A 00). This property must be set after property 00 to take effect.

Not supported by OpenTTD Supported by TTDPatch In TTDPatch, dates after 2044 will be limited to 2044.

Sort vehicle list (1B)

See sort vehicle list for trains for details.

Custom cargo ageing period (1C)

See custom cargo ageing period for trains for details.

Example

To be written

Personal tools
advertisement