Loading...
 

Tunnel parameters



Settings in the DAT files of tunnellink


{TRAFD(fields=>9,filtervalue=>2)}{TRAFD}

tunnel_src.zip (13.10 Kb) {TRAFD(fields=>9,filtervalue=>7)}{TRAFD}


Tunnel until version 0.90.00.1link

Makeobj 39

Until version 0.90.00.1 there were only 2 types of tunnel; One for rail and for a road. The names were predefined.

   Parameters   
Meaning
Value
Format
obj Kind of object tunnel this text exactly
name Name of the object RailTunnel
RoadTunnel
this text exactly
Version 0.99.01 freely selectable
cursor Mouse cursor at Tunnel selection Image reference
icon Button in the menu Image indication Parameter and image information separated by ‘=> ‘.
BackImage[N] Background image suspended for the north slopes Image reference
FrontImage[N] Foreground image for the north slopes Image reference
BackImage[S] Background image for the south slopes Image reference
FrontImage[S] Foreground image for the south slopes Image reference
BackImage[E] Background image for the east slopes Image reference
FrontImage[E] Foreground image for the east slopes Image reference
BackImage[W] Background image for the west slopes Image reference
FrontImage[W] Foreground image for the west slopes Image reference


Example of a road tunnel

Grafics file tunnel-road.png

copyright=MHz
copyright=MHz

Dat file tunnel_road.dat
obj=tunnel
name=RoadTunnel
copyright=MHz
BackImage[N]=tunnel-road.1.0
FrontImage[N]=tunnel-road.0.0
BackImage[W]=tunnel-road.1.1
FrontImage[W]=tunnel-road.0.1
BackImage[S]=tunnel-road.0.2
FrontImage[S]=tunnel-road.2.2
BackImage[E]=tunnel-road.2.2
FrontImage[E]=tunnel-road.0.3
icon=> tunnel-road.1.2
cursor=tunnel-road.1.3



{TRAFD(fields=>9,filtervalue=>1)}{TRAFD}


Tunnel version 0.99.01link

Makeobj 41

From version 0.99.01 Simutrans supports tunnels for all transport routes. There are also several types of road tunnel. The name of the tunnel is now freely selectable.

There are also following parameters:


Parameters
Meaning
Value
intro_month Month of introduction Month as a number
intro_year Year of introduction 1955  Year as a number
retire_month Month by the end of Availability Month as a number
retire_year Year by the end of Availability 1982  Year as a number
waytype Type of tunnel Image road exactly waytype text
cost Cost per field 7500  Number in 1/100 Cr without separator
maintenance Monthly maintenance cost per field 700  Number in 1/100 Cr without separator
topspeed Maximum speed in km/h 60  Number
ab Ver. 0.102.2 Makeobj 50
way Image of tunnels underground Image existing way object


{TRAFD(fields=>9,filtervalue=>1)}{TRAFD}


Winter graphics version 0.99.06link

Makeobj 43

From version 0.99.06 for winter snow tunnel graphics can be specified. These will appear when the tile on which the tunnel is located is snowy.

The images to be used need to be specified as follows:

    Annual Graphics   
Snow Graphics
BackImage[N][0] BackImage[N][1]
FrontImage[N][0] FrontImage[N][1]
BackImage[S][0] BackImage[S][1]
FrontImage[S][0] FrontImage[S][1]
BackImage[E][0] BackImage[E][1]
FrontImage[E][0] FrontImage[E][1]
BackImage[W][0] BackImage[W][1]
FrontImage[W][0] FrontImage[W][1]


Graphics file tunnel-road.png
copyright=MHz
copyright=MHz

The graphics for the same year, and snow view.
 Sample Dat file tunnel_road_v99-06.dat
obj=tunnel
name=RoadTunnel_1
copyright=MHz
waytype=road
topspeed=60
cost=87000
maintenance=5000
intro_year=1870
retire_year=1960
icon=> tunnel-road.1.2
cursor=tunnel-road.1.3
BackImage[N][0]=tunnel-road.1.0
FrontImage[N][0]=tunnel-road.0.0
BackImage[W][0]=tunnel-road.1.1
FrontImage[W][0]=tunnel-road.0.1
BackImage[S][0]=tunnel-road.0.2
FrontImage[S][0]=tunnel-road.2.2
BackImage[E][0]=tunnel-road.2.2
FrontImage[E][0]=tunnel-road.0.3
#Wintergrafiken
BackImage[N][1]=tunnel-road.1.0
FrontImage[N][1]=tunnel-road.0.0
BackImage[W][1]=tunnel-road.1.1
FrontImage[W][1]=tunnel-road.0.1
BackImage[S][1]=tunnel-road.0.2
FrontImage[S][1]=tunnel-road.2.2
BackImage[E][1]=tunnel-road.2.2
FrontImage[E][1]=tunnel-road.0.3


{TRAFD(fields=>9,filtervalue=>1)}{TRAFD}

Tunnel portals over two or three tiles (for versions > 102.2.2)link

Makeobj 51

Parameters
Meaning
Value
BackImage[Nl] Background image for the north slopes, Portal left part Image reference
BackImage[Nm] Background image for the north slopes, Portal middle part Image reference
BackImage[Nr] Background image for the north slopes, Portal right part Image reference
FrontImage[Nl] Foreground image for the north slopes, Portal left part Image reference
FrontImage[Nm] Foreground image for the north slopes, Portal middle part Image reference
FrontImage[Nr] Foreground image for the north slopes, Portal right part Image reference
Images for the other slopes can be defined analogously
Summer/Winter images can be defined in addition with [0]/[1]


{TRAFD(fields=>9,filtervalue=>1)}{TRAFD}

Detailed Explanationslink



Image The parameters waytypelink


The parameter specifies the type of the tunnel.


Value
Meaning
road Road
track Rail
monorail_track Monorail
maglev_track Maglev
water Canal
power Power from Ver. 0.111.3



back



Image The parameter waylink



This parameter determines what way images are displayed for the tunnel way underground. Here, an existing way-object must be provided ( way.*.pak ). The value of the parameter must be the name of the way.


back



{TRAFD(fields=>9,filtervalue=>1)}{TRAFD}
Rate this page:

Contributors to this page: Frank , IgorEliezer and system .
Page last modified on Friday May 12, 2017 00:03:13 CEST by Frank.

Online Users

15 online users

Newest Forum Posts

No records to display