JTraffic Screensaver

M=FOLLOW;

M=FOLLOW;\
M=M2;\

Multiple vehicles/trains follow each other at random distances.  The trains never collide with each other, even when they appear on the screen with differing speeds.

TB = <WaitTime>; Waiting time and actions before the train enters the screen.

C = <TrainList>;    The trains follow each other in a row.  The (multiple!) trains must be separated from one another with a semicolon ";" and therefore must be enclosed in parentheses because a semicolon normally designates the end of a command.  For example C=(engine1,coach11;engine2,coach21,coach22;engine3,coach31);.

D = <Direction>;    Direction which all the trains move across the screen.

V = <Speed>;        Speed at which the train appears to travel across the screen.  If no value is specified, the trains use the default value in its Stock List entry ( [#V: ]) if one is specified, otherwise the value is determined by random. If the parameter has a random expression, the expression will be evaluated for each train separately, so the trains can have different accelerations.

A = <Acceleration>; Rate of acceleration for the train.  When a train disappears from the screen and the train immediately following it has a higher top speed, it will accelerate to that speed using this parameter. If this parameter has a random expression, the expression will be evaluated for each train separately, so the trains can have different accelerations.

B = <Deceleration>; Deceleration rate for the train.  If a slower train precedes the appearance of a new, faster moving train on the screen, the faster train will slow to avoid a collision using this parameter.  It also determines how far distant a train must be from its neighbor before it must begin to decelerate. If this parameter has a random expression, the expression will be evaluated for each train separately, so the trains can have different decelerations.

TE = <WaitTime>; Waiting time and actions after the train has left the screen.

W = <Row>;          Simple roadbed which appears under (or in the case of catenary, also above) the train.

BG = <FgBg>;        Background picture(s) shown behind the moving train.

FG = <FgBg>;        Foreground picture(s) shown before the moving train.

WP = <PointList>;   Waypoint(s) which determine points along the roadbed which, when passed by the train, actions can be triggered.

TX = <LineText> ; Descriptive text under the track.
If you use macros in the text depending on the vehicles actually running, only the vehicles of the first train will be used for generating the text!
TXX = <Place> ; Horizontal position of the descriptive text.
TXY = <Integer> ; Vertical position of the descriptive text.
TXC = <Color> ; Character colour of the descriptive text.
TXB = <Color> ; Background colour of the descriptive text.

Overview
The Configuration Window
Program Window
Stock List
Description Editor
Graphic Testpad
Timetable Editor
Timetable Syntax and Semanics
The timetable header
Sections, Groups, Lines, Scenes
Actions
Stock List File