Loading...
 

Ways Parameters

Settings in the DAT-files of traffic routeslink


The parameters and values are separated by '='.

Parameter
Meaning
Example
Format
obj type of object way exactly this text
name name of the object Image asphaltroad simple text
copyright the author's name Haug simple text
intro_month month the item is introduced 2 month (numeric)
intro_year year of the item's introduction 1955 year (numeric)
retire_month month the item is not available anymore 8 month (numeric)
retire_year year the item is not available anymore 1982 year (numeric)
waytype waytype Image road name from route object
cost construction costs per field 7500 value in 1/100 Cr without separator (dot, comma)
maintenance maintenance costs per field 700 value in 1/100 Cr without separator (dot, comma)
topspeed maximum allowed speed in km/h 60 numeric
max_weight maximum weight in tons 40 numeric (this parameter is not yet implemented)
Special Parameters
system_type depends on setting waytype Image 0 numeric

Graphics Configurationlink


The declared value occurs in the form:
File name without file ending.Line in the graphic arts file.Position on the line

Important: The position counting begins with 0.

Graphic arts files format: 24 bit png without alpha canal ( < Version 120.2.2 / Makeobj 60 )

Parameter
Meaning
Format
cursor mouse cursor when object is selected
icon button in the menu bar Parameter and image information separated by '=> '.


The red values above the images have to be entered between the brackets [].

Image[N]=filename.0.3
Image[SE]=filename.1.0
Image[NE]=filename.1.3
Image[NSE]=filename.2.5
...
ImageUp[9]=filename.2.1
...
Diagonal[NE]=filename.3.2
...
Image


The parameters Diagonal[NE], Diagonal[SE], Diagonal[NW] and Diagonal[SW] are optional.
They are used for straight diagonal ways.
If they are not set, curve graphics are used instead.

Winter Graphicslink

Available in Simutrans 0.99.05 (makeobj 42) and later.

For the definition of both summer and winter objects the parameter gets an extra option.

Without Snow With Snow
Image[NS][0] Image[NS][1]
Image[EW][0] Image[EW][1]
etc. etc.


Top

Switches for trackslink

Simutrans-version 0.102.2 (makeobj 50) or higher

from version 0.102.2 on it is posible to add extra switch grafics for tracks ( waytype: track, tram_track, monorail_track, maglev_track, narrowgauge_track ). They're choosen automatically in game according to the way the vehicle travels.
Therefore you need to add the red values in the []- parentheses

Image[NSE1][0]=filename.0.0
Image[NSW1][0]=filename.0.1
Image[NEW1][0]=filename.0.2
Image[SEW1][0]=filename.0.3
...
Image


Front-Images for wayslink

'from Simutrans-Version > 111.1 (makeobj > 52)'

It is now possible to define front images for ways. These images are drawn in front of everything else on a tile. This can be used to define alleys, i.e. to include trees into the front image.

(Back)Image Frontimage
Image[NS][0] FrontImage[NS][0]
Image[EW][0] FrontImage[EW][0]
etc. etc.


Top

Examplelink


road_src.zip (41.36 Kb)

Graphics File
 
way-kopfstein64.png (cobblestone road)
way-kopfstein64.png (cobblestone road)

Dat-File
Obj=way
waytype=road
Name=mip_cobblestone_road
cost=7500
maintenance=700
topspeed=60
max_weight=40
intro_year = 1330
intro_month = 9
icon=> way-kopfstein-64.3.4
cursor=way-kopfstein-64.3.5
Image[-]=way-kopfstein-64.1.2
Image[N]=way-kopfstein-64.1.5
Image[S]=way-kopfstein-64.2.1
Image[E]=way-kopfstein-64.2.2
Image[W]=way-kopfstein-64.2.0
Image[NS]=way-kopfstein-64.1.0
Image[EW]=way-kopfstein-64.1.1
Image[NSE]=way-kopfstein-64.0.2
Image[NSW]=way-kopfstein-64.0.4
Image[NEW]=way-kopfstein-64.0.1
Image[SEW]=way-kopfstein-64.0.3
Image[NSEW]=way-kopfstein-64.1.2
Image[NE]=way-kopfstein-64.3.0
Image[SE]=way-kopfstein-64.2.3
Image[NW]=way-kopfstein-64.2.4
Image[SW]=way-kopfstein-64.2.5
ImageUp[3]=way-kopfstein-64.1.3
ImageUp[6]=way-kopfstein-64.1.4
ImageUp[9]=way-kopfstein-64.0.0
ImageUp[12]=way-kopfstein-64.0.5


Top{TRAFD}


Detailed Explanationslink


Image The Parameter waytypelink


This parameter sets the type of the route object.

Value
Meaning
road guess what
track railroad
tram_track streetcar/tram
monorail_track monorail as in Simpsons
maglev_track magnetic monorail as in Singapore
water waterway
air airport road
power power line


For some routes the parameter system_type can be used.


back


Image The Parameter system_typelink


Setting this parameter is only necessary for certain values of waytype.

waytype-Value system_type-Value Meaning
track
0
normal track
1
elevated track
7
streetcar track
64
only underground from Ver. 0.102.2
255
Placeholder (fences, walls, etc.)
waytype-Value system_type-Value Meaning
monorail_track
maglev_track
narrowgauge_track
road
0
normal
1
elevated
64
only underground from Ver. 0.102.2
waytype-Value system_type-Value Meaning
air
0
taxiway
1
runway
waytype-Value system_type-Value Meaning
water
0
canal
1
runway
255
river from Ver. 0.102


back

Image 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

Top

Rate this page:
Contributors to this page: Frank , IgorEliezer and system .
Page last modified on Monday October 23, 2017 14:36:46 GMT-0000 by Frank.

Page discussion

There are no discussions currently on this page Start discussion