Distinct air brake positions in Openrails (not percentage based)?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bzmot332
    • Nov 2026

    #1

    Distinct air brake positions in Openrails (not percentage based)?

    Hi guys!

    I'm facing a problem with the air brakes. I built myself a controller based on a real loco brake leveler valve. I programmed it to send key strokes when changing position (it has the following positions: air release, closed, 9 individual brake positions and 1 emergency, so lets say 10 brake positions).

    My problem is that in Openrails the brake is based on percentages (as in MSTS). The brake force depends on how long you press the key down on the keyboard (because the percentage depends on that). But I'd like something like the throttle leveler, exact, separated, individual brake positions. Eg. if I press the correct key, the brake changes like 0-10-20...100% (this way there'd be 10 positions), and not 1-2-3-4-5...100%.

    Is that possible to make (either by modifying the .eng file, or by some magic option in OR)?
  • Bzmot332
    • Nov 2026

    #2
    I think I was a bit too fast with writing this thread. After hours of trying, I managed to do a "script" that seems to work perfectly. Anyways, here are my results (if anyone else can use it):


    Brake_Train ( 0 1 0.025 0
    NumNotches ( 12
    Notch ( 0 0 TrainBrakesControllerReleaseStart )
    Notch ( 0.10 0 TrainBrakesControllerHoldStart )
    Notch ( 0.125 0 TrainBrakesControllerEPApplyStart )
    Notch ( 0.200 0 TrainBrakesControllerEPApplyStart )
    Notch ( 0.275 0 TrainBrakesControllerEPApplyStart )
    Notch ( 0.350 0 TrainBrakesControllerEPApplyStart )
    Notch ( 0.425 0 TrainBrakesControllerEPApplyStart )
    Notch ( 0.500 0 TrainBrakesControllerEPApplyStart )
    Notch ( 0.575 0 TrainBrakesControllerEPApplyStart )
    Notch ( 0.650 0 TrainBrakesControllerEPApplyStart )
    Notch ( 0.725 0 TrainBrakesControllerEPApplyStart )
    Notch ( 1.00 0 TrainBrakesControllerEmergencyStart )
    )
    )
    So, what this does is it has one release, one hold position, then 9 individual brake positions and then one emergency brake (oh, almost forgot it, this is from the .eng file).

    Comment

    • Shortliner
      New Member
      • Dec 2007
      • 0
      • Concord, NC

      #3
      Originally posted by Bzmot332
      Hi guys!

      I'm facing a problem with the air brakes. I built myself a controller based on a real loco brake leveler valve.
      Got a picture of your custom controller?
      Sean Summer
      CEO of Blue Ridge Mountains Machine works.

      Comment

      Working...