There are eight pictures for a crossing : two directions, two positions (opened and closed) and two pictures for each : one displayed behind vehicles and one displayed before them. This is the .dat file pattern :
openimage[ns][0]=image.x.y
front_openimage[ns][0]=image.x.y
closedimage[ns][0]=image.x.y
front_closedimage[ns][0]=image.x.y
openimage[ew][0]=image.x.y
front_openimage[ew][0]=image.x.y
closedimage[ew][0]=image.x.y
front_closedimage[ew][0]=image.x.y
openimage[ns][1]=image.x.y
front_openimage[ns][1]=image.x.y
closedimage[ns][1]=image.x.y
front_closedimage[ns][1]=image.x.y
openimage[ew][1]=image.x.y
front_openimage[ew][1]=image.x.y
closedimage[ew][1]=image.x.y
front_closedimage[ew][1]=image.x.y
Front_x stand for pictures displayed before vehicles, other stand for pictures displayed behind vehicles.
Openimages are the pictures for the opened crossing (vehicles of waytype[0] can pass) and the Closedimages are the pictures for the closed crossing (vehicles of waytype[1] can pass).
The pictures x[1] are winter graphics. They're optional.
Parameter | Description | Content | Example |
obj | object type | crossing | |
name | name | text | rail-road-crossing |
waytype[0] | way type 1 | internal name | road |
waytype[1] | way type 2 | internal name | track |
speed[0] | max speed for way 1 | number | 40 |
speed[1] | max speed for way 2 | number | 160 |
copyright | name of the creator | text | Gauthier |