• English
  • Français (French)

Tunnels

Png and dat patterns

Unlike ways and bridges, tunnels require few images. They are always composed of backimage (images displayed behind passing vehicles) and frontimage (images displayed before the vehicles). Here is the pattern:

obj=tunnel
waytype=
name=
cost=
maintenance=
topspeed=
way=
copyright=

intro_year=1800
intro_month=1
retire_year=2999
retire_month=1

icon⇒ source.1.2
cursor=source.1.3
frontimage[N]=source.0.0
backimage[N]=source.1.0
frontimage[W]=source.0.1
backimage[W]=source.1.1
frontimage[S]=source.0.2
frontimage[E]=source.0.3

Tunnels can have snowy images. To define them, a parameter must be added to the name of each image, equal to 0 for normal (summer) view and 1 for snowy (winter) view. Here is an example:

backimage[N]=source.1.0

#becomes …

#normal view
backimage[N][0]=source.1.0
#snowy view
backimage[N][1]=sourcewinter.1.0

Essential parameters

Parameter Description Content Example
obj object type tunnel
waytype way type internal_name maglev_track
name name texte AMT_tunnel_1
cost price (*100c) number 300000
maintenance maintenance cost (*100c) number 8000
topspeed max speed (km/h) number 750
intro_year introduction year number 2025
intro_month introduction month number 1
way way whose graphics are used for the underground tunnel name AMT
copyright name of the creator text Gauthier