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

Bridge parameters
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. Bridge parameters

Table of contents

  • DAT parameters for Bridge
    • 'obj' Parameter
    • 'name' Parameter
    • 'copyright' Parameter
    • 'intro_month' Parameter
    • 'intro_year' Parameter
    • 'retire_month' Parameter
    • 'retire_year' Parameter
    • 'waytype' Parameter
    • 'cost' Parameter
    • 'maintenance' Parameter
    • 'topspeed' Parameter
    • 'max_weight' Parameter
    • 'max_lenght' Parameter sic
    • 'max_height' Parameter
    • 'pillar_distance' Parameter
    • 'pillar_asymmetric' Parameter
  • PNG image for Bridges
  • Examples

DAT parameters for Bridge

The parameters and values are separated by = .

Parameter
Meaning
Example Value
Format
obj object type bridge exactly this text
name bridge name concrete bridge simple text
copyright creator name Myself simple text
intro_month introduction month 2 number
intro_year introduction year 1994 number
retire_month retirement month 8 number
retire_year retirement year 2030 number
waytype way type road simple text
cost construction cost 7500 number
maintenance maintenance cost 700 number
topspeed top speed 60 number
max_weight vehicle max weight 40 number
max_lenght bridge max lenght in tiles 8 number
max_height bridge max height in tiles 5 number
pillar_distance pillar distance in tiles 2 number
pillar_asymmetric avoid pillars on slopes 1 number

'obj' Parameter

This parameter defines the object type. For being a bridge obligatory it's bridge.

'name' Parameter

This parameter is the name of the object. This name should not correspond with the name of an object file *.pak in the in-use pakset folder.

'copyright' Parameter

Used to show who made the object, generally the image. Use whatever you want to identify yourself, name or nickname.

'intro_month' Parameter

Bridge's introduction month, the month the bridge will become available for construction. The number used is the corresponding month, 1 (one) for January and 12 (twelve) for December. If not included January is used.

This parameter only works with intro_year parameter.

'intro_year' Parameter

Bridge's introduction year, or year the the bridge will become available for construction. Number correspond with the year. Negative numbers are not allowed.

This parameter is obligatory, if neglected bridge will never show in-game.

'retire_month' Parameter

Bridge's retirement month, the month the bridge will become unavailable for construction. The number used is the corresponding month, 1 (one) for January and 12 (twelve) for December.

This parameter only works with intro_year parameter.

'retire_year' Parameter

Bridge's retirement year, or year the bridge will become unavailable for construction. Number correspond with the year. Negative numbers are not allowed.

This parameter is not obligatory, without it bridge will be available forever.

'waytype' Parameter

This parameter defines the way type of the bridge. Parameters are fixed in the code and con only be those:

Value
Meaning
road road
track train track
tram_track tram track
maglev_track maglev track
narrowgauge_track narrow gauge track
water canals
monorail_track monorail track
power power lines
air* airport ways
  • Airport lane bridges don't exist, nor work. But can created in theory.

'cost' Parameter

Construction cost for every bridge tile. Number is an integer and last two algorithm are the cents. For example if value is 7550 in-game price will be 75,50¢.

'maintenance' Parameter

Monthly maintainence cost per bridge tile. Number is an integer and last two algorithm are the cents. For example if value is 4050 in-game maintainence will be 40,50¢.

'topspeed' Parameter

The bridge maximum allowed speed in km/h. Vehicles won't surpass this speed. Value of 100 will give a bridge with 100 km/h top speed.

'max_weight' Parameter

Defines the maximum weight a vehicle is allowed to have to cross the bridge. This parameter only works in Simutrans Experimental.

'max_lenght' Parameter sic

Maximum length in tiles a bridge may have. Real useful for creating bridges that are fragile with big distances. NOTE, PARAMETER MUST BE MIS-SPELLED TO WORK.

'max_height' Parameter

Sets the maximum height in tiles a bridge may have. This let some bridges don't look strange with giant pillars. Number must be defined between 1 and 7.

'pillar_distance' Parameter

Sets the distance in tiles betwen pillar graphics, if 0 every tile will have a pillar.

'pillar_asymmetric' Parameter

When the pillar graphic is not in the middle of the tile, this tile helps. It removes the pillar graphic at the bridge's ends. Check the example below, the upper bridge don't use this parameter, that's why a buggy pillar appears.

Upper bridge don't use pillar_asymmetric, you can clearly see the bug at the start.
Upper bridge don't use pillar_asymmetric, you can clearly see the bug at the start.

PNG image for Bridges

Not only the PNG image must be created but parameters must be included in the DAT file so the game can understand it. More general info about the image creation can be viewed in Creating the PNG image.

Bridges may have winter images, generally with snow. For more details check Adding Climate Parameters.

Cursor and menu icon (icon parameter and value must be separated by '=> ')

Parameter
Meaning
cursor cursor when using the tool
icon icon on the menu

Bridge Middle
The middle graphic is repeated all along the bridge lenght.

Parameter
Meaning
BackImage[NS] Back image for north-south direction
FrontImage[NS] Front image for north-south direction
BackImage[EW] Back image for east-west direction
FrontImage[EW] Front image for east-west direction

Bridge Edges
Graphics at bridge's edges.

Parameter
Meaning
BackStart[N] Back image for north direction
FrontStart[N] Front image for north direction
BackStart[S] Back image for south direction
FrontStart[S] Front image for south direction
BackStart[E] Back image for east direction
FrontStart[E] Front image for east direction
BackStart[W] Back image for west direction
FrontStart[W] Front image for west direction

Bridge Ramps
Access ramps when bridges are not built in same height the land is.

Parameter
Meaning
BackRamp[N] Back image for north direction
FrontRamp[N] Front image for north direction
BackRamp[S] Back image for south direction
FrontRamp[S] Front image for south direction
BackRamp[E] Back image for east direction
FrontRamp[E] Front image for east direction
BackRamp[W] Back image for west direction
FrontRamp[W] Front image for west direction

Pillars
Bridge pillars. They are optional.

Parameter
Meaning
backPillar[S] Pillar graphics for direction north-south
backPillar[W] Pillar graphics for direction east-west

Examples

Example for download: bridge_src.zip (17.59 Kb)

Examples are modified versions from the pak64 open-source repository.

Clean. Use to edit.
Copy to clipboard
obj=bridge name= copyright= intro_year= intro_month= retire_year= retire_month= waytype= cost= maintenance= topspeed= max_weight= max_height= max_lenght= pillar_distance= pillar_asymmetric= cursor=imagem.3.1 icon=> imagem.3.0 BackImage[NS]=imagem.2.0 FrontImage[NS]=imagem.Y.X BackImage[EW]=imagem.2.1 FrontImage[EW]=imagem.Y.X BackRamp[N]=imagem.0.0 FrontRamp[N]=imagem.Y.X BackRamp[W]=imagem.0.1 FrontRamp[W]=imagem.Y.X BackRamp[S]=imagem.0.2 FrontRamp[S]=imagem.Y.X BackRamp[E]=imagem.0.3 FrontRamp[E]=imagem.Y.X BackStart[N]=imagem.1.0 FrontStart[N]=imagem.Y.X BackStart[S]=imagem.1.1 FrontStart[S]=imagem.Y.X BackStart[E]=imagem.1.2 FrontStart[E]=imagem.Y.X BackStart[W]=imagem.1.3 FrontStart[W]=imagem.Y.X backPillar[S]=imagem.2.2 backPillar[W]=imagem.2.3

Example PNG image

This PNG lets you correctly align the bridge. Cubes are pillars, red area is front.

Example PNG example for pak128
Example PNG example for pak128

Viaduct rail bridge pak64
Copy to clipboard
obj=bridge name=ViaductRail copyright=prissi waytype=track cost=150000 maintenance=1000 topspeed=100 max_weight=120 max_lenght=0 max_height=7 intro_year=1835 cursor=bridges-viaduct-rail.2.4 icon=> bridges-viaduct-rail.2.5 pillar_distance=1 pillar_asymmetric=1 BackImage[NS]=bridges-viaduct-rail.0.0 FrontImage[NS]=bridges-viaduct-rail.1.0 BackImage[EW]=bridges-viaduct-rail.0.1 FrontImage[EW]=bridges-viaduct-rail.1.1 BackRamp[N]=bridges-viaduct-rail.0.2 #FrontRamp[N]=bridges-viaduct-rail.1.2 BackRamp[W]=bridges-viaduct-rail.0.3 #FrontRamp[W]=bridges-viaduct-rail.1.3 BackRamp[S]=bridges-viaduct-rail.0.4 #FrontRamp[S]=bridges-viaduct-rail.1.4 BackRamp[E]=bridges-viaduct-rail.0.5 #FrontRamp[E]=bridges-viaduct-rail.1.5 BackStart[N]=bridges-viaduct-rail.2.0 #FrontStart[N]=bridges-viaduct-rail.3.0 BackStart[S]=bridges-viaduct-rail.2.1 #FrontStart[S]=bridges-viaduct-rail.3.1 BackStart[E]=bridges-viaduct-rail.2.2 #FrontStart[E]=bridges-viaduct-rail.3.2 BackStart[W]=bridges-viaduct-rail.2.3 #FrontStart[W]=bridges-viaduct-rail.3.3 backPillar[S]=bridges-viaduct-rail.3.4 backPillar[W]=bridges-viaduct-rail.3.5

PNG image bridges-viaduct-rail.png.png

bridges-viaduct-rail.png from pak64 SVN
bridges-viaduct-rail.png from pak64 SVN

Canal bridge pak64
Copy to clipboard
obj=bridge name=Schiffhebewerk copyright=MHz waytype=water cost=115000 maintenance=1000 topspeed=20 max_weight=1 max_lenght=4 intro_year=1910 cursor=bridges-schiffshebewerk.2.4 icon=> bridges-schiffshebewerk.2.5 BackImage[NS]=bridges-schiffshebewerk.0.0 FrontImage[NS]=bridges-schiffshebewerk.1.0 BackImage[EW]=bridges-schiffshebewerk.0.1 FrontImage[EW]=bridges-schiffshebewerk.1.1 BackRamp[N]=bridges-schiffshebewerk.0.2 FrontRamp[N]=bridges-schiffshebewerk.1.2 BackRamp[W]=bridges-schiffshebewerk.0.3 FrontRamp[W]=bridges-schiffshebewerk.1.3 BackRamp[S]=bridges-schiffshebewerk.0.4 FrontRamp[S]=bridges-schiffshebewerk.1.4 BackRamp[E]=bridges-schiffshebewerk.0.5 FrontRamp[E]=bridges-schiffshebewerk.1.5 BackStart[N]=bridges-schiffshebewerk.2.0 FrontStart[N]=bridges-schiffshebewerk.3.0 BackStart[S]=bridges-schiffshebewerk.2.1 FrontStart[S]=bridges-schiffshebewerk.3.1 BackStart[E]=bridges-schiffshebewerk.2.2 FrontStart[E]=bridges-schiffshebewerk.3.2 BackStart[W]=bridges-schiffshebewerk.2.3 FrontStart[W]=bridges-schiffshebewerk.3.3

PNG image bridges-schiffshebewerk.png

bridges-schiffshebewerk.png taken from pak64 SVN
bridges-schiffshebewerk.png taken from pak64 SVN

Modern rail bridge pak64
Copy to clipboard
obj=bridge name=ModernRoad copyright=moistboy waytype=road cost=150000 maintenance=3500 topspeed=110 max_weight=120 max_lenght=0 intro_year=1940 cursor=bridges-modern-road.2.4 icon=> bridges-modern-road.2.5 pillar_distance=2 BackImage[NS]=bridges-modern-road.0.0 FrontImage[NS]=bridges-modern-road.1.0 BackImage[EW]=bridges-modern-road.0.1 FrontImage[EW]=bridges-modern-road.1.1 BackRamp[N]=bridges-modern-road.0.2 FrontRamp[N]=bridges-modern-road.1.2 BackRamp[W]=bridges-modern-road.0.3 FrontRamp[W]=bridges-modern-road.1.3 BackRamp[S]=bridges-modern-road.0.4 FrontRamp[S]=bridges-modern-road.1.4 BackRamp[E]=bridges-modern-road.0.5 FrontRamp[E]=bridges-modern-road.1.5 BackStart[N]=bridges-modern-road.2.0 FrontStart[N]=bridges-modern-road.3.0 BackStart[S]=bridges-modern-road.2.1 FrontStart[S]=bridges-modern-road.3.1 BackStart[E]=bridges-modern-road.2.2 FrontStart[E]=bridges-modern-road.3.2 BackStart[W]=bridges-modern-road.2.3 FrontStart[W]=bridges-modern-road.3.3 backPillar[S]=bridges-modern-road.3.4 backPillar[W]=bridges-modern-road.3.5

PNG image bridges-modern-road.png

bridges-modern-road.png taken from pak64 SVN
bridges-modern-road.png taken from pak64 SVN

Wooden road bridge pak64
Copy to clipboard
obj=bridge name=WoodenRoad copyright=prissi/FrankP waytype=road cost=110 maintenance=1000 topspeed=20 max_weight=20 max_lenght=12 intro_year=1419 cursor=bridges-wooden-road.2.4 icon=> bridges-wooden-road.2.5 pillar_distance=1 BackImage[NS][0]=bridges-wooden-road.0.0 FrontImage[NS][0]=bridges-wooden-road.1.0 BackImage[EW][0]=bridges-wooden-road.0.1 FrontImage[EW][0]=bridges-wooden-road.1.1 BackRamp[N][0]=bridges-wooden-road.0.2 FrontRamp[N][0]=bridges-wooden-road.1.2 BackRamp[W][0]=bridges-wooden-road.0.3 FrontRamp[W][0]=bridges-wooden-road.1.3 BackRamp[S][0]=bridges-wooden-road.0.4 FrontRamp[S][0]=bridges-wooden-road.1.4 BackRamp[E][0]=bridges-wooden-road.0.5 FrontRamp[E][0]=bridges-wooden-road.1.5 BackStart[N][0]=bridges-wooden-road.2.0 FrontStart[N][0]=bridges-wooden-road.3.0 BackStart[S][0]=bridges-wooden-road.2.1 FrontStart[S][0]=bridges-wooden-road.3.0 BackStart[E][0]=bridges-wooden-road.2.2 FrontStart[E][0]=bridges-wooden-road.3.1 BackStart[W][0]=bridges-wooden-road.2.3 FrontStart[W][0]=bridges-wooden-road.3.1 backPillar[S][0]=bridges-wooden-road.3.4 backPillar[W][0]=bridges-wooden-road.3.5 # winter BackImage[NS][1]=bridges-wooden-road.4.0 FrontImage[NS][1]=bridges-wooden-road.5.0 BackImage[EW][1]=bridges-wooden-road.4.1 FrontImage[EW][1]=bridges-wooden-road.5.1 BackRamp[N][1]=bridges-wooden-road.4.2 FrontRamp[N][1]=bridges-wooden-road.5.2 BackRamp[W][1]=bridges-wooden-road.4.3 FrontRamp[W][1]=bridges-wooden-road.5.3 BackRamp[S][1]=bridges-wooden-road.4.4 FrontRamp[S][1]=bridges-wooden-road.5.4 BackRamp[E][1]=bridges-wooden-road.4.5 FrontRamp[E][1]=bridges-wooden-road.5.5 BackStart[N][1]=bridges-wooden-road.6.0 FrontStart[N][1]=bridges-wooden-road.7.0 BackStart[S][1]=bridges-wooden-road.6.1 FrontStart[S][1]=bridges-wooden-road.7.0 BackStart[E][1]=bridges-wooden-road.6.2 FrontStart[E][1]=bridges-wooden-road.7.1 BackStart[W][1]=bridges-wooden-road.6.3 FrontStart[W][1]=bridges-wooden-road.7.1

PNG image bridges-wooden-road.png (With winter images)

bridges-wooden-road.png taken from pak64
bridges-wooden-road.png taken from pak64

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

Contributors to this page: Frank , An_dz , IgorEliezer and system .
Page last modified on Monday August 15, 2016 22:51:03 CEST by Frank.
This content is licensed under the terms of the Copyright.
History Source Comments 1
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.4.1
  2. unofficial pak64.german 0.124.4.0.1
  3. Simutrans 124.4
  4. PAK128.German 2.4
  5. unofficial pak64.german 0.124.0.0.7
  6. unofficial pak64.german 0.124.0.0.6
  7. Simutrans 124.3.1
  8. unofficial pak64.german 0.124.0.0.5
  9. 2024 Simutrans Screenshot Contest
  10. Simutrans 124.3

Latest Changes

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

Online Users

848 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.