Settings in the bridge DAT file
{TRAFD(fields=>16,filtervalue=>2)}{TRAFD}
bridge_src.zip (17.59 Kb)
Parameter |
Meaning |
Value |
Format |
obj |
Type of object |
bridge |
exactly this text |
name |
Name of the bridge
|
Steel bridge |
plain text |
copyright |
Name of authors/artists |
|
plain text |
intro_month |
Introduction month |
2 |
month as number |
intro_year |
Introduction year |
1955 |
year as number |
retire_month |
Retirement month |
8 |
month as number |
retire_year |
Retirement year |
1982 |
year as number |
waytype |
Type of bridge
|
road |
plain text |
cost |
Building cost per tile |
7500 |
Number in 1/100 Cr without spaces |
maintenance |
Maintenance cost per tile |
700 |
Number in 1/100 Cr without spaces |
topspeed |
Max. speed in km/h |
60 |
Number |
max_weight |
Combined max weight in tonnes |
40 |
Number |
max_lenght |
Max length of bridge in tiles |
8 |
Number Note! The misspelling of the variable must be kept |
pillar_distance |
Distance in tiles between the pillars |
2 |
Number |
from Ver. 0.99.16 |
|
|
|
max_height |
Height of bridge |
5 |
Number in range 1 - 7 |
pillar_asymmetric |
Avoid pillars on slopes |
1 |
Number |
{TRAFD(fields=>16,filtervalue=>1)}{TRAFD}
The parameter for graphics
The values are given in the following format:
{TRAFD(fields=>16,filtervalue=>9)}{TRAFD}
Parameter |
Meaning |
Format |
cursor |
Cursor when selecting bridge |
|
icon |
Menu icon |
Parameter en beeld informatie worden gescheiden door '=> '. |
Bridge road bed
Parameter |
Meaning |
BackImage[NS] |
Background graphics for direction north-south
|
FrontImage[NS] |
Foreground graphics for direction north-south
|
BackImage[EW] |
Background graphics for direction east-west
|
FrontImage[EW] |
Foreground graphics for direction east-west
|
|
|
Pillars (optional)
Parameter |
Meaning |
backPillar[S] |
Pillar graphics for direction north-south
|
backPillar[W] |
Pillar graphics for direction east-west
|
|
Slopes
Parameter |
Meaning |
BackStart[N] |
Background graphics direction north
|
FrontStart[N] |
Foreground graphics direction north
|
BackStart[S] |
Background graphics direction south
|
FrontStart[S] |
Foreground graphics direction south
|
BackStart[E] |
Background graphics direction east
|
FrontStart[E] |
Foreground graphics direction east
|
BackStart[W] |
Background graphics direction west
|
FrontStart[W] |
Foreground graphics direction west
|
|
|
Ramps
Parameter |
Meaning |
BackRamp[N] |
Background graphics direction north
|
FrontRamp[N] |
Foreground graphics direction north
|
BackRamp[S] |
Background graphics direction south
|
FrontRamp[S] |
Foreground graphics direction south
|
BackRamp[E] |
Background graphics direction east
|
FrontRamp[E] |
Foreground graphics direction east
|
BackRamp[W] |
Background graphics direction west
|
FrontRamp[W] |
Foreground graphics direction west
|
|
Winter graphics
from Simutrans Version 0.99.06 (makeobj 43)
To use winter graphics the graphics parameter has to be expanded with yet another value.
without snow |
with snow |
BackImage[NS][0] |
BackImage[NS][1] |
FrontImage[NS][0] |
FrontImage[NS][1] |
etc. |
etc. |
{TRAFD(fields=>16,filtervalue=>1)}{TRAFD}
Example
Graphics file
|
DAT File
Copy to clipboard Obj=bridge
name=Stahlbruecke
#copyright=
waytype=track
cost=95000
maintenance=2500
topspeed=250
max_lenght=10
intro_year=1880
cursor=example_bridge_image.2.0
icon=> example_bridge_image.2.5
BackImage[NS]=example_bridge_image.0.5
FrontImage[NS]=example_bridge_image.1.5
BackImage[EW]=example_bridge_image.0.4
FrontImage[EW]=example_bridge_image.1.4
BackStart[N]=example_bridge_image.0.0
FrontStart[N]=example_bridge_image.1.0
BackStart[S]=example_bridge_image.0.2
FrontStart[S]=example_bridge_image.1.2
BackStart[E]=example_bridge_image.0.1
FrontStart[E]=example_bridge_image.1.1
BackStart[W]=example_bridge_image.0.3
FrontStart[W]=example_bridge_image.1.3
BackRamp[N]=example_bridge_image.2.1
FrontRamp[N]=-
BackRamp[S]=example_bridge_image.2.3
FrontRamp[S]=-
BackRamp[E]=example_bridge_image.2.4
FrontRamp[E]=-
BackRamp[W]=example_bridge_image.2.2
FrontRamp[W]=-
|
{TRAFD(fields=>16,filtervalue=>1)}{TRAFD}
{TRAFD(fields=>16,filtervalue=>4)}{TRAFD}
The waytype parameter
This parameter decides on which types of ways the bridge can be used.
Value |
Meaning |
road |
road |
track |
railway |
monorail_track |
monorail / maglev |
water |
waterway |
power |
power line |
Back
The "Name" parameter
{TRAFD(fields=>16,filtervalue=>3)}{TRAFD}
Back
{TRAFD(fields=>16,filtervalue=>1)}{TRAFD}
Die letzten Wiki-Kommentare