Loading...
 
Citycar parameters

City vehicle parameters


DAT parameters for Citycarslink

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 number
intro_year introduction year 1994  number
retire_month retirement month number
retire_year retirement year 2030  number
DistributionWeight frequency it’s shown number


‘obj’ Parameterlink

This parameter defines the object type. To be a citycar its value is obligatory citycar.

‘name’ Parameterlink

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.
Used to show who made the object, generally the image. Use whatever you want to identify yourself, name or nickname.

‘speed’ Parameterlink

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’ Parameterlink

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’ Parameterlink

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’ Parameterlink

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’ Parameterlink

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’ Parameterlink

Determines the frequency the citycar will show in the streets, higher values means higher probability.

Default value if ommited is 1.

PNG image for Citycarslink

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

Examplelink

Example for download: citycar_src.zip (1.80 Kb)

Examples are modified versions from the pak64 open-source repository.
Clean. Use to edit.
obj=citycar
name=
copyright=
speed=
DistributionWeight=
intro_year=
intro_month=
retire_year=
retire_month=
Image[S]=imagem.Y.2
Image[N]=imagem.Y.4
Image[E]=imagem.Y.0
Image[W]=imagem.Y.6
Image[SE]=imagem.Y.1
Image[SW]=imagem.Y.7
Image[NE]=imagem.Y.3
Image[NW]=imagem.Y.5

Example PNG image

This PNG lets you correctly align the vehicles in pak64. Green color is the car’s front.

example PNG for pak64
example PNG for pak64


Green car pak64
obj=citycar
name=green_car
DistributionWeight=10
intro_year = 1960
retire_year = 1995
speed = 130
Image[S]=green_car.0.0
Image[N]=green_car.0.1
Image[E]=green_car.0.2
Image[W]=green_car.0.3
Image[SE]=green_car.0.4
Image[NW]=green_car.0.5
Image[NE]=green_car.0.6
Image[SW]=green_car.0.7

PNG image green_car.png

green_car.png modified for wiki from citycars.png
green_car.png modified for wiki from citycars.png


Motorcycle pak64
obj=citycar
copyright=MHz
name=Motorrad
DistributionWeight=2
intro_year = 1928
retire_year = 2020
speed = 90
Image[S]=motorrad.0.0
Image[N]=motorrad.0.1
Image[E]=motorrad.0.2
Image[W]=motorrad.0.3
Image[SE]=motorrad.0.4
Image[NW]=motorrad.0.5
Image[NE]=motorrad.0.6
Image[SW]=motorrad.0.7

PNG image motorrad.png

motorrad.png modified for wiki from citycars.png
motorrad.png modified for wiki from citycars.png


Ambulance pak64
obj=citycar
name=Ambulanz
DistributionWeight=1
intro_year = 1929
speed = 90
Image[S]=ambulanz.0.0
Image[N]=ambulanz.0.1
Image[E]=ambulanz.0.2
Image[W]=ambulanz.0.3
Image[SE]=ambulanz.0.4
Image[NW]=ambulanz.0.5
Image[NE]=ambulanz.0.6
Image[SW]=ambulanz.0.7

PNG image amubulanz.png

ambulanz.png modified for wiki from citycars.png
ambulanz.png modified for wiki from citycars.png


Rate this page:

Contributors to this page: An_dz , IgorEliezer and system .
Page last modified on Tuesday October 20, 2015 05:37:44 CEST by An_dz.

Online Users

11 online users

Newest Forum Posts

No records to display