I am trying to use some wagons, .wag vehicles, designed for MSTS, together with a locomotive. The locomotive works perfectly on its own, but when I form a train with these vehicles, when the train starts to move, it causes a crash and the simulator closes. ORNYMG-Rev. 147.
I thought OR was very compatible with MSTS, but I'm finding out it's not. So, I don't quite understand the obsession to maintain compatibility at all costs when generally, at least with vehicles, updates are always necessary, especially for rolling stock.
I am going to attach the text of the .log file referring to the shutdown and also the complete .wag file, in case someone discovers where the error is.
Thank you!
Log:
Error: System.ArithmeticException: Function does not accept floating point Not-a-Number values. at System.Math.Sign(Single value) at Orts.Simulation.RollingStocks.SubSystems.PowerTransmissions.Axle.Integrate(Single elapsedClockSeconds) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\Orts.Simulation\Simulation\RollingStocks\SubSystems\PowerTransmissions\Axle.cs:line 769 at Orts.Simulation.RollingStocks.SubSystems.PowerTransmissions.Axle.Update(Single timeSpan) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\Orts.Simulation\Simulation\RollingStocks\SubSystems\PowerTransmissions\Axle.cs:line 836 at Orts.Simulation.RollingStocks.SubSystems.PowerTransmissions.Axles.Update(Single elapsedClockSeconds) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\Orts.Simulation\Simulation\RollingStocks\SubSystems\PowerTransmissions\Axle.cs:line 283 at Orts.Simulation.RollingStocks.MSTSLocomotive.AdvancedAdhesion(Single elapsedClockSeconds) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\Orts.Simulation\Simulation\RollingStocks\MSTSLocomotive.cs:line 2871 at Orts.Simulation.RollingStocks.MSTSLocomotive.Update(Single elapsedClockSeconds) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\Orts.Simulation\Simulation\RollingStocks\MSTSLocomotive.cs:line 2124 at Orts.Simulation.RollingStocks.MSTSDieselLocomotive.Update(Single elapsedClockSeconds) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\Orts.Simulation\Simulation\RollingStocks\MSTSDieselLocomotive.cs:line 572 at Orts.Simulation.Physics.Train.physicsUpdate(Single elapsedClockSeconds) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\Orts.Simulation\Simulation\Physics\Train.cs:line 1977 at Orts.Simulation.Physics.Train.Update(Single elapsedClockSeconds, Boolean auxiliaryUpdate) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\Orts.Simulation\Simulation\Physics\Train.cs:line 1860 at Orts.Simulation.Simulator.Update(Single elapsedClockSeconds) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\Orts.Simulation\Simulation\Simulator.cs:line 858 at Orts.Viewer3D.Viewer.Update(RenderFrame frame, Single elapsedRealTime) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\RunActivity\Viewer3D\Viewer.cs:line 762 at Orts.Viewer3D.Processes.GameStateViewer3D.Update(RenderFrame frame, Double totalRealSeconds) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\RunActivity\Viewer3D\Processes\GameStateViewer3D.cs:line 120 at Orts.Viewer3D.Processes.UpdaterProcess.Update() in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\RunActivity\Viewer3D\Processes\UpdaterProcess.cs:line 131 at Orts.Viewer3D.Processes.UpdaterProcess.DoUpdate() in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\RunActivity\Viewer3D\Processes\UpdaterProcess.cs:line 108 at Orts.Viewer3D.Processes.UpdaterProcess.UpdaterThread() in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\RunActivity\Viewer3D\Processes\UpdaterProcess.cs:line 74 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
.wag File:
SIMISA@@@@@@@@@@JINX0D0t______ Wagon ( Renfe_UepV_B_balastro Type ( Freight ) WagonShape ( Renfe_UepV_B.s ) FreightAnim ( AnimU_B_balastro.s 1 1 ) Name ("Renfe U epV B balastro") Size ( 2.95018m 2.31732m 7.852m ) Mass ( 23.4t ) CentreOfGravity ( 0m 1.668m 0m ) WheelRadius ( 0.5m ) InertiaTensor ( Box (2.95018m 2.31732m 8.11104m) ) Coupling ( Type ( Automatic ) Spring ( Stiffness ( 1.1e6N/m 4.8e6N/m ) Damping ( 1.2e6N/m/s 3.4e6N/m/s) Break ( 3.4e7N 3.4e7N ) r0 ( 1cm 30cm ) ) CouplingHasRigidConnection () Velocity ( 0.1m/s ) ) Buffers ( Spring ( Stiffness ( 1e7N/m 0 ) Damping ( 1e6N/m/s 0 ) r0 ( 0m 1e9 ) ) Centre ( 0.5m ) Radius ( 1m ) Angle ( 0.5deg ) ) Adheasion ( 0.2 0.4 2 0 ) DerailRailHeight ( 4cm ) DerailRailForce ( 52kN ) DerailBufferForce ( 250kN ) NumWheels ( 1 ) Friction ( 237.7N/m/s -0.1 1.8mph 2.991N/m/s 1.994 5.1N/rad/s 1 -1rad/s 0 1 ) BrakeEquipmentType( "Handbrake, Triple_valve, Auxilary_reservoir, Emergency_brake_reservoir" ) BrakeSystemType( "Air_single_pipe" ) MaxBrakeForce( 0kN ) MaxHandbrakeForce( 0kN ) NumberOfHandbrakeLeverSteps( 0 ) TripleValveRatio( 0 ) MaxReleaseRate( 0 ) MaxApplicationRate( 0 ) MaxAuxilaryChargingRate( 0 ) EmergencyResCapacity( 0 ) EmergencyResChargingRate( 0 ) EmergencyBrakeResMaxPressure( 0 ) BrakeCylinderPressureForMaxBrakeBrakeForce( 0 ) ) Sound ( "GenFreightWag1.sms" ) )