Results 1 to 3 of 3

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

  1. #1

    Default 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)?

  2. #2

    Default

    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).

  3. #3
    Join Date
    Dec 2007
    Location
    Concord, NC
    Posts
    1,075

    Default

    Quote Originally Posted by Bzmot332 View Post
    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?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •