Traductions possibles :
  • English
  • Français (French)

Ceci est une ancienne révision du document !


Way objects

Most of the time these objects are used to make catenaries, their graphics works the same way as way graphics and the paramater are almost the same.

Graphics

Here are two graphical patterns for ways : the second one gives rounded turns to make the work easier.

On this pattern, each width is made of a different grey, to use this pattern, take the necessary line according to the way type, delete, thanks to replace color tool and playing on the tolerance, the greys until the right width.

This is the graphical part of the .dat file, explained below.

icon= > image.4.0
cursor=image.4.1
backimage[-]=image.3.1
backimage[S]=image.0.1
backimage[N]=image.0.3
backimage[W]=image.0.2
backimage[E]=image.0.0
backimage[NS]=image.0.5
backimage[EW]=image.0.4
backimage[NSE]=image.2.3
backimage[NSW]=image.2.1
backimage[NEW]=image.2.0
backimage[SEW]=image.2.2
backimage[NSEW]=image.3.0
backimage[NE]=image.1.1
backimage[SE]=image.1.3
backimage[NW]=image.1.2
backimage[SW]=image.1.0
backimageUp[3]=image.3.3
backimageUp[6]=image.3.2
backimageUp[9]=image.3.5
backimageUp[12]=image.3.4
backdiagonal[NE]=image.2.4
backdiagonal[NW]=image.1.5
backdiagonal[SE]=image.1.4
backdiagonal[SW]=image.2.5

frontimage[-]=image.3.1
frontimage[S]=image.0.1
frontimage[N]=image.0.3
frontimage[W]=image.0.2
frontimage[E]=image.0.0
frontimage[NS]=image.0.5
frontimage[EW]=image.0.4
frontimage[NSE]=image.2.3
frontimage[NSW]=image.2.1
frontimage[NEW]=image.2.0
frontimage[SEW]=image.2.2
frontimage[NSEW]=image.3.0
frontimage[NE]=image.1.1
frontimage[SE]=image.1.3
frontimage[NW]=image.1.2
frontimage[SW]=image.1.0
frontimageUp[3]=image.3.3
frontimageUp[6]=image.3.2
frontimageUp[9]=image.3.5
frontimageUp[12]=image.3.4
frontdiagonal[NE]=image.2.4
frontdiagonal[NW]=image.1.5
frontdiagonal[SE]=image.1.4
frontdiagonal[SW]=image.2.5

Back… is for pictures displayed behind vehicles and Front… is for pictures displayed before vehicles. Here these are the same since I haven't any examples of sources for this object. If you make for example a third rail electrification, use only backimage. If you make a catenary as pillars carrying the wire are before trains, use only frontimage. If you have pillars on each side, use frontimage for the wire and the front pillar and backimage for the back pillar. Don't forget to modify coordinates of these pictures.

An easier way should be creating a picture with frontimage and a picture with backimage, so you'll only have to change the name of the picture.

This .dat file pattern is usable only in one picture (replace the name of the picture as you want). There are several pictures : cursor is the picture which is used as a cursor when you build the way, icon is the picture which appears in Simutrans'toolbox, of course an icon doesn't fill a complete 128*128 tile, it must be 32*32 px and at the top left of the 128*128 square. If you draw another thing in this square it will be displayed so be careful. ImageUp[x] are slopes, the number in brackets doesn't mean anything but is needed. Diagonal[x] are the pictures used when you make a diagonal way, if these pictures aren't defined, Simutrans will use turns'pictures (that isn't very aesthetic …). The reste of the pictures are the other positions : extremities, straight lines, turns, crossings, … This is a graphical explaination to understand :

If you use the patterns, you won't have to know that.

Paramètres basiques

Parameter Description Content Example
obj object type way
waytype way type internal_name maglev_track
name name text AMT
cost price (*100c) number 390000
maintenance maintenance price (*100c) number 7500
topspeed max speed (km/h) number 750
intro_year introduction year number 2025
intro_month introduction month number 1
copyright name of the creator text Gauthier
own_waytype
Is the object an electrification ?

(don't use it if it's not the case)
this text electrified_track

waytype