Loading...
 
Skip to main content
Simutrans version 110.0



Settings in the DAT files of industrieslink

The parameters and values are separated by '='.

Specifying the factory itselflink

Parameters
Meaning
Value
Format
obj object type factory exactly this text
name object name Used in testing_page brewery plain text
copyright name of the creator plain text
Location Where to build the factory Used in testing_page Land Land/City/Water
DistributionWeight The probability of selection as a supplier for end consumers / Frequency Used in sv_WayDef number
Productivity minimum output 320  number
Range production fluctuation Used in sv_WayDef 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 Used in sv_VehicleDef Diesel Name of Smoke object
SmokeTile Tile, the starting point for the emissions coordinates marked Used in sv_VehicleDef 0,0  coordinates
SmokeOffset emissions position Used in sv_VehicleDef 24,-24  coordinates
SmokeSpeed emissions speed Used in sv_VehicleDef 16  number
InputGood[0] type of incoming goods Used in sv_VehicleDef Oel(Oil) plain text
InputCapacity[0] how much of this incoming goods can the factory store Used in sv_VehicleDef 1260  number
InputSupplier[0] supplier number Used in sv_VehicleDef number
InputFactor[0] Input factor in % Used in sv_VehicleDef 300  number
OutputGood[0] type of output commodity Used in sv_VehicleDef Chemicals plain text
OutputCapacity[0] how much of this output commodity can the factory store Used in sv_VehicleDef 150  number
OutputFactor[0] Output factor in% Used in sv_VehicleDef 60  number
MapColor Factory symbol color Used in sv_VehicleDef 28  Number from factory color palette
climates Climate zones
intro_month Month of Introduction Month as number
intro_year Year of Introduction 1955  Year as number
retire_month Month of Retirement Month as number
retire_year Year of Retirement 1982  Year as number
Unable to load the jQuery Sortable Tables feature.

Specifying fields for the factorylink

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 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
Unable to load the jQuery Sortable Tables feature.

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
Meaning
Value
Format
max_fields maximal number of field tiles 10  number
min_fields minimal number of field tiles 36  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[i] Name of field no i (the first field is i=0!) kornfeld_1  must match existing field name
production_per_field[i] Production rate of a single square of field type i number
storage_capacity[i] Storage capacity of fields, will be distributed among all incoming and outgoing goods of the factory 100  number
spawn_weight[i] sets the likelihood that this type of field will be used 25  number
has_snow[i] does this field have snow graphics Used in sv_FactoryDef 1 0 or 1
from Ver. 112.0
start_fields Number of some fields by create industry number
Unable to load the jQuery Sortable Tables feature.

Parameters for permanent production increase (in version > 110.0.1)link

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
Unable to load the jQuery Sortable Tables feature.

Parameters for production increase due to passenger, mail, and electricity supply (in version > 110.0.1)link

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
Unable to load the jQuery Sortable Tables feature.
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 threadlink-external

Specifying a field objectlink

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.
Parameters
Meaning
Value
Format
obj object type field exactly this text
name object name Used in testing_page grain field_1  plain text
copyright name of the creator plain text
Image[0] Graphics for winter without snow Picture information
Image[1] Graphics for spring Picture information
Image[2] Graphics for summer Picture information
Image[3] Graphis for autumn Picture information
Image[4] Graphics for winter with snow Picture information
Unable to load the jQuery Sortable Tables feature.

Graphics parameterlink


The graphical representation is specified by the BackImage parameters.


Top

Detailed Explanationslink




Used in testing_page The Parameter namelink


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



Used in testing_page The Parameter Locationlink


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


Used in sv_WayDef The Parameter DistributionWeightlink


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


Used in sv_WayDef The Parameter Rangelink


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



Used in sv_VehicleDef Parameters specifying the factory emissionslink


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



Used in sv_VehicleDef Parameters specifying goods used as raw material for the factorylink


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



Used in sv_VehicleDef Parameters specifying the output commodities produced by the factorylink


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
back


Used in sv_VehicleDef The Parameter MapColorlink


These colors are used to draw the industries on the mini-map.

Color tablelink


  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


Used in sv_FactoryDef The Parameter has_snowlink


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 shorelink


Factory on a shore

Copy to clipboard
climates=water Location=Land


the factory will be built only on the shore line.

Top

Rate this page:

Contributors to this page: Andarix , Frank and wlindley .
Page last modified on Wednesday December 6, 2023 14:48:01 CET by Andarix.

Page discussion

There are no discussions currently on this page Start discussion

Online Users

13 online users

Newest Forum Posts

No records to display