DAT parameters for Citycars
Citycars is the internal name in Simutrans for Urban vehicles, dummy vehicles that show up running in the cities, the Simutrans citizens' vehicles.The parameters and values are separated by = . Parameter and values are not case sensitive.
Parameter |
Meaning |
Example Value |
Format |
---|---|---|---|
obj | object type | citycar | exactly this text |
name | citycar name | sedan_1 | simple text |
copyright | creator name | Myself | simple text |
speed | max speed | 100 | number |
intro_month | introduction month | 2 | number |
intro_year | introduction year | 1994 | number |
retire_month | retirement month | 8 | number |
retire_year | retirement year | 2030 | number |
DistributionWeight | frequency it's shown | 4 | number |
'obj' Parameter
This parameter defines the object type. To be a citycar its value is obligatory citycar.'name' Parameter
This parameter is the name of the object. This name must be unique as it's the object id, if it's the same as another object it will be replaced or replace the other object. The last object loaded will be the one available.'copyright' Parameter
Used to show who made the object, generally the image. Use whatever you want to identify yourself, name or nickname.'speed' Parameter
Determines the vehicle's maximum speed in Km/h. The vehicle will, obviously, aways respect the road maximum allowed speed.Default value if ommited is 80.
'intro_month' Parameter
Vehicle's introduction month, the month the citycar will start spawning in the cities. The number used is the corresponding month, 1 (one) for January and 12 (twelve) for December.Default value if ommited is January.
'intro_year' Parameter
Vehicle's introduction year, or year the the citycar will start spawning in the cities. Number correspond with the year. Negative numbers are not allowed.Default value if ommited is 1900.
'retire_month' Parameter
Vehicle's retirement month, the month the citycar will stop spawning in the cities. The number used is the corresponding month, 1 (one) for January and 12 (twelve) for December.Default value if ommited is January.
'retire_year' Parameter
Vehicle's retirement year, or year the the citycar will stop spawning in the cities. Number correspond with the year. Negative numbers are not allowed.This parameter is not obligatory, without it vehicle production will be forever.
'DistributionWeight' Parameter
Determines the frequency the citycar will show in the streets, higher values means higher probability.Default value if ommited is 1.
PNG image for Citycars
Not only the PNG image must be created but parameters must be included in the DAT file so the game can understand it. More general info about the image creation can be seen in Creating the PNG image.Parameter |
Direction |
Example Value |
---|---|---|
Image[S] | going south | image_name.Y.X |
Image[N] | going north | image_name.Y.X |
Image[E] | going east | image_name.Y.X |
Image[W] | going west | image_name.Y.X |
Image[SW] | going southwest | image_name.Y.X |
Image[SE] | going southeast | image_name.Y.X |
Image[NW] | going northwest | image_name.Y.X |
Image[NE] | going northeast | image_name.Y.X |
Example
Example for download: citycar_src.zip (1.80 Kb)Examples are modified versions from the pak64 open-source repository.
Clean. Use to edit. Copy to clipboard
|
Example PNG image This PNG lets you correctly align the vehicles in pak64. Green color is the car's front. Plugin Image No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src. |
Green car pak64 Copy to clipboard
|
PNG image green_car.png Plugin Image No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src. |
Motorcycle pak64 Copy to clipboard
|
PNG image motorrad.png Plugin Image No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src. |
Ambulance pak64 Copy to clipboard
|
PNG image amubulanz.png Plugin Image No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src. |
Last wiki comments