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. Plugin Image
No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src.
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
|
Example PNG image This PNG lets you correctly align the bridge. Cubes are pillars, red area is front. Plugin Image No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src. |
Viaduct rail bridge pak64 Copy to clipboard
|
PNG image bridges-viaduct-rail.png.png Plugin Image No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src. |
Canal bridge pak64 Copy to clipboard
|
PNG image bridges-schiffshebewerk.png Plugin Image No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src. |
Modern rail bridge pak64 Copy to clipboard
|
PNG image bridges-modern-road.png Plugin Image No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src. |
Wooden road bridge pak64 Copy to clipboard
|
PNG image bridges-wooden-road.png (With winter images) Plugin Image No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src. |
Last wiki comments