Track speed

The maximum speed a train should operate on track is set in four locations.

Route

In the route.trk file the maximum speed for the entire route is set in meters per second (m/s). The name of this file is defined in the RouteID and should match the name of the folder containing the route.

SpeedLimit ( 26.8224 )

Speed posts

In the track database file route.tdb the maximum speed is set for trains in the direction of the speed post. For the speed post the limit is 60 mph, the second attribute of element SpeedpostTrItemData.

    SpeedPostItem (
        TrItemId ( 1186 )
        TrItemSData ( 124.177 00000006 )
        TrItemPData ( 443.845 173.534 -12513 15030 )
        TrItemRData ( 443.845 301.293 173.534 -12513 15030 )
        SpeedpostTrItemData ( 898 60 -0.0392686 )
    )

Signals

In file sigcfg.dat the maximum speed when a signal is passed for each indication is set. For a restricting indication the limit is set to 20 mph.

SignalAspect ( RESTRICTING “Flashing Red” SpeedMPH ( 20 )

Temporary restrictions

In the activity file activity.act temporary speed restrictions are defined. The temporary restricted speed is set in the route.trk file in meters per second (m/s).

        ActivityRestrictedSpeedZone (
            StartPosition ( -12513 15030 402 178 )
            EndPosition ( -12513 15030 526 166 )
        )
TempRestrictedSpeed ( 6.7056 )

Leave a Reply