JTraffic Screensaver

Welcome to the Traffic Screensaver v. 4.15

The concept behind the Traffic Screensaver is quite simple: small vehicles move their way across the screen.

The Traffic Screensaver is "programmable" - a configuration file, called a "Timetable File" defines the trains, their movements and animations. One can make up trains from various individual coaches, wagons and locomotives; determine their movement on the screen (a simple runby, a stop, stopping and reversing, changing locomotives, coupling on new wagons, etc.); and can even call animations to run during the course of these movements (raising and lowering pantographs, opening and closing doors, etc.).  The syntax allows for the random selection of vehicles or the specific repetition of certain vehicles. One can superimpose pictures on top of one another (to change logos or to add loads to freight wagons), change the colours of a picture, mirror pictures or individual parts thereof  - all of which simultaneously and with little effort - and thus expands the variations possible on the existing array of vehicle pictures. One can determine transparent areas in pictures and can also use foreground and background picture or compose these from multiple other pictures.

The program is not limited to controlling the pictures moving across the screen: it can do much more.  It has functions for collecting, organizing and saving vehicle pictures.  The program can use pictures in the following formats:

  • TVL files - a Traffic-specific file format, which stores picture files in libraries, which are compressed to save file space. A large quantity of tiny, uncompressed files takes up space on a hard disk even when they are small files; with the FAT16 file system this is even more of an issue. The TVL files make the most efficient use of hard drive space. Even files saved in a compressed format such as GIF still take up more space than the same data in a TVL file.
  • Resources in Windows-Binary-Files (.exe, .dll, .scr) in 16 or 32 bit format.
  • GIF files Transparent and interlaced graphics are supported. (Animated Gif-s have to be converted into separate pictures - but this conversion can be done by Traffic itself).
  • BMP and DIB files - 2, 16 or 256 colours, standard and RLE encoding. The 16, 24 and 32 bit colour formats are also understood. Pictures in BMP or DIB format can also be transparent - either the color of a pixel in a corner is the transparent color, or a special pink color ( 243,0,243). Each picture can only contain a maximum of 255 different colours, if it is a transparent picture. Traffic can use the special BMP files for the BahnLand program from Hans-Martin Hebsaker.
  • JPG files - they give bad quality for vehicles, but can be used for background pictures - (landscapes, buildings).
  • TIFF files
  • PNG files - with transparency, but without partial transparency (alpha channel).

A comprehensive, detailed description of the program and all of its functions is still being developed, but even without this most users will quickly be able to get up and running with Traffic.  It is quite simple to use the default Timetable File, to browse the Stock List's collection of vehicles or to edit or add to the technical descriptions of vehicles in the Stock List.  The menus are available (at present) in English, German and Hungarian.

The sections of the Reference Manual that deal with the description of the syntax and semantics of the Timetable File commands as well as the Modification commands for pictures have been completed.  There are detailed descriptions of procedures, which one must no longer find in other documents.   This is an encyclopaedic, reference manual type description, not intended to be used as a "how to" manual. However, there is a separate chapter entitled "How to write a timetable file" that covers the most important and commonly used commands and parameters. It is illustrated with numerous examples of how to program the most important parts of the Timetable file.

Even without the program one can view the list of pictures contained within it (the Vehicle-List) on Zoltán Szabó's homepage ( http://pc.pxtr.de ), which he has assembled from various sources and maintains when not working on the program's coding.

One can download individual pictures from this collection of vehicles.  The pictures are available in several formats for use in different programs ( Traffic: TVL and GIF, MM&MM: BMP, BahnLand: BMP, Railway32: BMP, Opaku's TrainKit: GIF, Brian Clough's TrainGif JavaScript: GIF). The TrainSideView: BMP format is discontinued because of lack of interest, the former TrainSideView community (mostly from Japan) mostly uses Opaku's TrainKit, or discontinued the hobby. If you still use TrainSideView, and need the vehicle pictures in that format, please contact the author.

The author would like to thank:

James McDonald, who assisted in the translation of the many program texts and descriptions into English and also corrected and expanded them, and created many trains in the timetable files together with Timo Günther,

Lars Boßhammer, who helps keeping the vehicle collection well organized, and creates timetable lines for real trains / tramways,

Zoltán Iván, Attila Sólyom, Pierre Noël Rietsch, Péter Halász, Marc Le Gad, Kris van de Putte, who all tested the program versions and suggested new functions.

The installation files were created with NSIS.

The timetable editor is based on the CodeMax control from Barry Allyn.

The TVL and STB file compression is based on the zlib compression library created by Greg Roelofs and maintained by Jean-loup Gailly.

The GIF picture handling is based on the giflib library created by Eric S. Raymond

The JPG picture input uses the libjpeg library of the Independent JPEG Group.

The TIFF picture input uses the LibTIFF Library.

The PNG picture input uses the libpng library.

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