The m4nfo User manual and Technical Report

Properties for bridges

Defining properties of bridges

Introduction

The bridges feature allows modifying the existing 11 bridges in TTDPatch, or 13 bridges in OpenTTD. At the time being, it is not possible to create more than those default bridges.

ID Description
0Wooden Bridge
1Concrete Bridge
2Girder, Steel Bridge
3Suspension, Concrete Bridge
4Suspension, Steel (Bronze) Bridge
5Suspension, Steel (Golden) Bridge
6Cantilever, Steel (Bronze) Bridge
7Cantilever, Steel (Brown) Bridge
8Cantilever, Steel (Red) Bridge
9Girder, Steel Bridge
10Tubular, Steel (Bronze) Bridge
11*Tubular, Steel (Golden) Bridge
12*Tubular, Silicon Bridge
* OpenTTD only

Properties

Property function Description
fallback(<Byte>)Fallback type, a default TTD Bridge ID (TTDPatch only)
intro(<Dword>)Year of availability
minlength(<Byte>)Minimum length, not counting ramps
maxlength(<Byte>)Maximum length, not counting ramps
price(<Byte>)Cost factor for purchase price calculation
maxspeed(<Word>)Maximum speed allowance of bridge
flags(<List>)List of flags, see below
purchasetext(<String>)Purchase text-ID
bridgerailtext(<String>)Rail bridge description text-ID
bridgeroadtext(<String>)Road bridge description text-ID

Description

flags(<List>)

At the time being, there's only one flag, controlling whether or not to draw the far pillars for higher brdiges, which could be sult into graphic 'glitches'.

FlagMeaning
NOFARPILLARSDo not draw bridge far pillars

purchasetext(<String>)

This property sets the text appearing in the purchase window, describing what this bridge is made of, or what kind of bridge it is. It should be either the text-ID of an original bridge name, or a text set via deftxt().

bridgerailtext/bridgeroadtext(<String>)

These properties set the text-IDs used by the query tool. They should be either text-IDs of an original bridge name, or text set via deftxt().

Example bridge
deftxt(_mybridge,
	ALL, "Old bridge",
	D, UTF8 "Alte Brücke",
	F, UTF8 "Vieux pont",
	E, "Puente viejo",
	I, "Ponte vecchio"
)

definebridge(2,
	intro(1930)
	minlength(3)
	maxlength(15)
	maxspeed(50 km/h)
	price(30)
	flags(NOFARPILLARS)
	purchasetext(_mybridge)
)