property | value range | comment |
label | 4-byte string | names of default rail types: "RAIL", "ELRL", "MONO", "MLEV", "3RDR" |
introduction_date | date(yyyy,mm,dd) | Valid range for yyyy is 0 ... 5000000. Since OpenTTD r21842 |
name | string | |
menu_text | string | |
build_window_caption | string | |
autoreplace_text | string | |
new_engine_text | string | |
compatible_railtype_list | list of railtype labels | e.g. ["RAIL", "ELRL", "MONO"] |
powered_railtype_list | list of railtype labels | |
railtype_flags | bitmask(RAILTYPE_FLAG_CATANERY, RAILTYPE_FLAG_NO_LEVEL_CROSSING (OpenTTD r20049)) | |
curve_speed_multiplier | 0...65525 | max curve speed is defined as multiple of the base curve speed (see below) |
station graphics | RAILTYPE_STATION_NORMAL, RAILTYPE_STATION_MONORAIL, RAILTYPE_STATION_MAGLEV | |
construction_cost | 0 ... 65525 | per piece of track as multiplier to PR_BUILD_RAIL base cost. Since OpenTTD r19307 |
speed_limit | 0 ... 65525 km/h (speed units) | A speed limit of 0 means unlimited speed |
acceleration_model | ACC_MODEL_RAIL, ACC_MODEL_MONORAIL, ACC_MODEL_MAGLEV | ACC_MODEL_RAIL and ACC_MODEL_MONORAIL behave the same currently |
map_colour | 0 ... 255 | entry in the colour palette. Since OpenTTD r19307 |
requires_railtype_list | list of railtype labels | List of rail types on that need to be available to the company of the player for this rail type to be
introduced at (or after) the introduction date. This limit does not apply when the rail type is introduced by the introduction of a vehicle. Since OpenTTD r21842 |
introduces_railtype_list | list of railtype labels | List of rail types that get introduced when this rail type is introduced. For example, to make sure
that when a fast rail type is introduced the slow variant exists. Since OpenTTD r21841 |
sort_order | 0 ... 255 | number which defines the sort order among rail types. If this entry is not defined, it gets assinged sort order n*10+7 for the n-th railtype. Since OpenTTD r21866 |
The sort_order influences the sort order of the drop down lists with rail types. Default values are as follows:
block name | number of sprites | meaning |
gui | 16 | 4 rail directions, autorail, depot, tunnel and convert rail sprites for rail menu |
track_overlay* | 10 | 6 flat and 4 slope sprites. Track without landscape |
underlay* | 16 | 6 flat and 4 slope, one crossing WITH track, 5 junction pieces without track. Tracks with foundations but without landscape |
tunnels* | 4 | 4 track sprites, one for each tunnel entrance. Only track with foundations, no landscape |
catenary_wire | 28 | |
catenary_pylons | 8 | |
bridge_surfaces | 6 | |
level_crossings* | 10 | For each direction: one track sprite and 4 sprites for road lights etc |
depots* | 6 | 2 sprites for each south-ish, 1 sprite for each north-ish depot. Like original depots. |
fences | 8 | x, y, vertical, horizontal, SW, SE, NE and NW slopes like original fences at sprite 1301 |
The entries marked by * are required. A typical implementation for railtypes can look like