Features

From GRFSpecs
Jump to: navigation, search

List of features and feature-specific Actions

Feature Action0 Action1 Action2 VarAction2 RandomAction2 Callbacks Action3 Action4
00 Trains yes yes yes yes yes yes yes yes
01 Road Vehicles yes yes yes yes yes yes yes yes
02 Ships yes yes yes yes yes yes yes yes
03 Aircraft yes yes yes yes yes yes yes yes
04 Stations yes yes yes yes yes yes yes yes
05 Canals yes yes yes yes yes yes yes no
06 Bridges yes no no no-ish no no no yes-ish
07 Houses yes yes yes yes yes yes yes yes
08 Global Settings yes no no no no no no no
09 Industry Tiles yes yes yes yes yes yes yes no
0A Industries yes yes yes yes yes yes yes yes
0B Cargos yes yes yes yes-ish [1] no yes yes yes
0C Sound Effects yes no yes-ish [2] yes-ish [1] no yes yes no
0D Airports yes yes yes yes yes yes yes yes
0E Signals no Action5 yes-ish [2] yes no yes yes no
0F Objects yes yes yes yes yes yes yes yes
10 Railtypes yes yes yes yes yes no yes yes
11 Airport Tiles yes yes yes yes yes yes yes no
N/A Towns no no no yes no no no ActionF
48 Original Strings [3] no no no no no no no yes
  1. 1.0 1.1 No feature specific variables though
  2. 2.0 2.1 Callback failure only
  3. This is a pseudo-feature only used in Action4 to assign original strings. The value 0x48 originates from the way old TTDPatch versions checked for switches enabling/disabling features. NewTrains (feature 0x00) are activated by switch 0x37. Adding 0x48 to that results in 0x7F - a switch which is always set when TTDPatch is active. Thus feature 0x48 was not disabled by any switch. (today TTDPatch does not depend on the switches being in order of the features)