Braking Fix for NYNH CSX SD40-2

Post your problems and installation issues here!

Braking Fix for NYNH CSX SD40-2

Unread postby doyletom » Mon Jan 04, 2016 11:12 pm

I have read that they haven't gotten around to fixing the sensitive brakes on the SD40. I sort of discovered a fix by accident.

This fix involves scripting so it takes some advanced knowledge. A good resource is "Scenario authors guide" by Rudolf Heijink.

Step 1. Unpack the SD40 from the .AP files and place in the C:\Program Files (x86)\Steam\steamapps\common\RailWorks\Assets\RSC\NewYorkNewHaven\RailVehicles Whether this is really required is unknown. One scenario required it to run the other didn't. Some people can skip this step and see what happens.

Step 2. Build the scenario where you would like to run the SD40. I tested using a 20 car consist.

Step 3. Write the following script in to the scenario:

TRUE=1
FALSE=0


function OnEvent(event)
if event =="brake" then
SysCall ("ScenarioManager:ShowMessage", "Brake Set")
SysCall ("PlayerEngine:SetControlValue", "BrakeDifficulty", 0,4);
return TRUE
end
return FALSE
end

- In this example the Brake Difficulty is set to 4. You can also use 2 or 3. Remember to compile the MD5 file after the program sees the script.

Step 4. Place an event called "brake" in to the scenario. Have it start a minimum 12 seconds after start. I had a few set at 0s and they didn't seem to work.

Step 5. Edit Railsimulator to start with "-ShowControlStateDialog".

Start your scenario. After you see the "Brake Set" message you can scroll in the Control State window and check the Brake Difficulty setting. When or if it shows the value you specified in the script, save your progress in the scenario.

Exit your scenario after saving. Then go back to it and select Resume. Upon resumption, the braking system should behave according to the Brake Difficulty set in the script.

Why this works? I don't know. By posting this I am hoping someone comes up with something better.
doyletom
 

Return to Problems and Peculiarities

Who is online

Users browsing this forum: No registered users and 2 guests