@@ -593,7 +593,7 @@ owner.Viewer.Simulator.PlayerLocomotive is MSTSLocomotive &&
593
593
} ) ) ;
594
594
Tabs . Add ( new TabData ( Tab . TrainInfo , Viewer . Catalog . GetString ( "Train Info" ) , ( cl ) =>
595
595
{
596
- var labelWidth = cl . TextHeight * 12 ;
596
+ var labelWidth = cl . TextHeight * 13 ;
597
597
var scrollbox = cl . AddLayoutScrollboxVertical ( cl . RemainingWidth ) ;
598
598
if ( Owner . Viewer . PlayerTrain != null )
599
599
{
@@ -1197,16 +1197,16 @@ private void AddAggregatedTrainInfo(Train playerTrain, ControlLayout scrollbox,
1197
1197
var lengthM = playerTrain . Length ;
1198
1198
var maxSpeedMps = playerTrain . TrainMaxSpeedMpS ;
1199
1199
float totPowerW = 0f ;
1200
- float totMaxTractiveEffortN = 0f ;
1201
- string sectionMaxTractiveForce = "" ; // using " + " between DPU sets
1200
+ float totMaxContTractiveEffortN = 0f ;
1201
+ string sectionMaxContTractiveForce = "" ; // using " + " between DPU sets
1202
1202
float totMaxDynamicBrakeForceN = 0f ;
1203
1203
string sectionMaxDynamicBrakeForce = "" ; // using " + " between DPU sets
1204
1204
float maxBrakeForceN = 0f ;
1205
1205
float lowestCouplerStrengthN = 9.999e8f ; // impossible high force
1206
1206
float lowestDerailForceN = 9.999e8f ; // impossible high force
1207
1207
1208
1208
int engCount = 0 ; string countSeparator = "" ; // when set, indicates that subsequent engines are in a separate block
1209
- float engMaxTractiveForceN = 0f ; float engMaxDynBrakeForceN = 0f ; string forceSeparator = "" ; // when set, indicates that subsequent engines are in a separate block
1209
+ float engMaxContTractiveForceN = 0f ; float engMaxDynBrakeForceN = 0f ; string forceSeparator = "" ; // when set, indicates that subsequent engines are in a separate block
1210
1210
1211
1211
float wagMassKg = 0f ; string massSeparator = "" ; // when set, indicates that subsequent engines are in a separate block
1212
1212
int numOperativeBrakes = 0 ;
@@ -1233,8 +1233,8 @@ private void AddAggregatedTrainInfo(Train playerTrain, ControlLayout scrollbox,
1233
1233
engCount ++ ;
1234
1234
numAxles += eng . LocoNumDrvAxles + eng . GetWagonNumAxles ( ) ;
1235
1235
totPowerW += eng . MaxPowerW ;
1236
- totMaxTractiveEffortN += eng . MaxForceN ;
1237
- engMaxTractiveForceN += eng . MaxForceN ;
1236
+ totMaxContTractiveEffortN += eng . MaxContinuousForceN > 0 ? eng . MaxContinuousForceN : eng . MaxForceN ;
1237
+ engMaxContTractiveForceN += eng . MaxContinuousForceN > 0 ? eng . MaxContinuousForceN : eng . MaxForceN ;
1238
1238
totMaxDynamicBrakeForceN += eng . MaxDynamicBrakeForceN ;
1239
1239
engMaxDynBrakeForceN += eng . MaxDynamicBrakeForceN ;
1240
1240
@@ -1256,9 +1256,9 @@ private void AddAggregatedTrainInfo(Train playerTrain, ControlLayout scrollbox,
1256
1256
{
1257
1257
numEngines += countSeparator + engCount . ToString ( ) ;
1258
1258
engCount = 0 ; countSeparator = "+" ;
1259
- sectionMaxTractiveForce += forceSeparator + FormatStrings . FormatForce ( engMaxTractiveForceN , isMetric ) ;
1259
+ sectionMaxContTractiveForce += forceSeparator + FormatStrings . FormatForce ( engMaxContTractiveForceN , isMetric ) ;
1260
1260
sectionMaxDynamicBrakeForce += forceSeparator + FormatStrings . FormatForce ( engMaxDynBrakeForceN , isMetric ) ;
1261
- engMaxTractiveForceN = 0f ; engMaxDynBrakeForceN = 0f ; forceSeparator = " + " ;
1261
+ engMaxContTractiveForceN = 0f ; engMaxDynBrakeForceN = 0f ; forceSeparator = " + " ;
1262
1262
}
1263
1263
}
1264
1264
@@ -1278,7 +1278,7 @@ private void AddAggregatedTrainInfo(Train playerTrain, ControlLayout scrollbox,
1278
1278
1279
1279
if ( engCount > 0 ) { numEngines = numEngines + countSeparator + engCount . ToString ( ) ; }
1280
1280
if ( String . IsNullOrEmpty ( numEngines ) ) { numEngines = "0" ; }
1281
- if ( engMaxTractiveForceN > 0 ) { sectionMaxTractiveForce += forceSeparator + FormatStrings . FormatForce ( engMaxTractiveForceN , isMetric ) ; }
1281
+ if ( engMaxContTractiveForceN > 0 ) { sectionMaxContTractiveForce += forceSeparator + FormatStrings . FormatForce ( engMaxContTractiveForceN , isMetric ) ; }
1282
1282
if ( engMaxDynBrakeForceN > 0 ) { sectionMaxDynamicBrakeForce += forceSeparator + FormatStrings . FormatForce ( engMaxDynBrakeForceN , isMetric ) ; }
1283
1283
if ( wagMassKg > 0 ) { sectionMass += massSeparator + FormatStrings . FormatLargeMass ( wagMassKg , isMetric , isUK ) ; }
1284
1284
@@ -1314,8 +1314,8 @@ private void AddAggregatedTrainInfo(Train playerTrain, ControlLayout scrollbox,
1314
1314
line . Add ( new Label ( line . RemainingWidth , line . RemainingHeight , FormatStrings . FormatPower ( totPowerW , isMetric , false , false ) , LabelAlignment . Left ) ) ;
1315
1315
1316
1316
line = scrollbox . AddLayoutHorizontalLineOfText ( ) ;
1317
- line . Add ( new Label ( labelWidth , line . RemainingHeight , Viewer . Catalog . GetString ( "Max Tractive Effort:" ) , LabelAlignment . Left ) ) ;
1318
- line . Add ( new Label ( line . RemainingWidth , line . RemainingHeight , sectionMaxTractiveForce , LabelAlignment . Left ) ) ;
1317
+ line . Add ( new Label ( labelWidth , line . RemainingHeight , Viewer . Catalog . GetString ( "Max Continuous Tractive Effort:" ) , LabelAlignment . Left ) ) ;
1318
+ line . Add ( new Label ( line . RemainingWidth , line . RemainingHeight , sectionMaxContTractiveForce , LabelAlignment . Left ) ) ;
1319
1319
1320
1320
line = scrollbox . AddLayoutHorizontalLineOfText ( ) ;
1321
1321
line . Add ( new Label ( labelWidth , line . RemainingHeight , Viewer . Catalog . GetString ( "Max Dynamic Brake Force:" ) , LabelAlignment . Left ) ) ;
@@ -1340,7 +1340,7 @@ private void AddAggregatedTrainInfo(Train playerTrain, ControlLayout scrollbox,
1340
1340
// and should really be defined in the path file.
1341
1341
1342
1342
// tons per equivalent powered axle (TPA or TpEPA)
1343
- float tpepa = totMaxTractiveEffortN > 0 ? Kg . ToTUS ( totMassKg ) / ( N . ToLbf ( totMaxTractiveEffortN ) / 10000f ) : 0 ;
1343
+ float tpepa = totMaxContTractiveEffortN > 0 ? Kg . ToTUS ( totMassKg ) / ( N . ToLbf ( totMaxContTractiveEffortN ) / 10000f ) : 0 ;
1344
1344
line = scrollbox . AddLayoutHorizontalLineOfText ( ) ;
1345
1345
line . Add ( new Label ( labelWidth , line . RemainingHeight , Viewer . Catalog . GetString ( "Tons per EPA:" ) , LabelAlignment . Left ) ) ;
1346
1346
line . Add ( new Label ( line . RemainingWidth , line . RemainingHeight , string . Format ( "{0:0}" , tpepa ) , LabelAlignment . Left ) ) ;
0 commit comments