Configuring Rolling Stock - ENG and WAG File Parameters

Aim -This section describes the structure and layout of Open Rails ENG and WAG files, and provides some examples.

Index

Introduction
What are ENG and WAG Files
Filename and Location
Using Include files
File Structure of ENG and WAG files
Wagon (WAG) File Structure and Parameters
Engine (ENG) File Structure and Parameters
      Steam Locomotive Example
      Diesel Locomotive Example
      Electrical Locomotive Example
Examples of ENG and WAG Files


Introduction

This webpage explains how all parameters that are used to configure Rolling Stock in the Open Rails Trail Simulator are to be recorded in ENG and WAG files. For each parameter, the name, description, possible values, unit of measure and if useful an example is provided. It is also indicated if the parameter is a BASIC requirement to “make the stock roll” or an ADVANCED parameter that is used for locomotive tuning or to closely mirror real world physics. The ENG file parameters are presented per locomotive type (Steam, Diesel and Electric), as each locomotive type has a unique set of parameters in addition to parameters that are common across all locomotive types.

We would appreciate your feedback, so if you have any comments or suggestions regarding the content on this page, please use the contact form.

Index


What are ENG and WAG Files

ENG and WAG files contain the parameters that define the physical characteristics and behaviour of each type of rolling stock that is used in the Open Rails simulator. Parameters for Steam, Diesel and Electric locomotives are captured in ENG files. Parameters that define non-powered rolling stock like passenger carriages and freight cars are recorded in WAG files.

Index


Filename and Location

ENG files name and folder:  ../Route/Trains/Trainset/locomotive-name/locomotive-name.eng
WAG files name and folder: ../Route/Trains/Trainset/wagon-name/wagon-name.wag

Index


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:

Index


File Structure of ENG and WAG files

It is hightly recommended to organize the parameters in the ENG or WAG in the sections as shown on this page and the example files. This 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 information:

When building the ENG or WAG files, it is highly recommended to add Comment statements to the code, with an explanation and information for future reference.

ENG and WAG files can be configured from "BASIC" to "ADVANCED":

Index


Wagon (WAG) File Structure

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.

Wagon Section

General Information
	
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 )
	
	
Couplers
	
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:

Brakes
	
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 )
	
	

Links:

Resistance & SuperElevation
	
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 )
	
	

Links

Lights
	
Comment ( ******************************** Lights (If used) ********************************
		Included in this section - Type, Colour, Location, Size, Control, etc
          ********************************************************************************** )

	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

Wagon Visual Effects

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
			)
		)
	)
	
	

Links

Freight and Load Animations

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)
		)	
	)
	
	

Links

Passenger View
	
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 )
	)
	
	
Wagon Heating
	
Comment ( **************************** Wagon Heating (If used) ****************************
		Included in this section - Car Temperature set point, heating pipe dimensions, etc
          ********************************************************************************** )

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

Links

Miscellaneous Information
	
Comment ( **************************** Miscellaneous Information ***************************
		Included in this section - Name, Sounds, etc
          ********************************************************************************** )
          
	Sound ( "../../common.sound/ctn-passenger-bogie/ctn-passenger-bogie.sms" )
	Name ( "Burrinjuck - State Car" ) 
Comment ( NB: Locomotive names go into the miscellaneous section in the engine section of the file. )

	ORTSWaterScoopFillElevation ( 3 )
	ORTSWaterScoopDepth ( 0.2 )
	ORTSWaterScoopWidth ( 0.3 )
	
	

Index


Engine ENG File Structure

The ENG file has both 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.

Steam Locomotive ENG file Example

Wagon Section

General Information
	
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 )
	
	
Couplers
	
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

Brakes
	
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 )
	MaxHandbrakeForcev  ( 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 )
	
	

Links

Resistance & SuperElevation
	
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 )
	
	

Links

Lights
	
Comment ( ******************************** Lights (If used) ********************************
		Included in this section - Type, Colour, Location, Size, Control, etc
          ********************************************************************************** )

	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

Freight and Load Animations

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)
		)	
	)
	
	

Links

Passenger View
	
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 )
	)
	
	
Wagon Heating
	
Comment ( **************************** Wagon Heating (If used) ****************************
		Included in this section - Car Temperature set point, heating pipe dimensions, etc
          ********************************************************************************** )

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

Links

Miscellaneous Information
	
Comment ( **************************** Miscellaneous Information ***************************
		Included in this section - Name, Sounds, etc
          ********************************************************************************** )
          
	Sound ( "../../common.sound/ctn-passenger-bogie/ctn-passenger-bogie.sms" )
	Name ( "Burrinjuck - State Car" ) 
Comment ( 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

Engine Visual Effects

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
			)
		)
	)
	
	

Links

General Information
	
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 )
	
	

Links

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

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

Links

Cylinders

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

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

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

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

Links

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

	MaxTenderCoalMass ( 355lb )
	MaxTenderWaterMass ( 3000lb )  
	
	

Links

Gearing
	
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 )    

Links

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

Comment ( == Compressor, Main Reservoir and General == )       
	AirBrakesMainMaxAirPressure ( 105.0 )
	AirBrakesCompressorRestartPressure ( 90.0 )
Comment (Assume 1 x 9.549 cu ft main reservoir volume)
	AirBrakesMainResVolume ( 9.549ft^3 )    
Comment (Assume 6.0in Compressor)
	ORTSMainResChargingRate ( 0.313 )
	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 ) 
	
	

Links

Engine Controls
	
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 )
			)
		)
	) 

Miscellaneous Information
	
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 )
	
	
Stock Description
	
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"+
		"2.   ...\n"
	)     


Index

Diesel Locomotive ENG file Example

Wagon Section

General Information
	
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 )
	
	
Couplers
	
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

Brakes
	
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 )
	MaxHandbrakeForcev  ( 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 )
	
	

Links

Resistance & SuperElevation
	
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 )
	
	

Links

Lights
	
Comment ( ******************************** Lights (If used) ********************************
		Included in this section - Type, Colour, Location, Size, Control, etc
          ********************************************************************************** )

	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

Freight and Load Animations

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)
		)	
	)
	
	

Links

Passenger View
	
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 )
	)
	
	
Wagon Heating
	
Comment ( **************************** Wagon Heating (If used) ****************************
		Included in this section - Car Temperature set point, heating pipe dimensions, etc
          ********************************************************************************** )

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

Links

Miscellaneous Information
	
Comment ( **************************** Miscellaneous Information ***************************
		Included in this section - Name, Sounds, etc
          ********************************************************************************** )
          
	Sound ( "../../common.sound/ctn-passenger-bogie/ctn-passenger-bogie.sms" )
	Name ( "Burrinjuck - State Car" ) 
Comment ( 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

Engine Effects

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
			)
		)
	)

General Information

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

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

Links

Traction Motors
	
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 )	
   
	
	

Links

Diesel Prime Mover (Engine)
	
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 )
	
	

Links

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

	GearBoxNumberOfGears ( 2 )
	GearBoxOperation ( Manual )
	
	

Links

Brakes
	
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 )
	MaxHandbrakeForcev  ( 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 )
	
	

Links

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

	OverspeedMonitor (
		MonitoringDeviceMonitorTimeLimit ( 0 )
		MonitoringDeviceAlarmTimeLimit ( 0 )
		MonitoringDevicePenaltyTimeLimit ( 0 )
	
	
Engine Controls

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 )
			)
		)
	) 
	
	
Miscellaneous Information
	
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 )
	
	
Stock Description
	
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"+
		"2.   ...\n"
	)   
		
	

Index

Electrical Locomotive ENG file Example

Wagon Section

TBD

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 )

Index


Examples of ENG and WAG files

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

Index