Simutrans version 110.0
Table of contents
- Settings in the DAT files of industries
- Detailed Explanations
- The Parameter name
- The Parameter Location
- The Parameter DistributionWeight
- The Parameter Range
- Parameters specifying the factory emissions
- Parameters specifying goods used as raw material for the factory
- Parameters specifying the output commodities produced by the factory
- The Parameter MapColor
- The Parameter has_snow
- Building a factory on the shore
Settings in the DAT files of industries
The parameters and values are separated by '='.Specifying the factory itself
Parameters |
Meaning |
Value |
Format |
---|---|---|---|
obj | object type | factory | exactly this text |
name | object name | brewery | plain text |
copyright | name of the creator | plain text | |
Location | Where to build the factory | Land | Land/City/Water |
DistributionWeight | The probability of selection as a supplier for end consumers / Frequency | 1 | number |
Productivity | minimum output | 320 | number |
Range | production fluctuation | 300 | number |
pax_level | passenger level | 35 | number |
BackImage | Required factory graphic, see BackImage | png_file | filename |
FrontImage | Optional front graphic, see BackImage | png_file | filename |
Smoke | industrial emission | Diesel | Name of Smoke object |
SmokeTile | Tile, the starting point for the emissions coordinates marked | 0,0 | coordinates |
SmokeOffset | emissions position | 24,-24 | coordinates |
SmokeSpeed | emissions speed | 16 | number |
InputGood[0] | type of incoming goods | Oel(Oil) | plain text |
InputCapacity[0] | how much of this incoming goods can the factory store | 1260 | number |
InputSupplier[0] | supplier number | 2 | number |
InputFactor[0] | Input factor in % | 300 | number |
OutputGood[0] | type of output commodity | Chemicals | plain text |
OutputCapacity[0] | how much of this output commodity can the factory store | 150 | number |
OutputFactor[0] | Output factor in% | 60 | number |
MapColor | Factory symbol color | 28 | Number from factory color palette |
climates | Climate zones | ||
intro_month | Month of Introduction | 2 | Month as number |
intro_year | Year of Introduction | 1955 | Year as number |
retire_month | Month of Retirement | 8 | Month as number |
retire_year | Year of Retirement | 1982 | Year as number |
Specifying fields for the factory
If the factory has outlying fields, these additional parameters specify how these fields behave.Parameters |
Meaning |
Value |
Format |
---|---|---|---|
max_fields | maximal number of field tiles | 36 | number |
min_fields | minimal number of field tiles | 10 | number |
production_per_field | Production rate of a field tile | 5 | number |
probability_to_spawn | Probability that a new field will be created when the factory is producing | 10 | number (100 represents a probability of 1%, 10000=100%) |
fields | Name of field | kornfeld_1 | must match existing field name |
From version 110.0 (makeobj 51) on, more than one type of field may be specified for a factory, and furthermore fields will have storage capacity. This is how you will be able to specify that.
Parameters for permanent production increase (in version > 110.0.1)
Factories without fields can increase their production, too. The expansion happens when factory is producing, in a similar way to the creation of additional fields.Applies only to factories without field definitions.
Parameters |
Meaning |
Value |
Format |
---|---|---|---|
expand_probability | probability to expand | value larger than 10.000 means: always expand when producing | number |
expand_minimum | minimal expansion of production | number | |
expand_range | additional production increase: random number between 0 and expand_range | number | |
expand_times | maximal number of times the production increases | number |
Parameters for production increase due to passenger, mail, and electricity supply (in version > 110.0.1)
Parameters |
Meaning |
Value |
Format |
---|---|---|---|
electricity_boost | Increase of production in permill if electricity is supplied | default: 1000 | number |
electricity_amount | Max electricity per production unit consumption | default: 65535 | number |
passenger_demand | Demand on passengers per production unit and time | default: 65535 | number |
mail_demand | Demand on mail per production unit and time | default: 65535 | number |
passenger_boost | Increase of production in permill if passengers arrived | default: 0 | number |
mail_boost | Increase of production in permill if mail arrived | default: 0 | number |
If passenger_demand/mail_demand parameters are not specified (or set to 65535) then passenger_demand = pax_level, mail_demand = pax_level / 4 is taken. See also
Forum thread
Specifying a field object
In order for a factory to be able to use fields, the field objects themselves have to be defined. Use these parameters to define a field object.Graphics parameter
The graphical representation is specified by the BackImage parameters.
Top
Detailed Explanations
The Parameter name
This parameter determines the name of the object. It should not coincide with a name of the files object.*.pak in the used pakset folder.
back
The Parameter Location
This parameter determines the construction site for the industry. Following values are permitted:
- Land - built in countryside. Note, Location=Land with climates=water will force an industry on the shore.
- City - built within city limits
- Water - built on an open surface of water
from Version 120.4.1 ( Makeobj 60.2 )
- river - one tile of factory adjacent to river tile ( ignored if there are no rivers on the map )
- shore - one tile of factory on a sloped shore tile
- forest - more than X trees on the tiles covered by the factory, X=area of factory ( ignored if there are no forests on the map )
back
The Parameter DistributionWeight
The parameter describes, how often the object appears. The greater the value, the more often the object appears.
The highest value amounts to 127.
End consumers are industries that only require incoming goods, but produce no goods themselves.
back
The Parameter Range
This parameter indicates the range, in which the actual production rate of the industry lies.
- minimal production rate = value "Productivity"
- maximal production rate = value "Productivity" + value "Range"
The actual production rate of the industry can be further increased by supplying power, passengers, and mail (see above).
back
Parameters specifying the factory emissions
These parameters determine the emission of the industry. The parameters have following meaning:
- Smoke - determines the kind of emission
- The names of Smoke specified in the smoke.*.pak files can be used as values
- SmokeTile - specifies which tile's front corner is the starting point for the emission
- SmokeOffset - specifies the actual point of emission as offset from the starting point
- the first value gives the x-Position
- the second value gives the y-Position, this value is lowered by 100
- SmokeSpeed - specifies the emission speed
back
Parameters specifying goods used as raw material for the factory
These parameters specify which raw materials the industry needs to produce. All four parameters are required for each type of goods that the industry requires; and each set of parameters is associated with an index number given within square brackets, starting from 0. In the examples given below x is used as the index, but this MUST be replaced by the relevant index number.
- InputGood[x] - gives the name, which must match an existing type of goods
- InputCapacity[x] - how much of the goods that can be stored at the industry
- InputSupplier[x] - specifies the number of suppliers
- Value = 0 - each industry, which delivers the desired goods is selected as a supplier
- Value > 0 - this number of suppliers will be built. If there already exists suitable suppliers, only the surplus number is built
- InputFactor[x] - sets the relationship (percentage) between raw materials consumed (input) and commodities produced (output)
- Value = 200: two tons of raw materials are needed to produce one ton of commodity
- Value = 50: half a ton of raw materials are needed to produce one ton of commodity
back
Parameters specifying the output commodities produced by the factory
These parameters specify the goods manufactured by the industry. All three parameters are required for each type of goods that the industry produces; and each set of parameters is associated with an index number given within square brackets, starting from 0. In the examples given below x is used as the index, but this MUST be replaced by the relevant index number.
- OutputGood[x] - gives the name, which must match an existing type of goods
- OutputCapacity[x] - how much of the goods that can be stored at the industry
- OutputFactor[x] - sets the relationship (percentage) between raw materials consumed (input) and commodities produced (output)
- Value = 200: one ton of raw materials are needed to produce two tons of commodity
- Value = 50: one ton of raw materials are needed to produce half a ton of commodity
The Parameter MapColor
These colors are used to draw the industries on the mini-map.
Color table
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15
|
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31
|
32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47
|
48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63
|
64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79
|
80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95
|
96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111
|
112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127
|
128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143
|
144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159
|
160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 |
176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191
|
192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207
|
208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 |
(note: The RGB values for these colors are computed from values in the special_pal array in simgraph16.cc in the source)
back
The Parameter has_snow
The parameter has_snow must be set in every factory definition to enable the fields attached to that factory to use the snow graphics.
back
Building a factory on the shore
Factory on a shore
Copy to clipboard
climates=water Location=Land
the factory will be built only on the shore line.
Top
Last wiki comments