Difference between revisions of "CargoTypes"

From GRFSpecs
Jump to navigationJump to search
m (Updates to tablesyntax)
(Updated syntax for cargo labels table)
Line 6: Line 6:
 
Definitions of cargo types used in TTD and the patch
 
Definitions of cargo types used in TTD and the patch
   
For setting the various action 0 properties of vehicles, various way of specifying the cargo type are used.  Typically, there is one property that sets the default cargo type, and another property that sets the cargo types available for refitting in a bit mask.
+
For setting the various action 0 properties of vehicles, various way of specifying the cargo type are used.  Typically, there is one
  +
  +
property that sets the default cargo type, and another property that sets the cargo types available for refitting in a bit mask.
   
 
The following table lists the values to use for these properties, as well as the values to use for [[Action3|action 3]].
 
The following table lists the values to use for these properties, as well as the values to use for [[Action3|action 3]].
Line 18: Line 20:
 
| Type A
 
| Type A
 
| Cargo bit
 
| Cargo bit
| Use this cargo type in action 3. When using a [[Action0GeneralVariables#Cargo_translation_table_09_|cargo translation table]], this is the position in the translation table. If there is no cargo translation table, the cargo bit is defined by property 08 for new cargos.
+
| Use this cargo type in action 3. When using a [[Action0GeneralVariables#Cargo_translation_table_09_|cargo translation table]], this is the
  +
  +
position in the translation table. If there is no cargo translation table, the cargo bit is defined by property 08 for new cargos.
 
|-
 
|-
 
| Bit value
 
| Bit value
Line 26: Line 30:
 
| Type B
 
| Type B
 
| Cargo slot
 
| Cargo slot
| Use this cargo type to set the default cargo type of vehicles (note, this is climate dependent!). For new cargos this is the ID used in Action 0 and Action 3 of the cargo-defining NewGRF.
+
| Use this cargo type to set the default cargo type of vehicles (note, this is climate dependent!). For new cargos this is the ID used in Action
  +
  +
0 and Action 3 of the cargo-defining NewGRF.
 
|}
 
|}
   
Note, when New Cargos are being used, you can only rely on Type A values when using a cargo translation table. Type B values depend on the actual NewGRF (and its version) defining the new cargos; so, unless you test for a specific (industry) NewGRF you cannot rely on any value for Type B. That means, to be compatible to any new cargos, you have to set the default cargo of refittable vehicles to "first refittable". However, you can kind of rely on passengers being slot 0 and mail being slot 2.
+
Note, when New Cargos are being used, you can only rely on Type A values when using a cargo translation table. Type B values depend on the actual
  +
  +
NewGRF (and its version) defining the new cargos; so, unless you test for a specific (industry) NewGRF you cannot rely on any value for Type B.
  +
  +
That means, to be compatible to any new cargos, you have to set the default cargo of refittable vehicles to "first refittable".
  +
  +
However, you can kind of rely on passengers being slot 0 and mail being slot 2.
   
   
Line 316: Line 328:
 
<nowiki>*Only in temperate climate, with moreindustriesperclimate switch, i.e. disabled when &quot;newcargos&quot; switched on.</nowiki>
 
<nowiki>*Only in temperate climate, with moreindustriesperclimate switch, i.e. disabled when &quot;newcargos&quot; switched on.</nowiki>
   
<nowiki>** &quot;first&quot; means first wrt. cargo slot, type B. I.e. this is purely up to the cargo-defining NewGRF and cannot be influenced by the vehicle NewGRF.</nowiki>
+
<nowiki>** &quot;first&quot; means first wrt. cargo slot, type B. I.e. this is purely up to the cargo-defining NewGRF and cannot be influenced by
  +
  +
the vehicle NewGRF.</nowiki>
   
   
Line 323: Line 337:
 
The following cargo labels have been defined so far:
 
The following cargo labels have been defined so far:
   
||Label|Cargo description|[[Action0Cargos#Cargo_classes_16_|Cargo classes]]|Notes
 
 
<center>TTD Default Cargos</center>
 
 
PASS|Passengers|0001 Passengers |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
 
COAL|Coal|0010 Bulk |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
 
MAIL|Mail|0002 Mail |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
 
OIL_|Oil|0040 Liquid |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
 
LVST|Livestock|0020 Piece goods |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
 
GOOD|Goods|0004 Express|{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
 
GRAI|Grain|0010 Bulk | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |Temperate; see also WHEA, MAIZ, CERE
 
 
WOOD|Wood|0020 Piece goods |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
 
IORE|Iron Ore|0010 Bulk |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
 
STEL|Steel|0020 Piece goods |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
 
VALU|Valuables|0008 Armoured |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |Temperate; see also GOLD, DIAM
 
 
PAPR|Paper|0020 Piece goods |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
 
WHEA|Wheat|0010 Bulk | | |Arctic; see also GRAI, MAIZ, CERE
 
 
FOOD|Food|0084 Express, refrigerated |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
 
GOLD|Gold|0008 Armoured |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |Arctic; see also VALU, DIAM
 
 
RUBR|Rubber|0040 Liquid |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
 
FRUT|Fruit|0090 Bulk, refrigerated |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
 
MAIZ|Maize|0010 Bulk | | |Tropic; see also GRAI, WHEA, CERE
 
 
CORE|Copper Ore|0010 Bulk |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
 
WATR|Water|0040 Liquid |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
 
DIAM|Diamonds|0008 Armoured |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |Tropic; see also VALU, GOLD
 
 
SUGR|Sugar|0010 Bulk | | |
 
 
TOYS|Toys|0020 Piece goods | | |
 
 
BATT|Batteries|0020 Piece goods | | |
 
 
SWET|Sweets (Candy)|0004 Express | | |
 
 
TOFF|Toffee|0010 Bulk | | |
 
 
COLA|Cola|0040 Liquid | | |
 
 
CTCD|Cotton Candy (Candyfloss)|0010 Bulk | | |
 
 
BUBL|Bubbles|0020 Piece goods | | |
 
 
PLST|Plastic|0040 Liquid | | |Toyland; see also PLAS
 
 
FZDR|Fizzy Drinks|0020 Piece goods | | |
 
   
  +
{| class="wikitable
<center>NewCargos</center>
 
  +
|-
 
  +
! Label
AORE|Bauxite (Aluminium ore)|0010 Bulk | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
! Cargo Description
 
  +
! [[Action0Cargos#Cargo_classes_16_|Cargo classes]]
BEER|Alcohol|0064 Express, piece goods, liquids | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
! colspan="3" | Notes
 
  +
|-
BDMT|Building Materials|0220 Piece goods, covered/sheltered | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| align="center" colspan="6" | TTD Default Cargos
 
  +
|-
BRCK|Bricks| 0020 Piece goods |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
  +
| PASS
 
  +
| Passengers
CERA|Ceramics| 0020 Piece goods |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
  +
| 0001 Passengers
 
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
CERE|Cereals| 0210 Bulk, covered/sheltered |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |(*)
 
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
 
  +
|
CARB|Carbon Brick|0010 Bulk | | |
 
  +
|-
 
  +
| COAL
CLAY|Clay|0210 Bulk covered/sheltered | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| Coal
 
  +
| 0010 Bulk
CMNT|Cement| 0210 Bulk covered/sheltered |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
 
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
COPR|Copper|0020 Piece goods | | |
 
  +
|
 
  +
|-
DURA|Depleted Uranium|0100 Hazardous | | |
 
  +
| MAIL
 
  +
| Mail
DYES|Dyes| 0060 Piece goods, liquids |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
  +
| 0002 Mail
 
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
ENSP|Engineering Supplies|0024 Express, piece goods | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
 
  +
|
FERT|Fertiliser| 0030 Bulk, piece goods |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |(*)
 
  +
|-
 
  +
|OIL_
FICR|Fibre crops| 0030 Bulk, piece goods|{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| Oil
 
  +
| 0040 Liquid
FISH|Fish| 0084 Express, refrigerated |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
 
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
FMSP|Farm Supplies|0024 Express, piece goods | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
|
 
  +
|-
FRVG|Fruit (and optionally Vegetables)|00A4 Express, piece goods, refrigerated &nbsp;| |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| LVST
 
  +
| Livestock
FUEL|Fuel|0040 Liquid | | |Use PETR for refined-oil fuel
 
  +
| 0020 Piece goods
 
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
GEAR|Locomotive regearing|8000 Special | | |
 
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
 
  +
|
GLAS|Glass| 0420 Piece goods, oversized |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
  +
|-
 
  +
| GOOD
GRVL|Gravel / Ballast|0010 Bulk | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| Goods
 
  +
| 0004 Express
LIME|Lime stone| 0010 Bulk |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
 
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
MATE|Materials|0020 Piece goods | | |
 
  +
|
 
  +
|-
MILK|Milk|00C4 Express, liquid, refrigerated | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| GRAI
 
  +
| Grain
MNSP|Manufacturing Supplies|0020 Piece Goods, express | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| 0010 Bulk
 
  +
|
OLSD|Oil seed| 0210 Bulk, covered/sheltered |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |(*)
 
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
 
  +
| Temperate; see also WHEA, MAIZ, CERE
OXYG|Oxygen|0040 Liquid | | |
 
  +
|-
 
  +
| WOOD
PETR|Petrol / Fuel Oil| 0040 Liquid |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} &nbsp;|
 
  +
| Wood
 
  +
| 0020 Piece goods
PLAS|Plastic| 0060 Piece goods, liquid|{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
 
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
POTA|Potash| 0210 Bulk, covered/sheltered |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |(*)
 
  +
|
 
  +
|-
RCYC|Recyclables|0220 Piece Goods, covered &nbsp;| |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| IORE
 
  +
| Iron Ore
RCKT|Rockets|0000 None| | |
 
  +
| 0010 Bulk
 
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
RFPR|Refined products| 0040 Liquid |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
 
  +
|
RSGR|Raw Sugar|0010 Bulk | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} | Sugar cane in tropic, sugar beet in other climates
 
  +
|-
 
  +
| STEL
SAND|Sand| 0010 Bulk |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| Steel
 
  +
| 0020 Piece goods
SCRP|Scrap Metal|0010 Bulk | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} &nbsp;|
 
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
 
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
SILI|Silicate|0010 Bulk | | |
 
  +
|
 
  +
|-
SULP|Sulphur| 0210 Bulk, covered/sheltered |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |(*)
 
  +
| VALU
 
  +
| Valuables
TOUR|Tourists| 0005 Passengers, express |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
  +
| 0008 Armoured
 
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
TWOD|Tropic Wood|0020 Piece goods | | |
 
  +
|
 
  +
| Temperate; see also GOLD, DIAM
UORE|Uranium Ore|0110 Hazardous, Bulk | | |
 
  +
|-
 
  +
| PAPR
URAN|Uranium|0100 Hazardous | | |
 
  +
| Paper
 
  +
| 0020 Piece goods
VEHI|Vehicles| 0420 Piece goods, oversized |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} | |
 
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
 
  +
|
WATT|Electricity|0000 None | | |
 
  +
|
 
  +
|-
WDPR|Wood Products| 0030 Bulk, piece goods |{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
| WHEA
 
  +
| Wheat
WOOL|Wool| 0220 Piece goods, covered/sheltered &nbsp;|{DIV(bg=&gt;#eebb00)}<center>~hs~[[ECS|<span style='color:#000000'>ECS</span>]]~hs~</center>{DIV} |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |(*)
 
  +
| 0010 Bulk
 
  +
|
WSTE|Waste|0010 Bulk | |{DIV(bg=&gt;#1a3cb7)}<center>~hs~[[FIRS|<span style='color:#FFFFFF'>FIRS</span>]]~hs~</center>{DIV} |
 
  +
|
 
  +
| Arctic; see also GRAI, MAIZ, CERE
||
 
  +
|-
  +
| FOOD
  +
| Food
  +
| 0084 Express, refrigerated
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| GOLD
  +
| Gold
  +
| 0008 Armoured
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
| Arctic; see also VALU, DIAM
  +
|-
  +
| RUBR
  +
|Rubber
  +
|0040 Liquid
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| FRUT
  +
| Fruit
  +
| 0090 Bulk, refrigerated
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| MAIZ
  +
| Maize
  +
| 0010 Bulk
  +
|
  +
|
  +
| Tropic; see also GRAI, WHEA, CERE
  +
|-
  +
| CORE
  +
| Copper Ore
  +
| 0010 Bulk
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| WATR
  +
| Water
  +
| 0040 Liquid
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| DIAM
  +
| Diamonds
  +
| 0008 Armoured
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
| Tropic; see also VALU, GOLD
  +
|-
  +
| SUGR
  +
| Sugar
  +
| 0010 Bulk
  +
|
  +
|
  +
|
  +
|-
  +
| TOYS
  +
| Toys
  +
| 0020 Piece goods
  +
|
  +
|
  +
|
  +
|-
  +
| BATT
  +
| Batteries
  +
| 0020 Piece goods
  +
|
  +
|
  +
|
  +
|-
  +
| SWET
  +
|Sweets (Candy)
  +
|0004 Express
  +
|
  +
|
  +
|
  +
|-
  +
| TOFF
  +
|Toffee
  +
|0010 Bulk
  +
|
  +
|
  +
|
  +
|-
  +
| COLA
  +
|Cola
  +
|0040 Liquid
  +
|
  +
|
  +
|
  +
|-
  +
| CTCD
  +
|Cotton Candy (Candyfloss)
  +
|0010 Bulk
  +
|
  +
|
  +
|
  +
|-
  +
| BUBL
  +
|Bubbles
  +
|0020 Piece goods
  +
|
  +
|
  +
|
  +
|-
  +
| PLST
  +
|Plastic
  +
|0040 Liquid
  +
|
  +
|
  +
|Toyland; see also PLAS
  +
|-
  +
| FZDR
  +
|Fizzy Drinks
  +
|0020 Piece goods
  +
|
  +
|
  +
|
  +
|-
  +
| align="center" colspan="6" | NewCargos
  +
|-
  +
| AORE
  +
|Bauxite (Aluminium ore)
  +
|0010 Bulk
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| BEER
  +
|Alcohol
  +
|0064 Express, piece goods, liquids
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| BDMT
  +
|Building Materials
  +
|0220 Piece goods, covered/sheltered
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| BRCK
  +
|Bricks
  +
| 0020 Piece goods
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| CERA
  +
|Ceramics
  +
| 0020 Piece goods
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| CERE
  +
|Cereals
  +
| 0210 Bulk, covered/sheltered
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|(*)
  +
|-
  +
| CARB
  +
|Carbon Brick
  +
|0010 Bulk
  +
|
  +
|
  +
|
  +
|-
  +
| CLAY
  +
|Clay
  +
|0210 Bulk covered/sheltered
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| CMNT
  +
|Cement
  +
| 0210 Bulk covered/sheltered
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| COPR
  +
|Copper
  +
|0020 Piece goods
  +
|
  +
|
  +
|
  +
|-
  +
| DURA
  +
|Depleted Uranium
  +
|0100 Hazardous
  +
|
  +
|
  +
|
  +
|-
  +
| DYES
  +
|Dyes
  +
| 0060 Piece goods, liquids
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| ENSP
  +
|Engineering Supplies
  +
|0024 Express, piece goods
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| FERT
  +
|Fertiliser
  +
| 0030 Bulk, piece goods
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|(*)
  +
|-
  +
| FICR
  +
|Fibre crops
  +
| 0030 Bulk, piece goods
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| FISH
  +
|Fish
  +
| 0084 Express, refrigerated
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| FMSP
  +
|Farm Supplies
  +
|0024 Express, piece goods
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| FRVG
  +
|Fruit (and optionally Vegetables)
  +
|00A4 Express, piece goods, refrigerated &nbsp;
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| FUEL
  +
|Fuel
  +
|0040 Liquid
  +
|
  +
|
  +
|Use PETR for refined-oil fuel
  +
|-
  +
| GEAR
  +
|Locomotive regearing
  +
|8000 Special
  +
|
  +
|
  +
|
  +
|-
  +
| GLAS
  +
|Glass
  +
| 0420 Piece goods, oversized
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| GRVL
  +
|Gravel / Ballast
  +
|0010 Bulk
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| LIME
  +
|Lime stone
  +
| 0010 Bulk
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| MATE
  +
|Materials
  +
|0020 Piece goods
  +
|
  +
|
  +
|
  +
|-
  +
| MILK
  +
|Milk
  +
|00C4 Express, liquid, refrigerated
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| MNSP
  +
|Manufacturing Supplies
  +
|0020 Piece Goods, express
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| OLSD
  +
|Oil seed
  +
| 0210 Bulk, covered/sheltered
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|(*)
  +
|-
  +
| OXYG
  +
|Oxygen
  +
|0040 Liquid
  +
|
  +
|
  +
|
  +
|-
  +
| PETR
  +
|Petrol / Fuel Oil
  +
| 0040 Liquid
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| PLAS
  +
|Plastic
  +
| 0060 Piece goods, liquid
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| POTA
  +
|Potash
  +
| 0210 Bulk, covered/sheltered
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|(*)
  +
|-
  +
| RCYC
  +
|Recyclables
  +
|0220 Piece Goods, covered &nbsp;
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| RCKT
  +
|Rockets
  +
|0000 None
  +
|
  +
|
  +
|
  +
|-
  +
| RFPR
  +
|Refined products
  +
| 0040 Liquid
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| RSGR
  +
|Raw Sugar
  +
|0010 Bulk
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
| Sugar cane in tropic, sugar beet in other climates
  +
|-
  +
| SAND
  +
|Sand
  +
| 0010 Bulk
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| SCRP
  +
|Scrap Metal
  +
|0010 Bulk
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|-
  +
| SILI
  +
|Silicate
  +
|0010 Bulk
  +
|
  +
|
  +
|
  +
|-
  +
| SULP
  +
|Sulphur
  +
| 0210 Bulk, covered/sheltered
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|(*)
  +
|-
  +
| TOUR
  +
|Tourists
  +
| 0005 Passengers, express
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| TWOD
  +
|Tropic Wood
  +
|0020 Piece goods
  +
|
  +
|
  +
|
  +
|-
  +
| UORE
  +
|Uranium Ore
  +
|0110 Hazardous, Bulk
  +
|
  +
|
  +
|
  +
|-
  +
| URAN
  +
|Uranium
  +
|0100 Hazardous
  +
|
  +
|
  +
|
  +
|-
  +
| VEHI
  +
|Vehicles
  +
| 0420 Piece goods, oversized
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| WATT
  +
|Electricity
  +
|0000 None
  +
|
  +
|
  +
|
  +
|-
  +
| WDPR
  +
|Wood Products
  +
| 0030 Bulk, piece goods
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
|
  +
|
  +
|-
  +
| WOOL
  +
|Wool
  +
| 0220 Piece goods, covered/sheltered &nbsp;
  +
| style="background: #EEBB00; color: black" | [http://www.tt-wiki.net/wiki/ECS ECS]
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|(*)
  +
|-
  +
| WSTE
  +
|Waste
  +
|0010 Bulk
  +
|
  +
| style="background: #1A3CB7; color: white" | [http://www.tt-wiki.net/wiki/FIRS FIRS]
  +
|
  +
|}
   
 
(*) ECS cargo classes changed as of dec 31, 2010
 
(*) ECS cargo classes changed as of dec 31, 2010

Revision as of 14:01, 13 June 2011

Cargo types in TTD

Cargo Types in TTD

Definitions of cargo types used in TTD and the patch

For setting the various action 0 properties of vehicles, various way of specifying the cargo type are used.  Typically, there is one

property that sets the default cargo type, and another property that sets the cargo types available for refitting in a bit mask.

The following table lists the values to use for these properties, as well as the values to use for action 3.

Column Name Usage
Type A Cargo bit Use this cargo type in action 3. When using a cargo translation table, this is the

position in the translation table. If there is no cargo translation table, the cargo bit is defined by property 08 for new cargos.

Bit value Add these bit values to find the value to give the refit mask property (this is -+1 << cargobit+-)
Type B Cargo slot Use this cargo type to set the default cargo type of vehicles (note, this is climate dependent!). For new cargos this is the ID used in Action

0 and Action 3 of the cargo-defining NewGRF.

Note, when New Cargos are being used, you can only rely on Type A values when using a cargo translation table. Type B values depend on the actual

NewGRF (and its version) defining the new cargos; so, unless you test for a specific (industry) NewGRF you cannot rely on any value for Type B.

That means, to be compatible to any new cargos, you have to set the default cargo of refittable vehicles to "first refittable".

However, you can kind of rely on passengers being slot 0 and mail being slot 2.


Type A Bit Value Type B Cargo ECS Type B FIRS
00 1 00 Passengers + 00 +
01 2 01 Coal + 01 +
02 4 02 Mail + 02 +
03 8 03 Oil + 03 +
04 10 04 Livestock + 04 +
05 20 05 Goods + 05 +
06 40 06 Grain/Wheat/Maize + 06 +
07 80 07 Wood + 07 +
08 100 08 Iron Ore + 08 +
09 200 09 Steel + 09 +
0A 400 0A Valuables/Gold/Diamonds + 0A Milk
0B 800 09 Paper Food 0B Food
0C 1000 0B Food Paper 0C Raw Sugar
0D 2000 04 Fruit + 0D Fruit and Vegetables
0E 4000 08 Copper Ore Fish 0E Fish
0F 8000 09 Water Wool 0F Wool
10 10000 01 Rubber Potash 10 Clay
11 20000 01 Sugar Sand 11 Sand
12 40000 03 Toys Glass/Ceramics 12 Manufacturing Supplies
13 80000 04 Batteries Wood products 13 Lumber
14 100000 05 Candy (Sweets) Dyes 14 Scrap Metal
15 200000 06 Toffee Fertiliser 15 Farm Supplies
16 400000 07 Cola Oil seeds 16 Fibre crops
17 800000 08 Cotton Candy (Candyfloss) Refined products 17 Chemicals
18 1000000 09 Bubbles Vehicles 18 Engineering Supplies
19 2000000 0A Plastic Petrol 19 Petrol
1A 4000000 0B Fizzy Drinks Bricks 1A Gravel
1B 8000000 0B Paper* Sulphur 1B Bauxite
1C 10000000 08 undefined; unused slot in arctic climate Cement 1C Building Materials
1D 20000000 - undefined; unused slot Fibre crops 1D Reserved1
1E 40000000 - undefined; unused slot Lime stone 1E Reserved2
1F 80000000 - undefined; unused slot Tourists 1F Reserved3
n/a n/a FF Use first (**) refittable cargo type as default cargo. See also vehicle refitting.
FE n/a n/a Used in action 3 for stations to disable default
FF n/a n/a Shown in purchase list

*Only in temperate climate, with moreindustriesperclimate switch, i.e. disabled when "newcargos" switched on.

** "first" means first wrt. cargo slot, type B. I.e. this is purely up to the cargo-defining NewGRF and cannot be influenced by the vehicle NewGRF.


Cargo Labels

The following cargo labels have been defined so far:


Label Cargo Description Cargo classes Notes
TTD Default Cargos
PASS Passengers 0001 Passengers ECS FIRS
COAL Coal 0010 Bulk ECS FIRS
MAIL Mail 0002 Mail ECS FIRS
OIL_ Oil 0040 Liquid ECS FIRS
LVST Livestock 0020 Piece goods ECS FIRS
GOOD Goods 0004 Express ECS FIRS
GRAI Grain 0010 Bulk FIRS Temperate; see also WHEA, MAIZ, CERE
WOOD Wood 0020 Piece goods ECS FIRS
IORE Iron Ore 0010 Bulk ECS FIRS
STEL Steel 0020 Piece goods ECS FIRS
VALU Valuables 0008 Armoured ECS Temperate; see also GOLD, DIAM
PAPR Paper 0020 Piece goods ECS
WHEA Wheat 0010 Bulk Arctic; see also GRAI, MAIZ, CERE
FOOD Food 0084 Express, refrigerated ECS
GOLD Gold 0008 Armoured ECS Arctic; see also VALU, DIAM
RUBR Rubber 0040 Liquid ECS
FRUT Fruit 0090 Bulk, refrigerated ECS
MAIZ Maize 0010 Bulk Tropic; see also GRAI, WHEA, CERE
CORE Copper Ore 0010 Bulk ECS
WATR Water 0040 Liquid ECS
DIAM Diamonds 0008 Armoured ECS Tropic; see also VALU, GOLD
SUGR Sugar 0010 Bulk
TOYS Toys 0020 Piece goods
BATT Batteries 0020 Piece goods
SWET Sweets (Candy) 0004 Express
TOFF Toffee 0010 Bulk
COLA Cola 0040 Liquid
CTCD Cotton Candy (Candyfloss) 0010 Bulk
BUBL Bubbles 0020 Piece goods
PLST Plastic 0040 Liquid Toyland; see also PLAS
FZDR Fizzy Drinks 0020 Piece goods
NewCargos
AORE Bauxite (Aluminium ore) 0010 Bulk FIRS
BEER Alcohol 0064 Express, piece goods, liquids FIRS
BDMT Building Materials 0220 Piece goods, covered/sheltered FIRS
BRCK Bricks 0020 Piece goods ECS
CERA Ceramics 0020 Piece goods ECS
CERE Cereals 0210 Bulk, covered/sheltered ECS (*)
CARB Carbon Brick 0010 Bulk
CLAY Clay 0210 Bulk covered/sheltered FIRS
CMNT Cement 0210 Bulk covered/sheltered ECS
COPR Copper 0020 Piece goods
DURA Depleted Uranium 0100 Hazardous
DYES Dyes 0060 Piece goods, liquids ECS
ENSP Engineering Supplies 0024 Express, piece goods FIRS
FERT Fertiliser 0030 Bulk, piece goods ECS (*)
FICR Fibre crops 0030 Bulk, piece goods ECS FIRS
FISH Fish 0084 Express, refrigerated ECS FIRS
FMSP Farm Supplies 0024 Express, piece goods FIRS
FRVG Fruit (and optionally Vegetables) 00A4 Express, piece goods, refrigerated   FIRS
FUEL Fuel 0040 Liquid Use PETR for refined-oil fuel
GEAR Locomotive regearing 8000 Special
GLAS Glass 0420 Piece goods, oversized ECS
GRVL Gravel / Ballast 0010 Bulk FIRS
LIME Lime stone 0010 Bulk ECS
MATE Materials 0020 Piece goods
MILK Milk 00C4 Express, liquid, refrigerated FIRS
MNSP Manufacturing Supplies 0020 Piece Goods, express FIRS
OLSD Oil seed 0210 Bulk, covered/sheltered ECS (*)
OXYG Oxygen 0040 Liquid
PETR Petrol / Fuel Oil 0040 Liquid ECS FIRS
PLAS Plastic 0060 Piece goods, liquid ECS
POTA Potash 0210 Bulk, covered/sheltered ECS (*)
RCYC Recyclables 0220 Piece Goods, covered   FIRS
RCKT Rockets 0000 None
RFPR Refined products 0040 Liquid ECS FIRS
RSGR Raw Sugar 0010 Bulk FIRS Sugar cane in tropic, sugar beet in other climates
SAND Sand 0010 Bulk ECS FIRS
SCRP Scrap Metal 0010 Bulk FIRS
SILI Silicate 0010 Bulk
SULP Sulphur 0210 Bulk, covered/sheltered ECS (*)
TOUR Tourists 0005 Passengers, express ECS
TWOD Tropic Wood 0020 Piece goods
UORE Uranium Ore 0110 Hazardous, Bulk
URAN Uranium 0100 Hazardous
VEHI Vehicles 0420 Piece goods, oversized ECS
WATT Electricity 0000 None
WDPR Wood Products 0030 Bulk, piece goods ECS
WOOL Wool 0220 Piece goods, covered/sheltered   ECS FIRS (*)
WSTE Waste 0010 Bulk FIRS

(*) ECS cargo classes changed as of dec 31, 2010