openrails / test-launchpad-bugs

TEST repository for Launchpad bug migration exploration
0 stars 0 forks source link

[BUG 1938611] ORTS crash on loading - engine fitted with passenger car power supply should not be allowed by the simulator #2469

Closed twpol closed 2 years ago

twpol commented 3 years ago

Imported from https://bugs.launchpad.net/bugs/1938611

Property Value
Reported by Darwin Smith (darwins)
Date reported Sat, 31 Jul 2021 11:35:46 GMT

ORTS crashes and can not load player train.

Player train includes driving van trailer.

This is defined as a locomotive, Type ( Electric ) as unpowered driving trailers are not yet supported in OR.

This vehicle is set up to use ETS power in the same way as the other passenger cars.

The train will load if the ETS section is removed from this vehicle or commented out.

OR Log attached.

Eng file below.

SIMISA@@@@@@@@@@JINX0D0t__

Wagon ( TC_EH2_MK4_DVT_IC-ets

Comment( BR Mk 4 DVT )

Comment( Open Rails physics by Darwin S )

Comment (Wagon Section)

Comment (**** General Information ** Included in this section - Type, Shape, Size, Mass, etc ***)

Type ( Engine )
WagonShape ( TC_EH2_MK4_DVT_IC.s )
Size ( 2.773m 3.748m 18.799m )
    Mass ( 46t ) Comment (* tare 45t *)
    ORTSNumberAxles ( 4 ) Comment (* all axles unpowered *)
WheelRadius ( 0.457m )

Comment (***** Coupler Information **** Included in this section - Type, Spring, Buffer, Velocity, etc **)

Comment ( rear coupling )

Coupling ( Type ( automatic ) Spring ( Stiffness ( 1e6N/m 5e6N/m ) Break ( 750kN 750kN ) r0 ( -5cm 0cm )))

Comment ( front coupling = tightlock coupler )

Coupling ( Type ( automatic ) Spring ( Stiffness ( 1e6N/m 5e6N/m ) Break ( 2360kN 2360kN ) r0 ( -5cm 0cm )))

Comment (* Brakes *** Included in this section - Type, Force, Reservoir, Applicatiion, Release. etc ****)

BrakeEquipmentType ( "Distributor, Auxilary_reservoir, Handbrake" ) BrakeSystemType( Air_twin_pipe ) MaxBrakeForce ( 49kN ) MaxHandBrakeForce ( 25kN ) EmergencyResVolumeMultiplier ( 1.4 ) TripleValveRatio ( 2.5 ) MaxReleaseRate ( 0.26bar/s ) Comment ( Brake cylinder Max to 0.4 bar in 15-20s UIC standard for twin pipe passenger car ) MaxApplicationRate ( 1.9bar/s ) Comment ( Brake cylinder 0 to 4.75 bar (95% max) in 2-3s UIC standard for twin pipe passenger car ) MaxAuxilaryChargingRate ( 20.0 ) EmergencyResChargingRate ( 20.0 ) BrakeCylinderPressureForMaxBrakeBrakeForce ( 3.50bar ) EmergencyResCapacity ( 2.064ft^3 ) BrakePipeVolume ( 0.60ft^3 ) ORTSBrakeInsensitivity ( 0.005bar/s )

ORTSBrakeShoeFriction ( 0 0.44 10 0.40 20 0.38 30 0.36 40 0.35 50 0.35 100 0.36 200 0.38 ) Comment ( Guess for modern brake pads ) Comment ( Estimate of friction 50 km/h to 200 km/h based on Ferodo 3204 )

ORTSWheelBrakeSlideProtection ( 1 ) ORTSEmergencyBrakingDisablesWSP ( 0 )

Comment (**** Resistance & SuperElevation ** Included in this section - Wheelbase, gauge, etc ***)

ORTSBearingType ( Roller ) ORTSDavis_A ( 601 ) ORTSDavis_B ( 9.2 ) ORTSDavis_C ( 3.33 ) Comment ( Estimate based on BR HST / APT )

ORTSWagonFrontalArea ( 95ft^2 ) Comment ( Estimate based on dimensions ) ORTSDavisDragConstant ( 0.0016 ) ORTSTrailLocomotiveResistanceFactor ( 0.190 )

CentreOfGravity ( 0m 2.20m 0m ) ORTSTrackGauge ( 4ft 8.5in ) ORTSUnbalancedSuperelevation ( 6in ) ORTSRigidWheelBase ( 2.500m )

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

Lights ( 4 Light ( Comment( light_Frontred ) Type ( 0 ) Conditions ( Headlight ( 3 ) ) Cycle ( 0 ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) States ( 1 State ( Duration ( 0.0 ) LightColour ( FF7E1E1E ) Position ( -0.597103 1.74468 9.00379 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.4 ) ) ) ) Light ( Comment( light_Headlightfront ) Type ( 0 ) Conditions ( Headlight ( 2 ) ) Cycle ( 0 ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) States ( 1 State ( Duration ( 0.0 ) LightColour ( FFFFFFFF ) Position ( -0.786384 1.74468 8.99404 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.4 ) ) ) ) Light ( Comment( light_Headlightfront2 ) Type ( 0 ) Conditions ( Headlight ( 2 ) ) Cycle ( 0 ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) States ( 1 State ( Duration ( 0.0 ) LightColour ( FFFFFFFF ) Position ( 0.786384 1.74468 8.99404 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.4 ) ) ) ) Light ( Comment( light_Frontred2 ) Type ( 0 ) Conditions ( Headlight ( 3 ) ) Cycle ( 0 ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) States ( 1 State ( Duration ( 0.0 ) LightColour ( FF7E1E1E ) Position ( 0.597103 1.74468 9.00379 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.4 ) ) ) ) )

Comment (**** Freight Animations (If used) * Included in this section - Freight Animation information, etc ***)

Comment (* Passenger View (If used) ** Included in this section - File, Location, Direction, etc *****)

  comment (Inside (
            PassengerCabinFile ( TC_EH2_MK4_DVT_IC_REV.s  )
            PassengerCabinHeadPos ( -0.77 2.98 6.65 )
            RotationLimit ( 35 145 0 )
       StartDirection ( 8 0 0 )
       Sound ( "TC_EH2_DVT_cab.sms" )
        ))

Comment ( Train Heating and Air Conditioning (If used) Included in this section - Steam or Electric Heat, Thermostat, Power Consumption, etc *** )

ORTSPowerSupply ( "Default.cs" ) ORTSPowerOnDelay ( 5s ) ORTSPowerSupplyContinuousPower ( 5kW ) ORTSPowerSupplyHeatingPower ( 5kW ) ORTSPowerSupplyAirConditioningPower ( 5kW ) ORTSPowerSupplyAirConditioningYield ( 0.9 ) ORTSHeatingCompartmentTemperatureSet ( 18degC )

Comment (** Micellaneous Information ** Included in this section - Name, Sounds, etc *****)

ORTSPantographs (
        Pantograph (
            Delay( 6 s )))

    Sound ( "..\\..\\COMMON.SOUND\\BrClass87\\dvteng.sms" )

)

Engine ( TC_EH2_MK4_DVT_IC Wagon ( TC_EH2_MK4_DVT_IC )

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

Type ( Electric )
NumWheels ( 0 )
Sanding ( 20mph )

Antislip ( )

Comment ( **** Transmission **** Included in this section - Current, Speed, Power, Tractive Effort curves *** )

MaxVelocity ( 225km/h )

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

BrakesTrainBrakeType( "Air_twin_pipe" ) Comment ( driving trailer brake is automatic air brake ) BrakesEngineControllers( "Train, Blended" )

Comment ( == Compressor, Reservoir and General == ) AirBrakesMainMaxAirPressure( 9.50bar ) AirBrakeMaxMainResPipePressure ( 7.50bar ) AirBrakesCompressorRestartPressure( 8.00bar ) ORTSBrakePipeChargingRate ( 300 ) AirBrakesMainResVolume( 35ft^3 ) ORTSMainResChargingRate ( 0.575 ) TrainPipeLeakRate ( 0.0833 )

Comment ( == Automatic Brake valve - Train == ) TrainBrakesControllerMaxSystemPressure( 5.0bar ) ORTSTrainBrakesControllerMaxOverchargePressure ( 5.4bar ) ORTSTrainBrakesControllerOverchargeEliminationRate ( 0.0016bar/s ) TrainBrakesControllerMaxQuickReleaseRate( 3.20bar/s ) TrainBrakesControllerMaxReleaseRate( 0.40bar/s ) Comment ( Guess for running notch in air passenger mode ) TrainBrakesControllerMaxApplicationRate( 0.23bar/s ) Comment ( UIC standard 5-8 seconds for 1.5 bar ) TrainBrakesControllerEmergencyApplicationRate( 4.00bar/s ) TrainBrakesControllerFullServicePressureDrop( 1.35bar ) TrainBrakesControllerMinPressureReduction( 0.40bar )

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

ORTSTrainControlSystem( "..\..\AWS\SCRIPT\TCS_AWS_UK" ) ORTSTrainControlSystemSound( "..\..\AWS\SOUND\TCS_AWS_UK_new.sms" ) ORTSTrainControlSystemParameters( "..\..\AWS\SCRIPT\TCS_AWS_1971_AB.ini" )

Comment ( ** Engine Controls ** Included in this section - Controllers for Throttle, Brakes, etc *** )

DoesHornTriggerBell( 0 )

EngineControllers (
        Throttle ( 0 1 0.025 0 
            NumNotches ( 0 )
        )

Comment ( Controls should include Cruise Control / Speed Setter ) Comment ( Cruise Control not currently available in OR )

Comment ( Brake_Train ( 0 1.0 0.01 0.2 NumNotches ( 9 Notch ( 0 0 TrainBrakesControllerOverchargeStart ) Coment ( RELS ) Notch ( 0.01 0 TrainBrakesControllerReleaseStart ) Comment ( RUN ) Notch ( 0.02 0 TrainBrakesControllerEPApplyStart ) Comment ( 1 INI ) Notch ( 0.16 0 TrainBrakesControllerEPApplyStart ) Comment ( 2 ) Notch ( 0.40 0 TrainBrakesControllerEPApplyStart ) Comment ( 3 ) Notch ( 0.65 0 TrainBrakesControllerEPApplyStart ) Comment ( 4 ) Notch ( 0.80 0 TrainBrakesControllerEPApplyStart ) Comment ( 5 ) Notch ( 0.99 0 TrainBrakesControllerEPApplyStart ) Comment ( 6 FULL SERV ) Notch ( 1.00 0 TrainBrakesControllerEmergencyStart ))) Comment ( EMGY ) )

        DirControl ( -1 0 1 1 )
        EmergencyStopToggle( 0 1 0 )
        AWS ( 0 1 0 )
        Vigilance ( 0 1 0 )
        Sanding ( 0 1 0 )
        Horn ( 0 1 0 )
        PantographToggle1 ( 0 1 1 )
        Headlights ( 0 0.25 1 0 )
        Wipers ( 0 1 0 )

    )

    CabView ( "..\\..\\Common.Cab\\90cab\\class90_OR_rv.cvf" )
    Sound ( "..\\..\\COMMON.SOUND\\BrClass87\\dvtcab.sms" )

Name ( "TC_EH2_MK4_DVT_IC" )
Description (

"TC_EH2_MK4_DVT_IC"

)
EngineOperatingProcedures (
"To move forward\n"+
"1. The pantograph has been raised for you. (If it is not up for some reason, press the P key to raise it.)\n"+
"2. Press the W key to move the Reverser to Forward.\n"+
"3. Press the ; (SEMICOLON) key to release the train brakes.\n"+
"4. Press the D key to move increase the throttle setting.\n\n"+  
"To slow the train\n"+
"1. Press the A key to move the throttle to a lower setting.\n"+
"2. Use the brakes to further reduce speed if desired.\n\n"+   
"To apply the train brakes\n"+
"1. Press the ' (APOSTROPHE) key to apply the train brakes.\n\n"+
"To release the train brakes\n"+
"1. Press the ; (SEMICOLON) key to release the train brakes.\n\n"+
"To activate emergency braking\n"+
"1. Press the A key to reduce the throttle to Idle.\n"+
"2. Press the BACKSPACE key to activate emergency braking.\n\n"+
"To back up\n"+
"1. Bring your train to a full stop.\n"+
"2. Press the S key to move the Reverser to the Reverse position.\n"+
"3. Press the ; (SEMICOLON)  to release the brakes.\n"+
"4. Slowly advance the throttle lever (D key).\n\n"+
"To load and unload passengers\n"+
"1. Stop at a station.\n"+
"2. Press the ENTER key.\n"+
"3. Wait for the 'permission to depart' signal.\n"+
"TIP: Use the Next Station driving aid (F10) to monitor loading and unloading."
)

)

twpol commented 3 years ago

Imported from https://bugs.launchpad.net/or/+bug/1938611/comments/1

Property Value
Posted by Darwin Smith (darwins)
Date posted Sat, 31 Jul 2021 11:35:46 GMT
twpol commented 3 years ago

Imported from https://bugs.launchpad.net/or/+bug/1938611/comments/2

Property Value
Posted by Cédric GNIEWEK (sharpeserana)
Date posted Wed, 04 Aug 2021 06:53:27 GMT

Ok, I will probably have to add a sanity check in order to give a better error message about this configuration: Engines should not use passenger car power supply. It simply can't work because you are missing key elements (such as circuit breaker control). This configuration will only be allowed when we officially support DVTs.

twpol commented 3 years ago

Imported from https://bugs.launchpad.net/or/+bug/1938611/comments/3

Property Value
Posted by Cédric GNIEWEK (sharpeserana)
Date posted Tue, 17 Aug 2021 02:02:08 GMT

Ok, there was also a mismatch between what is saved and what is restored for passenger car power supply.

A second fix is coming.