Variable:disabledtrackcfg

From TTWiki
Revision as of 17:44, 13 June 2011 by Orudge (talk | contribs) (11 revisions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

"disabledtrackcfg" is an attribute of bridges. The value of it decides which types of track sections that bridge type cannot use. The attribute is a bit mask. Below are some common values for bridges:

0 - No restrictions - Used by the brick bridge
3 - No slopes - Used by the steel girder bridge
4 - No curved slopes
7 - No slopes - Used by the wooden bridge
2555 - No slopes, junctions, or corners - Used by the steel arch and suspension bridges


The following are the complete listings of what each bit in the bit mask does. To create a value for your "disabledtrackcfg" variable, add up all the values from the effects you want.

Bit Value Effect
01 1 disable normal slope (straight + curved)
02 2 disable steep slope (straight + curved)
03 4 disable curved slopes
04 8 disable diagonal track
05 16 disable tight corner
06 32 disable small corner
07 64 disable medium corner
08 128 disable wide corner
09 256 disable S-bend track
10 512 ?
11 1024 ?
12 2048 disable junctions
13 4096 ?
14 8192 ?
15 16384 ?
16 32768 ?

[_pw9_]

nvnv