Elvas Tower: ORTS Diesel Engines - 2 engines bug - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ORTS Diesel Engines - 2 engines bug there is a problem, should I report a bug?? Rate Topic: -----

#1 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,436
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 09 December 2017 - 11:07 AM

There is a problem with the ORTSDieselEngines block when configured for 2 engines. My example is a DD40X.
If a 2 engine block is used for a locomotive and the locomotive is positioned in the consist as a helper NOT physically coupled to a lead, it does not appear in the sim.
The locomotive does appear in ConBuilder and TSRE-CE.
There are two DD40X locomotives in the consist >>> UP_DDA40X_6905 SLI_UP_FRC_ENGINES & UP_DDA40X_6912 SLI_UP_FRC_ENGINES
Either locomotive will render in the sim as a lead or helper coupled to the lead. Neither will render in the sim as a mid-train helper or Trailing Helper. All other locomotives will appear as a mid-train helper.
Attached is an OR log with a warning:

Warning: System.IO.FileLoadException: F:\2TSF\SoCAZ\trains\trainset\SLI_UP_FRC_ENGINES\UP_DDA40X_6912.eng ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at Orts.Simulation.RollingStocks.SubSystems.PowerTransmissions.GearBox.CopyFromMSTSParams(DieselEngine dieselEngine) in e:\Documents\Coding\Jenkins\jobs\Open Rails Unstable\workspace\Source\Orts.Simulation\Simulation\RollingStocks\SubSystems\PowerTransmissions\GearBox.cs:line 393.....

DD40X OR Diesel Eng Block

ORTSDieselEngines ( 2
		Diesel(
			IdleRPM ( 320 )
			MaxRPM ( 950 )
			StartingRPM ( 220 )
			StartingConfirmRPM ( 370 )
			ChangeUpRPMpS ( 80 )
			ChangeDownRPMpS ( 25 )
			RateOfChangeUpRPMpSS ( 10 )
			RateOfChangeDownRPMpSS ( 5 )
			MaximalPower ( 2460.81kW )
			IdleExhaust ( 1 )
			MaxExhaust ( 2 )
			ExhaustDynamics ( 2 )
			ExhaustDynamicsDown ( 0.5 )
			ExhaustColor ( 206B787D )
			ExhaustTransientColor ( 40212324 )
			DieselPowerTab (
		  		0  	0
				320  	0
				399  	307601
				478  	615203
				557  	922804
				636  	1230405
				715  	1538006
				794  	1845608
				873  	2153209
				950  	2460810
			)
			DieselConsumptionTab (
				0	0
				320  4.0
				950  166.5
			)
			ThrottleRPMTab (
				0   320
				12.5  399
				25  478
				37.5  557
				50  636
				62.5  715
				75  794
				87.5  873
				100  950
			)
			DieselTorqueTab (
				0 	0
				320  28635
				950  229083
			)
			MinOilPressure ( 20 )
			MaxOilPressure ( 90 )
			MaxTemperature ( 120 )
			Cooling ( 3 )
			TempTimeConstant ( 720 )
			OptTemperature ( 71 )
			IdleTemperature ( 55 )
		)
    	Diesel(
			IdleRPM ( 320 )
			MaxRPM ( 950 )
			StartingRPM ( 220 )
			StartingConfirmRPM ( 370 )
			ChangeUpRPMpS ( 80 )
			ChangeDownRPMpS ( 25 )
			RateOfChangeUpRPMpSS ( 10 )
			RateOfChangeDownRPMpSS ( 5 )
			MaximalPower ( 2460.81kW )
			IdleExhaust ( 1 )
			MaxExhaust ( 2 )
			ExhaustDynamics ( 2 )
			ExhaustDynamicsDown ( 0.5 )
			ExhaustColor ( 206B787D )
			ExhaustTransientColor ( 40212324 )
			DieselPowerTab (
		  		0  	0
				320  	0
				399  	307601
				478  	615203
				557  	922804
				636  	1230405
				715  	1538006
				794  	1845608
				873  	2153209
				950  	2460810
			)
			DieselConsumptionTab (
				0	0
				320  4.0
				950  166.5
			)
			ThrottleRPMTab (
				0   320
				12.5  399
				25  478
				37.5  557
				50  636
				62.5  715
				75  794
				87.5  873
				100  950
			)
			DieselTorqueTab (
				0 	0
				320  28635
				950  229083
			)
			MinOilPressure ( 20 )
			MaxOilPressure ( 90 )
			MaxTemperature ( 120 )
			Cooling ( 3 )
			TempTimeConstant ( 720 )
			OptTemperature ( 71 )
			IdleTemperature ( 55 )
		)
	)

Attached thumbnail(s)

  • Attached Image: bandicam 2017-12-08 22-18-31-446.jpg
  • Attached Image: bandicam 2017-12-08 22-19-32-291.jpg
  • Attached Image: bandicam 2017-12-08 22-20-35-300.jpg

Attached File(s)



#2 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,436
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 10 December 2017 - 11:15 AM

Changing the 2 engine OR block for a single engine block, the two DD40X locomotives now appear as mid-train helpers and trailing helpers. I think this proves that the ORTSDieselEngine block has a bug when a two engine configuration is used.
Again, helpers coupled to the lead present no problems with either a single eng or double eng configuration.

1st screenshot is trailing helper

Attached thumbnail(s)

  • Attached Image: bandicam 2017-12-10 11-08-08-102.jpg
  • Attached Image: bandicam 2017-12-10 11-08-43-885.jpg
  • Attached Image: bandicam 2017-12-10 11-09-04-651.jpg


#3 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,436
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 10 December 2017 - 10:10 PM

I tried another test with ConnRiver RDC - also outfitted with 2-engine ORTSDieselEngines block.
Attached is OR log. Very similiar results. The middle RDC is missing in the sections of the consist separated by wagons from the lead engines.

Consist
SIMISA@@@@@@@@@@JINX0D0t______

Train (
	TrainCfg ( "RDC_TEST"
		Name ( "RDC_TEST" )
		Serial ( 1 )
		MaxVelocity ( 37.99840 0.93594 )
		NextWagonUID ( 14 )
		Durability ( 1.00000 )
		Engine (
			UiD ( 1 )
			EngineData ( RDC1_B&M_6101_L BLW_ZT_RDC_B&M )
		)
		Engine (
			UiD ( 2 )
			EngineData ( RDC1_B&M_6106_M BLW_ZT_RDC_B&M )
		)
		Engine (
			UiD ( 3 )
			EngineData ( RDC1_B&M_6100_R BLW_ZT_RDC_B&M )
		)
		Wagon (
			WagonData ( BM_Caboose_5a BLW_ZT_Caboose_B&M_W )
			UiD ( 2 )
		)
		Wagon (
			WagonData ( BM_Caboose_5a BLW_ZT_Caboose_B&M_W )
			UiD ( 3 )
		)
		Wagon (
			WagonData ( BM_Caboose_5a BLW_ZT_Caboose_B&M_W )
			UiD ( 4 )
		)
		Engine (
			UiD ( 5 )
			EngineData ( RDC1_B&M_6100_L BLW_ZT_RDC_B&M )
		)
		Engine (
			UiD ( 6 )
			EngineData ( RDC1_B&M_6100_M BLW_ZT_RDC_B&M )
		)
		Engine (
			UiD ( 7 )
			EngineData ( RDC1_B&M_6100_R BLW_ZT_RDC_B&M )
		)
		Wagon (
			WagonData ( BM_Caboose_5a BLW_ZT_Caboose_B&M_W )
			UiD ( 8 )
		)
		Wagon (
			WagonData ( BM_Caboose_5a BLW_ZT_Caboose_B&M_W )
			UiD ( 9 )
		)
		Wagon (
			WagonData ( BM_Caboose_5a BLW_ZT_Caboose_B&M_W )
			UiD ( 10 )
		)
		Engine (
			UiD ( 11 )
			EngineData ( RDC1_B&M_6101_L BLW_ZT_RDC_B&M )
		)
		Engine (
			UiD ( 12 )
			EngineData ( RDC1_B&M_6101_M BLW_ZT_RDC_B&M )
		)
		Engine (
			UiD ( 13 )
			EngineData ( RDC1_B&M_6101_R BLW_ZT_RDC_B&M )
		)
	)
)


Attached thumbnail(s)

  • Attached Image: bandicam 2017-12-10 22-03-14-937.jpg
  • Attached Image: bandicam 2017-12-10 22-03-31-616.jpg
  • Attached Image: bandicam 2017-12-10 22-03-44-384.jpg

Attached File(s)



#4 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,999
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 20 December 2017 - 10:24 AM

Hi Gerry,
pls. try attached replacement file for x.4013.
Attached File  Orts.Simulation.dll.zip (467.93K)
Number of downloads: 202

#5 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,436
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 20 December 2017 - 12:23 PM

Will do Carlo, Thank You, Seasons Greetings, best regards to you and yours. Gerry

Edit: Applied patch, in both cases outlined above, test looks good. All locomotives now appear, HUD looks correct, except for slight displacement of the locomotive with 1 eng ORTS Diesel Block versus the two engine locomotives. That text displacement, to me, once you understand what you're seeing is negligible...some may object, we'll see.
Hope there are no unintended consequences. http://www.elvastower.com/forums/public/style_emoticons/default/hi.gifThank you.

#6 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,999
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 20 December 2017 - 01:15 PM

Fixed in x.4014.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users