Cookie Consent

This website would like to place cookies on your computer to improve the quality of your experience of the site. To find out more about the cookies, see our privacy notice.

Loading...
 
Skip to main content

Site identity, navigation, etc.

Simutrans Tikiwiki
Simutrans Tikiwiki
The official wiki for Simutrans
I forgot my password
CapsLock is on.
  • Login with 2FA

Navigation and related functionality and content

Translations
English (en)Dansk (da)Deutsch (de)Español (es)Français (fr)Italiano (it)Magyar (hu)Nederlands (nl)Norsk (no)Polszczyzna (pl)Português (pt)Suomi (fi)Svenska (sv)Česky (cs)Ελληνικά (el)Русский (ru)日本語 (ja)正體中文 (tw)简体中文 (cn)
Structures
Development Index
Page actions
Print
  1. Development Index
  2. Create DAT files
  3. Tunnel parameters

Table of contents

  • Settings in the DAT files of tunnel
    • Tunnel until version 0.90.00.1
    • Tunnel version 0.99.01
    • Winter graphics version 0.99.06
    • Tunnel portals over two or three tiles (for versions > 102.2.2)
    • Detailed Explanations
      • Image The parameters waytype
      • Image The parameter way

Settings in the DAT files of tunnel


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

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

Tunnel until version 0.90.00.1

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
Copy to clipboard
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.01

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 2 Month as a number
intro_year Year of introduction 1955 Year as a number
retire_month Month by the end of Availability 8 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.06

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

Copy to clipboard
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)

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 Explanations


Image The parameters waytype


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 way


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}

  1. Development Index
  2. Create DAT files
  3. Tunnel parameters
Rate this page:

Contributors to this page: Frank , IgorEliezer and system .
Page last modified on Wednesday October 18, 2023 16:56:16 CEST by Frank.
This content is licensed under the terms of the Copyright.
History Source
Contributions by author Discuss

More content and functionality (left side)

....

Copyright
Impressum

Data protection

Search

System Menu

  • Home
  • Search
  • Contact Us
  • Stats
  • Categories
  • Tags
  • Wiki
    • Wiki Home
    • Last Changes
    • Rankings
    • List Pages
    • Sandbox
    • Structures
  • Articles
    • Articles Home
    • List Articles
    • Submit Article
    • View submissions
  • Forums
    • List Forums
  • Directory
    • Submit a new link
    • Browse Directory
  • File Galleries
    • List Galleries
  • Spreadsheets
    • List Sheets
  • Trackers
    • List Trackers
    • Offline mode
  • Surveys
    • List Surveys
    • Stats

Articles

  1. Simutrans 124.5
  2. Simutrans 124.4.1
  3. unofficial pak64.german 0.124.4.0.1
  4. Simutrans 124.4
  5. PAK128.German 2.4
  6. unofficial pak64.german 0.124.0.0.7
  7. unofficial pak64.german 0.124.0.0.6
  8. Simutrans 124.3.1
  9. unofficial pak64.german 0.124.0.0.5
  10. 2024 Simutrans Screenshot Contest

Latest Changes

  1. de_simuconf_tab_pakset
  2. Home
  3. en_Code_Overview_3_Ribis_and_Slopes
  4. en_Code_Overview_2_Ways
  5. en_Code_Overview_1_World
  6. Copyright
  7. en_Code_Overview_5_Vehicles_and_Convoys
  8. en_Code_Overview_7_Movement_of_Convoys
  9. en_Code_Overview_6_Schedules_and_Routes
  10. en_Code_Overview_4_Signs
...more

Online Users

2349 online users

Newest Forum Posts

  1. Aw: en_menuconf_tab: Wofür steht 'ribi'?
  2. en_menuconf_tab: Wofür steht 'ribi'?

BugTracker

  1. Signals waytype tram_track not correct work
  2. fehlerhafte Darstellung bei Untergrundstrom
  3. ungleiche Frachtverteilung an Ölborinseln
  4. Liste verfügbare Fahrzeuge
  5. Grafikfehler Bodentextur
  6. Linksklick in Haltliste
  7. blank menu show

Last wiki comments

  1. en_BuildAnAirport: "In Extended, they have to..."
  2. en_BuildAnAirport: "Is there any advice on how..."
  3. en_Simutrans_repo_deb: "When installing..."
  4. en_Simutrans_repo_deb: "Also with Linux Mint 21.1 -..."
  5. en_Simutrans_repo_deb: "After a while, I found..."
  6. en_Simutrans_repo_deb: "Hi, I tested the following..."
  7. de_VehicleDef: "Loading time ist ein..."
  8. de_tikiwiki_hilfe_index: "cialis normaldosis <a..."
  9. de_tikiwiki_hilfe_index: "cialis moment urban..."
  10. de_FactoryDef: "z.B. bei Ölbohrinseln mit..."

Site information, links, etc.