Lade...
 

Bridge parameters


DAT parameters for Bridgelink

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 number
intro_year introduction year 1994  number
retire_month retirement month 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 number
max_height bridge max height in tiles number
pillar_distance pillar distance in tiles number
pillar_asymmetric avoid pillars on slopes number


'obj' Parameterlink

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

'name' Parameterlink

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.
Used to show who made the object, generally the image. Use whatever you want to identify yourself, name or nickname.

'intro_month' Parameterlink

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' Parameterlink

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' Parameterlink

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' Parameterlink

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' Parameterlink

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' Parameterlink

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' Parameterlink

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' Parameterlink

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' Parameterlink

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

'max_lenght' Parameter siclink

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' Parameterlink

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' Parameterlink

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

'pillar_asymmetric' Parameterlink

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.
error Plugin Image
No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src.

PNG image for Bridgeslink

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

Exampleslink

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.

error 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
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

error 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
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

error 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
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

error 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
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)

error Plugin Image
No image specified. One of the following parameters must be set: fileId, randomGalleryId, fgalId, attId or src.


Seite bewerten

Zu dieser Seite haben beigesteuert: Frank , An_dz , IgorEliezer und system .
Seite zuletzt geändert: am Montag August 15, 2016 20:51:03 GMT-0000 von Frank.

Page discussion

There are no discussions currently on this page Start discussion

Online Benutzer

8 Benutzer (alle) online

Neueste Forenbeiträge