DaveDewhurst wrote:In the RD script there are 3 available throttle settings for the throttle lever.
ThrottleStyle 1 - throttle and brake
ThrottleStyle 2 - throttle and dynamic brake
ThrottleStyle 0 - all throttle
The way RD detects this is flawed.
This code appears near the bottom of the script
- Code: Select all
Code: Select all
If (RailSimCombinedThrottleBrakeMin<>0 Or RailSimCombinedThrottleBrakeMax<>0) Then 'is combo throttle/train brake
ThrottleStyle=1
Else
If (RailSimDynamicBrakeMin<>0 Or RailSimDynamicBrakeMax<>0) Then 'dynamic brake exists
ThrottleStyle=2
Else 'is not combo
ThrottleStyle=0
End If
End If
If RD detects that their is a dynamic brake it sets TrottleStyle as 1 and then exits the if statement. Later on when its looking at the brake lever it runs a test on ThrottleStyle and if it = 1 then it doesnt set up the train brake lever.
If you change it to
- Code: Select all
Code: Select all
If (RailSimDynamicBrakeMin<>0 Or RailSimDynamicBrakeMax<>0) Then 'dynamic brake exists
ThrottleStyle=2
Else
If (RailSimCombinedThrottleBrakeMin<>0 Or RailSimCombinedThrottleBrakeMax<>0) Then 'is combo throttle/train brake
ThrottleStyle=1
Else 'is not combo
ThrottleStyle=0
End If
End If
It firsts checks for a Dynamic brake and sets as ThrottleStyle 2 and then checks whether it is a combined power/trainbrake lever.
This fixes the Dash 9, Acela, AEM and theoretically any engine with a Combined throttle/ Dynamic Brake and a Train brake. but also keeps functionality for all the other previously working engines
Dave
Return to Problems and Peculiarities
Users browsing this forum: No registered users and 5 guests