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

Ceci est une ancienne révision du document !


Ways

Graphics

Making tracks, roads, maglev tracks, canals, etc … needs much 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 pattern is on the ground, if you make a track for example, you'll have to make the track a bit higher than the ground.

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

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

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.

Essential parameters

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 cost (*100c) number 7500
topspeed max speed (km/h) number 750
max_weight max weight (t) number 100
intro_year introduction year number 2025
intro_month introduction month number 1
copyright name of the creator text Gauthier
draw_as_ding draw over things boolean (0,1) 0
system_type special parameter number 1

waytype

System_type

Possible special parameters

To make a fence, waytype = track; system_type = 255 and draw_as_ding = 1. Draw_as_ding draws the fence over graphics which are behing it. Don't forget to make topspeed = 0.

Example files

You'll find here source files of MLM way.

Voies.rar