ENG and WAG File Structure

Aim - this section describes the structure and layout for Open Rails ENG and WAG files, as well as providing some example template files.

Index

Introduction

File Structure

Using Include Files

Wagon (WAG)) File Structure

Engine (ENG) File Structure

      Steam Locomotive Example

      Diesel Locomotive Example

      Electrical Locomotive Example

Engine and Wagon Example Templates


Introduction

The examples below put all the pieces together to create "realistic" ENG or WAG files for a steam locomotive.

The examples are based upon NSWGR standards, which may differ from the system that you are modelling. For example NSWGR used single pipe air brakes. If you need vacuum brakes, just adjust the appropriate sections accordingly.

ENG and WAG files can be configured from "Basic" to "Advanced":

top


File Structure

It is highly recommended to format the ENG and WAG files as shown on this page, as it makes reading and checking the files easier and the structure acts as a checklist to ensure that parameters are not omitted or duplicated in different parts of the file.

Each section contains the following type of information:

When building the ENG or WAG files, it is highly recommended that:

top


Using Include Files

An Open Rails INCLUDE (INC) file uses an "include" statement to insert the content of another (original) file. INCLUDE files can be used to streamline the ENG or WAG files as follows:

INCLUDE files can be used to add information to either rolling stock or routes.

To implement an INCLUDE file it is necessary to follow the following steps:

top


Wagon (WAG) File Structure

Wagon Section

Click on the section name to see an example of the information grouped in the section. Copy and Paste the examples into your own ENG or WAG file and change the information to your needs.

Comment ( ******************************* General Information *******************************
                Included in this section - Type, Shape, Size, Mass, etc
                      *********************************************************************************** )


Type ( Engine )
WagonShape ( ctn_test_atlantic.s )
Size ( 3.123m 3.79m 11.859m )
Mass ( 82.21t-uk )
WheelRadius ( 18in )
NumWheels ( 3 )
Sanding ( 25mph )

Comment ( ******************************* Coupler Information *******************************
                Included in this section - Type, Spring, Buffer, Velocity, etc
                      *********************************************************************************** )


Coupling (
    Type ( Chain )
    Spring (
       Stiffness ( 1e4N/m 4.5e6N/m )
       Break ( 150kN 150kN ) Comment (0.15MN)
       r0 ( 10cm 10cm )
       )
)

Links

Couplers

Comment ( ************************************* Brakes *************************************
                Included in this section - Type, Force, Reservoir, Application, Release, etc
                      ********************************************************************************** )



BrakeEquipmentType( "Triple_valve, Auxilary_reservoir, Handbrake" )
BrakeSystemType ( "Air_single_pipe" )
MaxBrakeForce ( 29.413kN ) Comment (Assume weight of 6.3t-uk)
MaxHandbrakeForce ( 7.174kN )
EmergencyResVolumeMultiplier ( 1.0 )
TripleValveRatio ( 2.5 )
MaxReleaseRate ( 50.0 )
MaxApplicationRate ( 50.0 )
MaxAuxilaryChargingRate ( 20.0 )
EmergencyResChargingRate ( 20.0 )
EmergencyResCapacity ( 0.447ft^3 ) Comment (Assume brake cylinder (6in) / auxiliary reservoir (0.447 cu ft))
BrakeCylinderPressureForMaxBrakeBrakeForce ( 50.0 )
BrakePipeVolume ( 0.191ft^3 )
ORTSBrakeShoeFriction ( 0.0 0.5 8.0 0.288 16.1 0.241 24.1 0.211 32.2 0.187 40.2 0.173 48.3 0.161 56.3 0.150 64.4 0.142 72.2 0.139 80.5 0.134 88.5 0.129 96.6 0.125 104.6 0.123 112.7 0.121) Comment (Cast Iron Brakeshoes)

Comment ( *************************** Resistance & SuperElevation ***************************
                Included in this section - Wheelbase, gauge, friction, etc
                      *********************************************************************************** )



Comment ( === Level Resistance === )
ORTSBearingType ( Friction )
Comment( Assumptions - speed - 65mph (105km/h), Friction Bearing, 4 axles, frontal area - 4.23m2, Wagon Weight - 7.31 ton (metric))
ORTSDavis_A ( 580.33 )
ORTSDavis_B ( 4.985 )
ORTSDavis_C ( 0.506712 )

Comment ( === Wind Resistance === )
ORTSWagonFrontalArea ( 62.5ft^2 )
ORTSDavisDragConstant ( 0.0012 )

Comment ( === Curve Resistance === )

CentreOfGravity ( 0m 1.61m 0m )
ORTSTrackGauge ( 2ft 0in )
ORTSRigidWheelbase ( 3ft 1.5in )
ORTSUnbalancedSuperelevation ( 6in )

Comment ( === Trailing Locomotive Resistance === )

ORTSTrailLocomotiveResistanceFactor ( 0.2083 )



Light (
   Comment ( Rear Marker Lamp - Left - #1 (AI) )
       Type ( 0 )
       Conditions (
          Control ( 1 )
          TimeOfDay ( 2 )
          Unit ( 3 )
          Service ( 2 )
       )
       FadeIn ( 1 )
       FadeOut ( 1 )
       Cycle ( 0 )
       States ( 1
          State ( 1
             Duration ( 0.0 )
             LightColour ( 80ff0000 )
             Position ( -1.212 3.327 -3.436)
             Azimuth ( 180 180 180 )
             Transition ( 0.0 )
             Radius ( 0.2 )
          )
       )
    )

Links

Lights

Comment ( ************************* Wagon Visual Effects (If used) *************************
                      Included in this section - Effect type, etc
                      ********************************************************************************** )



Effects (
       SpecialEffects (
         Comment ( Wagon Smoke )
          WagonSmokeFX (
             -1.0485 1.0 2.8
             -1 0 0
             0.1
                )
       )

Comment ( ********************** Freight and Load Animations (If used) **********************
                Included in this section - Freight Animation information, etc
                      *********************************************************************************** )



ORTSFreightAnims
    (
       MSTSFreightAnimEnabled (0)
       WagonEmptyWeight(10.0t-uk)
       IsGondola(0)
       UnloadingStartDelay (5)
       FreightAnimContinuous
    (
       IntakePoint ( 0.0 6.0 FuelWater )
       FreightWeightWhenFull(54.13t-uk)
       FullAtStart(0)
    )
)

Comment ( **************************** Passenger View (If used) ****************************
                      Included in this section - File, Location, Direction, etc
                      ********************************************************************************** )



Inside (
       PassengerCabinFile ( BZZ_NG2_OR_JackCar1.s )
       PassengerCabinHeadPos ( -0.5 2.0 0.5 )
       StartDirection ( 0 35 0 )
       RotationLimit ( 35 120 0 )
    )

Comment ( **************************** Wagon Heating (If used) ****************************
                      Included in this section - Car Temperature set point, heating pipe dimensions, etc
                      ********************************************************************************** )



       ORTSHeatingCompartmentTemperatureSet ( 55degF )
       ORTSHeatingCompartmentPipeAreaFactor ( 2.0 )
       ORTSHeatingWindowDeratingFactor ( 0.25 )
       ORTSHeatingTrainPipeOuterDiameter ( 2.75in )

Comment ( **************************** Miscellaneous Information ***************************
                      Included in this section - Name, Sounds, etc
                      ********************************************************************************** )



Sound ( "../../common.sound/ctn-passenger-bogie/ctn-passenger-bogie.sms" )
Name ( "Burrinjuck - State Car" ) NB: Locomotive names go into the miscellaneous section in the engine section of the file.
ORTSWaterScoopFillElevation ( 3 )
ORTSWaterScoopDepth ( 0.2 )
ORTSWaterScoopWidth ( 0.3 )

top


Engine (ENG) File Structure

The ENG file has a Wagon and an Engine section, as shown below. The engine file for a steam locomotive will have different sections when compared to a diesel or electric locomotive.

Wagon Section

Comment ( ******************************* General Information *******************************
                Included in this section - Type, Shape, Size, Mass, etc
                      *********************************************************************************** )


Type ( Engine )
WagonShape ( ctn_test_atlantic.s )
Size ( 3.123m 3.79m 11.859m )
Mass ( 82.21t-uk )
WheelRadius ( 18in )
NumWheels ( 3 )
Sanding ( 25mph )

Comment ( ******************************* Coupler Information *******************************
                Included in this section - Type, Spring, Buffer, Velocity, etc
                      *********************************************************************************** )


Coupling (
    Type ( Chain )
    Spring (
       Stiffness ( 1e4N/m 4.5e6N/m )
       Break ( 150kN 150kN ) Comment (0.15MN)
       r0 ( 10cm 10cm )
       )
)

Links

Couplers

Comment ( ************************************* Brakes *************************************
                Included in this section - Type, Force, Reservoir, Application, Release, etc
                      ********************************************************************************** )



BrakeEquipmentType( "Triple_valve, Auxilary_reservoir, Handbrake" )
BrakeSystemType ( "Air_single_pipe" )
MaxBrakeForce ( 29.413kN ) Comment (Assume weight of 6.3t-uk)
MaxHandbrakeForce ( 7.174kN )
EmergencyResVolumeMultiplier ( 1.0 )
TripleValveRatio ( 2.5 )
MaxReleaseRate ( 50.0 )
MaxApplicationRate ( 50.0 )
MaxAuxilaryChargingRate ( 20.0 )
EmergencyResChargingRate ( 20.0 )
EmergencyResCapacity ( 0.447ft^3 ) Comment (Assume brake cylinder (6in) / auxiliary reservoir (0.447 cu ft))
BrakeCylinderPressureForMaxBrakeBrakeForce ( 50.0 )
BrakePipeVolume ( 0.191ft^3 )
ORTSBrakeShoeFriction ( 0.0 0.5 8.0 0.288 16.1 0.241 24.1 0.211 32.2 0.187 40.2 0.173 48.3 0.161 56.3 0.150 64.4 0.142 72.2 0.139 80.5 0.134 88.5 0.129 96.6 0.125 104.6 0.123 112.7 0.121) Comment (Cast Iron Brakeshoes)

Comment ( *************************** Resistance & SuperElevation ***************************
                Included in this section - Wheelbase, gauge, friction, etc
                      *********************************************************************************** )



Comment ( === Level Resistance === )
ORTSBearingType ( Friction )
Comment( Assumptions - speed - 65mph (105km/h), Friction Bearing, 4 axles, frontal area - 4.23m2, Wagon Weight - 7.31 ton (metric))
ORTSDavis_A ( 580.33 )
ORTSDavis_B ( 4.985 )
ORTSDavis_C ( 0.506712 )

Comment ( === Wind Resistance === )
ORTSWagonFrontalArea ( 62.5ft^2 )
ORTSDavisDragConstant ( 0.0012 )

Comment ( === Curve Resistance === )

CentreOfGravity ( 0m 1.61m 0m )
ORTSTrackGauge ( 2ft 0in )
ORTSRigidWheelbase ( 3ft 1.5in )
ORTSUnbalancedSuperelevation ( 6in )

Comment ( === Trailing Locomotive Resistance === )

ORTSTrailLocomotiveResistanceFactor ( 0.2083 )



Light (
   Comment ( Rear Marker Lamp - Left - #1 (AI) )
       Type ( 0 )
       Conditions (
          Control ( 1 )
          TimeOfDay ( 2 )
          Unit ( 3 )
          Service ( 2 )
       )
       FadeIn ( 1 )
       FadeOut ( 1 )
       Cycle ( 0 )
       States ( 1
          State ( 1
             Duration ( 0.0 )
             LightColour ( 80ff0000 )
             Position ( -1.212 3.327 -3.436)
             Azimuth ( 180 180 180 )
             Transition ( 0.0 )
             Radius ( 0.2 )
          )
       )
    )

Links

Lights

Comment ( ********************** Freight and Load Animations (If used) **********************
                Included in this section - Freight Animation information, etc
                      *********************************************************************************** )



ORTSFreightAnims
    (
       MSTSFreightAnimEnabled (0)
       WagonEmptyWeight(10.0t-uk)
       IsGondola(0)
       UnloadingStartDelay (5)
       FreightAnimContinuous
    (
       IntakePoint ( 0.0 6.0 FuelWater )
       FreightWeightWhenFull(54.13t-uk)
       FullAtStart(0)
    )
)

Comment ( **************************** Passenger View (If used) ****************************
                      Included in this section - File, Location, Direction, etc
                      ********************************************************************************** )



Inside (
       PassengerCabinFile ( BZZ_NG2_OR_JackCar1.s )
       PassengerCabinHeadPos ( -0.5 2.0 0.5 )
       StartDirection ( 0 35 0 )
       RotationLimit ( 35 120 0 )
    )

Comment ( **************************** Wagon Heating (If used) ****************************
                      Included in this section - Car Temperature set point, heating pipe dimensions, etc
                      ********************************************************************************** )



       ORTSHeatingCompartmentTemperatureSet ( 55degF )
       ORTSHeatingCompartmentPipeAreaFactor ( 2.0 )
       ORTSHeatingWindowDeratingFactor ( 0.25 )
       ORTSHeatingTrainPipeOuterDiameter ( 2.75in )

Comment ( **************************** Miscellaneous Information ***************************
                      Included in this section - Name, Sounds, etc
                      ********************************************************************************** )



Sound ( "../../common.sound/ctn-passenger-bogie/ctn-passenger-bogie.sms" )
Name ( "Burrinjuck - State Car" ) NB: Locomotive names go into the miscellaneous section in the engine section of the file.
ORTSWaterScoopFillElevation ( 3 )
ORTSWaterScoopDepth ( 0.2 )
ORTSWaterScoopWidth ( 0.3 )

Engine Section

Comment ( ************************** Engine Visual Effects **************************
                      Included in this section - Steam emissions, etc
                      *********************************************************************** )


Effects (
       SteamSpecialEffects (
         Comment ( Cylinder - Left/Rear )
          CylindersFX (
             -1.0485 1.0 2.8
             -1 0 0
             0.1
                )
       )

Comment ( ************************ General Information ************************
                      Included in this section - Wheels, sanding, etc
                      *********************************************************************** )


ORTSSteamLocomotiveType ( Simple )
Type ( Steam )
WheelRadius ( 0.310m )
NumWheels ( 2 )
Sanding ( 20mph )
ORTSDriveWheelWeight ( 12.0t-uk )
IsTenderRequired( 1 )

Comment ( ******************************* Boiler *******************************
                      Included in this section - Length, volume, heating area, pressure, etc
                      *********************************************************************** )


ORTSSteamBoilerType ( Saturated )
BoilerVolume ( 70.8ft^3 )
ORTSEvaporationArea ( 236.8ft^2 )
MaxBoilerPressure ( 180psi )

Comment ( ***************************** Cylinders *****************************
                      Included in this section - Number, Stroke, Diameter, steam usage, etc
                      *********************************************************************** )


NumCylinders ( 2 )
CylinderStroke ( 11.1875in )
CylinderDiameter ( 8.875in )

Comment ( ********************************* Fire *********************************
                      Included in this section - Fuel Quality, Grate Area, Shoveling Rate, etc
                      *********************************************************************** )


ORTSFuelCalorific ( 13700btu/lb )
ORTSGrateArea ( 4.3ft^2 )
SteamFiremanMaxPossibleFiringRate( 3000 )

Comment ( ********************************* Fuel *********************************
                      Included in this section - Coal, water, etc
                      *********************************************************************** )


MaxTenderCoalMass ( 355lb )
MaxTenderWaterMass ( 3000lb )

Comment ( ************************* Gearing (If used) *************************
                      Included in this section - Gear type, ratio, etc
                      *********************************************************************** )


ORTSSteamGearType ( Select )
ORTSSteamGearRatio ( 9.0 4.5 ) Comment ( Equivalent to TE 6,600 lbf 13,200 lbf)
ORTSSteamMaxGearPistonRate ( 450 )

Comment ( *************************** Brake System ***************************
                      Included in this section - Compressor, Reservoir, Application rates, etc
                      *********************************************************************** )


Comment ( == Compressor, Main Reservoir and General == )
AirBrakesMainMaxAirPressure( 105.0 )
AirBrakesCompressorRestartPressure( 90.0 )
AirBrakesMainResVolume ( 9.549ft^3 ) Comment (Assume 1 x 9.549 cu ft main reservoir volume)
ORTSMainResChargingRate ( 0.313 ) Comment (Assume 6.0in Compressor)
ORTSBrakePipeChargingRate ( 40.0 )

Comment ( == Automatic Brake valve - Train == )
TrainBrakesControllerMaxSystemPressure ( 70 )
TrainBrakesControllerMaxReleaseRate ( 1.0 )
TrainBrakesControllerMaxQuickReleaseRate ( 20.0 )
TrainBrakesControllerMaxApplicationRate ( 0.5 )
TrainBrakesControllerEmergencyApplicationRate ( 30.0 )
TrainBrakesControllerFullServicePressureDrop ( 25.0 )
TrainBrakesControllerMinPressureReduction ( 7.0 )

Comment ( == Independent Brake valve - Engine & Tender == )
EngineBrakesControllerMaxSystemPressure ( 70 )
EngineBrakesControllerMaxReleaseRate ( 1.0 )
EngineBrakesControllerMaxQuickReleaseRate ( 20.0 )
EngineBrakesControllerMaxApplicationRate ( 0.5 )
EngineBrakesControllerEmergencyApplicationRate ( 30.0 )
EngineBrakesControllerFullServicePressureDrop ( 25.0 )
EngineBrakesControllerMinPressureReduction ( 7.0 )

Comment ( ************************** Engine Controls **************************
                      Included in this section - Controllers for Regulator, Reverser, Brakes, etc
                      *********************************************************************** )


EngineControllers (

    Brake_Engine ( 0 1 0.01 0.25
       NumNotches ( 5
          Notch( 0.0 0 EngineBrakesControllerReleaseStart )
          Notch( 0.25 0 EngineBrakesControllerRunningStart )
          Notch( 0.50 0 EngineBrakesControllerHoldStart )
          Notch( 0.75 0 EngineBrakesControllerFullServiceStart )
          Notch( 1.0 0 EngineBrakesControllerEmergencyStart )
          )
    )

Comment ( ********************** Miscellaneous Information *********************
                      Included in this section - Alternate Views, Sounds, etc
                      *********************************************************************** )


Sound ( "jack_cab.sms" )
CabView ( jack.cvf )
HeadOut ( 1.0 2.3 -2.0 )

Comment ( ************************* Stock Description *************************
                      Included in this section - Stock Description, Operating Procedures, etc
                      *********************************************************************** )


Description (
    "CTN Test Stock Atlantic 4-4-2 - based on PRR Locomotive #5266")

EngineOperatingProcedures (
    "To move forward\n"+
    "1. Press the W key several times to move the Reverser to full Forward.\n"+

top

Wagon Section

Comment ( ******************************* General Information *******************************
                Included in this section - Type, Shape, Size, Mass, etc
                      *********************************************************************************** )


Type ( Engine )
WagonShape ( ctn_test_atlantic.s )
Size ( 3.123m 3.79m 11.859m )
Mass ( 82.21t-uk )
WheelRadius ( 18in )
NumWheels ( 3 )
Sanding ( 25mph )

Comment ( ******************************* Coupler Information *******************************
                Included in this section - Type, Spring, Buffer, Velocity, etc
                      *********************************************************************************** )


Coupling (
    Type ( Chain )
    Spring (
       Stiffness ( 1e4N/m 4.5e6N/m )
       Break ( 150kN 150kN ) Comment (0.15MN)
       r0 ( 10cm 10cm )
       )
)

Links

Couplers

Comment ( ************************************* Brakes *************************************
                Included in this section - Type, Force, Reservoir, Application, Release, etc
                      ********************************************************************************** )



BrakeEquipmentType( "Triple_valve, Auxilary_reservoir, Handbrake" )
BrakeSystemType ( "Air_single_pipe" )
MaxBrakeForce ( 29.413kN ) Comment (Assume weight of 6.3t-uk)
MaxHandbrakeForce ( 7.174kN )
EmergencyResVolumeMultiplier ( 1.0 )
TripleValveRatio ( 2.5 )
MaxReleaseRate ( 50.0 )
MaxApplicationRate ( 50.0 )
MaxAuxilaryChargingRate ( 20.0 )
EmergencyResChargingRate ( 20.0 )
EmergencyResCapacity ( 0.447ft^3 ) Comment (Assume brake cylinder (6in) / auxiliary reservoir (0.447 cu ft))
BrakeCylinderPressureForMaxBrakeBrakeForce ( 50.0 )
BrakePipeVolume ( 0.191ft^3 )
ORTSBrakeShoeFriction ( 0.0 0.5 8.0 0.288 16.1 0.241 24.1 0.211 32.2 0.187 40.2 0.173 48.3 0.161 56.3 0.150 64.4 0.142 72.2 0.139 80.5 0.134 88.5 0.129 96.6 0.125 104.6 0.123 112.7 0.121) Comment (Cast Iron Brakeshoes)

Comment ( *************************** Resistance & SuperElevation ***************************
                Included in this section - Wheelbase, gauge, friction, etc
                      *********************************************************************************** )



Comment ( === Level Resistance === )
ORTSBearingType ( Friction )
Comment( Assumptions - speed - 65mph (105km/h), Friction Bearing, 4 axles, frontal area - 4.23m2, Wagon Weight - 7.31 ton (metric))
ORTSDavis_A ( 580.33 )
ORTSDavis_B ( 4.985 )
ORTSDavis_C ( 0.506712 )

Comment ( === Wind Resistance === )
ORTSWagonFrontalArea ( 62.5ft^2 )
ORTSDavisDragConstant ( 0.0012 )

Comment ( === Curve Resistance === )

CentreOfGravity ( 0m 1.61m 0m )
ORTSTrackGauge ( 2ft 0in )
ORTSRigidWheelbase ( 3ft 1.5in )
ORTSUnbalancedSuperelevation ( 6in )

Comment ( === Trailing Locomotive Resistance === )

ORTSTrailLocomotiveResistanceFactor ( 0.2083 )



Light (
   Comment ( Rear Marker Lamp - Left - #1 (AI) )
       Type ( 0 )
       Conditions (
          Control ( 1 )
          TimeOfDay ( 2 )
          Unit ( 3 )
          Service ( 2 )
       )
       FadeIn ( 1 )
       FadeOut ( 1 )
       Cycle ( 0 )
       States ( 1
          State ( 1
             Duration ( 0.0 )
             LightColour ( 80ff0000 )
             Position ( -1.212 3.327 -3.436)
             Azimuth ( 180 180 180 )
             Transition ( 0.0 )
             Radius ( 0.2 )
          )
       )
    )

Links

Lights

Comment ( ********************** Freight and Load Animations (If used) **********************
                Included in this section - Freight Animation information, etc
                      *********************************************************************************** )



ORTSFreightAnims
    (
       MSTSFreightAnimEnabled (0)
       WagonEmptyWeight(10.0t-uk)
       IsGondola(0)
       UnloadingStartDelay (5)
       FreightAnimContinuous
    (
       IntakePoint ( 0.0 6.0 FuelWater )
       FreightWeightWhenFull(54.13t-uk)
       FullAtStart(0)
    )
)

Comment ( **************************** Passenger View (If used) ****************************
                      Included in this section - File, Location, Direction, etc
                      ********************************************************************************** )



Inside (
       PassengerCabinFile ( BZZ_NG2_OR_JackCar1.s )
       PassengerCabinHeadPos ( -0.5 2.0 0.5 )
       StartDirection ( 0 35 0 )
       RotationLimit ( 35 120 0 )
    )

Comment ( **************************** Wagon Heating (If used) ****************************
                      Included in this section - Car Temperature set point, heating pipe dimensions, etc
                      ********************************************************************************** )



       ORTSHeatingCompartmentTemperatureSet ( 55degF )
       ORTSHeatingCompartmentPipeAreaFactor ( 2.0 )
       ORTSHeatingWindowDeratingFactor ( 0.25 )
       ORTSHeatingTrainPipeOuterDiameter ( 2.75in )

Comment ( **************************** Miscellaneous Information ***************************
                      Included in this section - Name, Sounds, etc
                      ********************************************************************************** )



Sound ( "../../common.sound/ctn-passenger-bogie/ctn-passenger-bogie.sms" )
Name ( "Burrinjuck - State Car" ) NB: Locomotive names go into the miscellaneous section in the engine section of the file.
ORTSWaterScoopFillElevation ( 3 )
ORTSWaterScoopDepth ( 0.2 )
ORTSWaterScoopWidth ( 0.3 )

Engine Section

Comment ( ********************************* Engine Effects *********************************
                      Included in this section - Diesel emissions, etc
                      ********************************************************************************** )


Effects (
       DieselSpecialEffects (
         Comment ( Exhaust1 - Left/Rear )
          Exhaust1 (
             -1.0485 1.0 2.8
             -1 0 0
             0.1
                )
       )

Comment ( ****************************** General Information *******************************
                      Included in this section - Wheels, sanding, etc
                      ********************************************************************************** )


Type ( Diesel )
WheelRadius ( 0.310m )
NumWheels ( 2 )
Sanding ( 20mph )
ORTSDriveWheelWeight ( 12.0t-uk )

Comment ( ********************************* Traction Motors *********************************
                      Included in this section - Information relating to traction motors, etc
                      ********************************************************************************** )


MaxPower ( 1560.0hp )
MaxForce ( 50000lb )
MaxContinuousForce ( 30000lb )
ORTSSpeedOfMaxContinuousForce ( 19.5mph )
MaxVelocity ( 90mph )
MaxCurrent ( 2600A )

Comment ( *************************** Diesel Prime Mover (Engine) ***************************
                      Included in this section - Information about the diesel engine, etc
                      *********************************************************************************** )


MaxDieselLevel( 1180g-uk )
MaxTemperature ( 120degF )
MaxOilPressure ( 90 )
DieselUsedPerHourAtMaxPower ( 75.2g-uk )
DieselUsedPerHourAtIdle ( 25.5g-uk )
DieselEngineIdleRPM( 450 )
DieselEngineMaxRPM( 850 )

Comment ( ******************************* Gearing (If used) ********************************
                      Included in this section - Gear type, ratio, etc
                      ********************************************************************************** )


GearBoxNumberOfGears ( 2 )
GearBoxOperation ( Manual )

Comment ( ********************************** Brake System **********************************
                      Included in this section - Compressor, Reservoir, Application rates, etc
                      ********************************************************************************** )


Comment ( == Compressor, Main Reservoir and General == )
AirBrakesMainMaxAirPressure( 105.0 )
AirBrakesCompressorRestartPressure( 90.0 )
AirBrakesMainResVolume ( 9.549ft^3 ) Comment (Assume 1 x 9.549 cu ft main reservoir volume)
ORTSMainResChargingRate ( 0.313 ) Comment (Assume 6.0in Compressor)
ORTSBrakePipeChargingRate ( 40.0 )

Comment ( == Automatic Brake valve - Train == )
TrainBrakesControllerMaxSystemPressure ( 70 )
TrainBrakesControllerMaxReleaseRate ( 1.0 )
TrainBrakesControllerMaxQuickReleaseRate ( 20.0 )
TrainBrakesControllerMaxApplicationRate ( 0.5 )
TrainBrakesControllerEmergencyApplicationRate ( 30.0 )
TrainBrakesControllerFullServicePressureDrop ( 25.0 )
TrainBrakesControllerMinPressureReduction ( 7.0 )

Comment ( == Independent Brake valve - Engine & Tender == )
EngineBrakesControllerMaxSystemPressure ( 70 )
EngineBrakesControllerMaxReleaseRate ( 1.0 )
EngineBrakesControllerMaxQuickReleaseRate ( 20.0 )
EngineBrakesControllerMaxApplicationRate ( 0.5 )
EngineBrakesControllerEmergencyApplicationRate ( 30.0 )
EngineBrakesControllerFullServicePressureDrop ( 25.0 )
EngineBrakesControllerMinPressureReduction ( 7.0 )

Comment ( ********************* Locomotive Monitoring Systems (If used) *********************
                      Included in this section - Monitoring of Overspeed, Emergency Braking, Vigilance, etc
                      *********************************************************************************** )


OverspeedMonitor(
    MonitoringDeviceMonitorTimeLimit( 0 )
    MonitoringDeviceAlarmTimeLimit( 0 )
    MonitoringDevicePenaltyTimeLimit( 0 )

Comment ( ********************************* Engine Controls *********************************
                      Included in this section - Controllers for Regulator, Reverser, Brakes, etc
                      *********************************************************************************** )


EngineControllers (

    Brake_Engine ( 0 1 0.01 0.25
       NumNotches ( 5
          Notch( 0.0 0 EngineBrakesControllerReleaseStart )
          Notch( 0.25 0 EngineBrakesControllerRunningStart )
          Notch( 0.50 0 EngineBrakesControllerHoldStart )
          Notch( 0.75 0 EngineBrakesControllerFullServiceStart )
          Notch( 1.0 0 EngineBrakesControllerEmergencyStart )
          )
    )

Comment ( **************************** Miscellaneous Information ***************************
                      Included in this section - Alternate Views, Sounds, etc
                      ********************************************************************************** )


Sound ( "jack_cab.sms" )
CabView ( jack.cvf )
HeadOut ( 1.0 2.3 -2.0 )

Comment ( ******************************* Stock Description ********************************
                      Included in this section - Stock Description, Operating Procedures, etc
                      ********************************************************************************** )


Description (
    "CTN Test Stock Atlantic 4-4-2 - based on PRR Locomotive #5266")

EngineOperatingProcedures (
    "To move forward\n"+
    "1. Press the W key several times to move the Reverser to full Forward.\n"+

top

Wagon Section

Comment ( ******************************* General Information *******************************
                Included in this section - Type, Shape, Size, Mass, etc
                      *********************************************************************************** )


Type ( Electrical )
WagonShape ( ...tbd.s )
Size ( 3.123m 3.79m 11.859m )
Mass ( 82.21t-uk )
WheelRadius ( 18in )
NumWheels ( 3 )
Sanding ( 25mph )

top


Engine and Wagon Example Templates

A number of sample locomotives can be downloaded on the Test Stock and Activities page. Please note that not all the locomotives are up to date including the latest features. If you are searching for a particular feature as an example, you may need to look at a number of the models on this page to find a recent example.

Once the files have been built, make sure that they are tested using some of these performance tests

top