Table of contents
- DAT Parameters for Player Vehicles
- ‘obj’ Parameter
- ‘name’ Parameter
- ‘copyright’ Parameter
- ‘waytype’ Parameter
- ‘freight’ Parameter
- ‘payload’ Parameter
- ‘speed’ Parameter
- ‘cost’ Parameter
- ‘runningcost’ Parameter
- ‘power’ Parameter
- ‘gear’ Parameter
- ‘intro_month’ Parameter
- ‘intro_year’ Parameter
- ‘retire_month’ Parameter
- ‘retire_year’ Parameter
- ‘engine_type’ Parameter
- ‘traction_type’ Parameter
- ‘weight’ Parameter
- ‘length’ Parameter
- ‘sound’ Parameter
- ‘smoke’ Parameter
- ‘loading_time’ Parameter
- Constraint Parameters
- PNG Image for Vehicles
The parameters and values are separated by = .
|obj||object type||vehicle||exactly this text|
|name||vehicle name||GTK_Truck||simple text|
|copyright||creator name||Myself||simple text|
|waytype||way type||road||predetermined values|
|freight||cargo type||oel||simple text|
|power||power in KW||240||number|
|gear||power translation||80||number em percentage|
|intro_month||month of introduction||2||number|
|intro_year||year of introduction||1994||number|
|retire_month||month of retirement||8||number|
|retire_year||year of retirement||2030||number|
|engine_type||propulsion energy||hydrogene||predetermined values|
|sound||starting sound of the vehicle||2||number or text|
|smoke||smoke emitted when moving||steam||simple text|
|from Version 120.0.0|
|loading_time||loading time in milliseconds||1000||number|
|fixed_cost||fixed operational cost||100||number|
|water||water (sea, rivers, canals, lakes)||Ships|
The vehicle will be able to carry all goods with same category the good you have chosen. For example, the good you choose is in boxed goods category, so your vehicle will load all goods in boxed goods category.
For a list of goods that may be used in a specific pakset, consult the pakset documentation or the foruns.
good parameter and with the freight parameter. For example, the value is 80 and freight is Oel; this will make the vehicle load 80m³ of petroleum.
Note, this parameter has very little to do with real life gear, but is simply an internal modifier.
gear=80 and power=170, in-game power: 136KW.
gear=140 and power=170, in-game power: 238KW.
gear=100 and power=170, in-game power don’t change: 170KW.
This parameter only works with intro_year.
intro_month together with this parameter.
This parameter is obligatory, without it the vehicle will never start its production and won’t show in-game.
This parameter only works with retire_year.
retire_month together with this parameter.
This parameter is optional, without it the vehicle will never become obsolete and will be available forever.
Additional: Hydrogen, battery and some electric engines are Fuel Cells, but on Simutrans they have specific categories. Water propelled engines are fuel cells too. More info on Wikipedia.
power value. The weight will become bigger as the vehicle load goods. In Simutrans Experimental this parameter also limits usage of bridges and roads. Non integer values can be used with a dot. Ex.: 1.4.
There are two ways to specify the desired sound - by numerical ID (legacy support) and by file name (preferred).
Wav-files (*.wav) must be placed in folder sound of the pakset with this vehicle. In this folder is also a file sound.tab. Entries in this file map wav file names to numerical IDs.
If the vehicle uses no sound effect, the parameter can be completely omitted or given value -1.
For lists of wav files available in different paksets, see the pakset documentation.
The values of this parameter must match the the object name of the emission, as specified by what is used in the file name between smoke. and .pak .
For a list of available smoke files, see the documentation for each pakset documentation. For more details check smoke parameters.
If you omit the parameter the vehicle isn’t restricted at all, which means it can not only run alone (as a one-vehicle convoy), but it can also be coupled to any other vehicle (of course also depending on the constraints of this other vehicle).
ConstrainPrevx will set the vehicles to be included before it, the vehicle can only be included if any of the vehicles on ConstrainPrev are included before it. If you set one ConstrainPrev as None the vehicle can be included if there’s no vehicle before it. ConstrainNextx works the same, but with vehicles after it, if there’s no ConstrainNext as None, you must buy any vehicle set on other ConstrainNext to finish the convoy.
since Version 121.0
constrait[prev]=any require a vehile in front (and same for [next] to require a trailing vehicle)
Creating the PNG image.
good, you can even included lot of products. For doing so, you need to include the following parameters to define the good with new images:
Then you include the parameter for the images itself just like EmptyImage parameters, the number between brackets must match the same on freightimagetype[X]. If the loaded image will be the same for all goods don’t include the above parameter and remove the number brackets. If only some goods will have different images and all other good type will have the same image just add below parameters without the number brackets.