(Idea for this thread originated with peterman's post#4 >>> https://www.trainsim.com/vbts/showth...nly-diesel-Eng)
Here's an annotated engine file for Open Rails, set up as an include file to be placed in an OpenRails folder.
According to the manual
Adding ORTS parameters to the default MSTS file is NOT the method to use. Not only is it destructive to the original file, it is compromising both MSTS and ORTS data integrity.
Keep MSTS and ORTS data parameters separate.
I did the best I could, trying to find all the ORTS parameters, that had references in the manual or otherwise were verified. I found a few that are in the code, but not published anywhere, I think they were left undeveloped, they are not included - example ORTSGenerator..
This sample is for Diesel, there are other ORTS parameters for Steam, Hydraulic, and Electric - all found in the manual.
Please check for errors.
Attached zip had downloadable copy.
ORTS_Locomotive.zip
I didn't make this file for actual use in the sim, too many comment lines. I made it just to show what possible ORTS parameters existed and in which section of the file they belonged. For explanation purposes only. If you search there are other threads with examples of working files and how to implement them.
***The Davis numbers Comment/Assumptions line is very important. Please take the time to include in the file. This line is taken directly from Peter Newell's very excellent site Coals to Newcastle, http://www.coalstonewcastle.com.au/ . A treasure trove of information, especially for steam, but importantly, for ORTS in general.
When you put in the assumptions section it provides those who come after a chance not only to check your work, but to also learn from what you did. It furthers the knowledge base and helps to maintain accurate data. It also helps eliminate the "pulling data from thin air syndrome", you've left a trail documenting your process, that is always helpful to others wishing to learn.
Here's an annotated engine file for Open Rails, set up as an include file to be placed in an OpenRails folder.
According to the manual
...preferred solution is to place the OR-specific .wag or .eng file in a created
folder TRAINS\TRAINSET\TrainCar\OpenRails\... (
folder TRAINS\TRAINSET\TrainCar\OpenRails\... (
Keep MSTS and ORTS data parameters separate.
I did the best I could, trying to find all the ORTS parameters, that had references in the manual or otherwise were verified. I found a few that are in the code, but not published anywhere, I think they were left undeveloped, they are not included - example ORTSGenerator..
This sample is for Diesel, there are other ORTS parameters for Steam, Hydraulic, and Electric - all found in the manual.
Please check for errors.
Attached zip had downloadable copy.
Code:
***FIRST LINE IS ALWAYS BLANK SPACE***
include ( "..\\Name of Engine File.eng" )
Wagon (
CouplerBlock ( ) Comment ( rear coupling )
CouplerBlock ( ) Comment ( front coupling )
BufferBlock ( )
Comment ( substitute include string for all three above )
Comment ( include ( "..\\..\\Common.Std\\Engines\\Std_Coupler.inc" ) )
ORTSBrakeShoeFriction ( x, y ) Comment ( see Manual section 8.6.1 )
BrakeParameters
Comment ( substitute include brake string for brake parameters )
Comment ( include ( "..\\..\\Common.Std\\Engines\\Std_Eng_Brakes.inc" ) )
ORTSAdhesion ( ORTSCurtius_Kniffler ( 7.5 44 0.161 0.7 ) ) Comment ( Manual Section 8.1.3 )
ORTSAdhesion ( ORTSSlipWarningThreshold ( 70 ) ) Comment ( Adjustable, Manual Section 8.1.3 )
Comment ( ORTSAdhesion can be formated same as "throttle down" block below )
Comment ( interia default is estimated from Loco Mass and Maximal Power, unless set )
ORTSAdhesion( Wheelset ( ) Axle ( ) ORTSInertia ( ) ) Comment ( leave out if unknown = Manual Section 8.1.3 )
ORTSBearingType ( Roller ) Comment ( accepts Roller, Friction, and Low )
ORTSDavis_A ( 2138.03 ) Comment ( FCalc2 used to calculate Davis A,B,&C = use metric units )
ORTSDavis_B ( 70.4167 ) Comment ( Davis Numbers UoM hard coded )
ORTSDavis_C ( 8.337645 )
***Comment( == Assumptions -Locomotive diesel/electric - speed - 65mph (105km/h), Roller Bearing, 6 axles, frontal area - 14.5m2, WagonWeight - 214.0 ton (metric), Drag 1.0 == )
ORTSTrackGauge ( 1435 ) Comment (default in mm -leave out if unknown, Manual Sec 8.9 )
ORTSRigidWheelBase ( 5ft 6in ) Comment ( default-leave out if unknown, Manual Sec 8.9 )
ORTSUnbalancedSuperElevation ( ) Comment ( leave out if unknown, Manual Sec 8.11 )
ORTSFreightAnims ( ) Comment ( see Manual section 9.3.2 )
Lighting ( )
Comment ( Complete lighting block must be used, if different from MSTS engine file )
Comment ( Engine Sound can be added, if different from MSTS engine file )
)
Engine (
Effects
(
DieselSpecialEffects
(
Exhaust1
(
0 4.781 0.912
0 1 0
0.17
)
)
)
Comment ( CabView can be added )
Comment ( Cab Sound can be added )
Comment ( substitute include string for ORTSDiesel Block )
Comment ( include ( "..\\..\\Common.Std\\Engines\\Std_Engine.inc" ) )
Comment ( for ORTS Diesel Engines Block UoM see Manual page 82, hard coded )
Comment ( Multiple Diesel Engines Blocks can set for one locomotive, number is unlimited )
Comment ( Complete Engines Block must be present, only optional line is ExhaustDynamicsDown )
ORTSDieselEngines ( 1
Diesel(
IdleRPM ( 318 )
MaxRPM ( 904 )
StartingRPM ( 255 )
StartingConfirmRPM ( 318 )
ChangeUpRPMpS ( 75 )
ChangeDownRPMpS ( 25 )
RateOfChangeUpRPMpSS ( 5 )
RateOfChangeDownRPMpSS ( 5 )
MaximalPower ( 2237.1kW )
IdleExhaust ( 1 )
MaxExhaust ( 3 )
ExhaustDynamics ( 2 )
ExhaustDynamicsDown ( 0.5 )
ExhaustColor ( 206B787D )
ExhaustTransientColor ( 40212324 )
DieselPowerTab (
0 0
318 0
393 279638
468 559275
543 838913
618 1118550
693 1398188
768 1677825
843 1957463
904 2237100
)
DieselConsumptionTab (
0 0
318 5.2
904 164
)
ThrottleRPMTab (
0 318
12.5 393
25 468
37.5 543
50 618
62.5 693
75 768
87.5 843
100 904
)
DieselTorqueTab (
0 0
318 51155
904 409236
)
MinOilPressure ( 20 )
MaxOilPressure ( 50 )
MaxTemperature ( 120 )
Cooling ( 3 )
TempTimeConstant ( 720 )
OptTemperature ( 71 )
IdleTemperature ( 55 )
)
)
ORTS ( ORTSWheelslipCausesThrottleDown ( 1 )
ORTSEmergencyCausesThrottleDown ( 1 )
ORTSMainResChargingRate ( 0.750 )
ORTSBrakePipeChargingRate ( 30 )
ORTSEngineBrakeReleaseRate ( 38 )
ORTSEngineBrakeApplicationRate ( 34 )
ORTSBrakePipeTimeFactor ( 0.003 )
ORTSBrakeEmergencyTimeFactor ( 0.15 )
ORTSBrakeServiceTimeFactor ( 1.46 )
ORTSAirBrakeMainresvolume ( 11 )
ORTSDynamicBlendingOverride ( 1 )
)
ORTSDriveWheelWeight ( MASS ) Comment ( total weight on loco driving wheels in metric tons -leave out if unknown )
ORTSMaxTractiveForceCurves ( ) Comment ( see Manual section 8.14 )
ORTSTractionCharacteristics ( ) Comment ( see Manual section 8.2.2 )
ORTSContinuousForceTimeFactor ( 1800 ) Comment ( Adjustable, default hard coded in seconds, Manual Sec. 8.7 )
)
I didn't make this file for actual use in the sim, too many comment lines. I made it just to show what possible ORTS parameters existed and in which section of the file they belonged. For explanation purposes only. If you search there are other threads with examples of working files and how to implement them.
***The Davis numbers Comment/Assumptions line is very important. Please take the time to include in the file. This line is taken directly from Peter Newell's very excellent site Coals to Newcastle, http://www.coalstonewcastle.com.au/ . A treasure trove of information, especially for steam, but importantly, for ORTS in general.
When you put in the assumptions section it provides those who come after a chance not only to check your work, but to also learn from what you did. It furthers the knowledge base and helps to maintain accurate data. It also helps eliminate the "pulling data from thin air syndrome", you've left a trail documenting your process, that is always helpful to others wishing to learn.






( No snark or irony intended, so don't infer it.)
Comment