PC Raildriver

Discussion in 'TSW General Discussion' started by DTG Matt, Jul 1, 2026.

  1. DTG Matt

    DTG Matt Executive Producer Staff Member

    Joined:
    Nov 17, 2016
    Messages:
    3,509
    Likes Received:
    20,044
    campinge give me a DM, let's get you under NDA and on the beta programme, then you can access everything and help with feedback to make sure it runs the best it can, it's also easier to talk directly with the dev team and get answers to technical questions.

    The variation on the notch setup, as i've seen it, is that there is some variation in whether "input" or "output" positions define the notch.

    For those unaware - TSW has two lever position representations. The "input" is usually 0 to 1 and just matches the minimum and maximum extents. The "output" is range-mapped to something that makes more sense, and might map it to say -1 to 4 - if you have one step below zero, then four steps above it. But this input/output difference can be confusing, and the way notches are defined using an inconsistent (as far as I know :) ) mix of the two, doesn't help matters at all.

    In one loco - i think it's the 350, the *fixed* notches are defined with one, and the *continuous* positions are defined in another. Move on to test a different loco and now its all done on the inputs and another loco its another mix. I think ultimately it's down to the loco author who simply sets the notches up the way they feel most comfortable for the configuration they're trying to achieve.

    I have some code that is trying to make sense of it - my goal is to have a set of vibration motors which I'll attach to the TSC-X throttle handles, then as you move the throttle to a new "notch", it'll buzz the motor - giving you direct haptic feedback. My code is far from finished though, but happy to share notes - this is a personal project, nothing official.

    I've also been trying to make it work without any configuration needed - so it scans what controls are on the loco once it detects a new loco, and based on which ones it finds, i've got some rules set up so it can say "oh hey this is a two handle BR era loco, set it up like this" or "this is a german sbahn style pbc - set it up like this". Basics of this are working quite nicely but only on a limited configuration thus far, I want to get this notching stuff sorted before I spend more time anywhere else.

    Matt.
     
    • Helpful Helpful x 7
    • Like Like x 3
  2. LeadCatcher

    LeadCatcher Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,707
    Likes Received:
    4,712
    Hos the DTG Raildriver configuration been changed in a recent update - Yesterday everything was working well with Cobra One's TSE raildriver and JHoystick interface - but today TSW threw an Unreal crash on starting with that enabled - replaced the modified Pie DLL from Cobra's software and replaced it with the default and TSW strarted normally - Using the default Pie deel from DTG - it seems better but still has a bit of jitter - on the Meryygo round scenario throttle was jumping 2% and with the CLass 20's slow speed it was enough jitter where the throttle kepe juming out of slow speed to 4% and back - making the unloading a bit tedious
     
  3. protonmw

    protonmw Active Member

    Joined:
    Mar 18, 2022
    Messages:
    199
    Likes Received:
    151
    DTG Matt please also pay attention to locos with spring loaded levers like DB BR612 or TSG G6 for example. Current situation is that the lever notches back after 2 seconds or so even if you have the raildriver throttle at full position. To power the loco full up you have to change lever position back and forth an back and forth and ....
     
    • Like Like x 2
  4. DTG Matt

    DTG Matt Executive Producer Staff Member

    Joined:
    Nov 17, 2016
    Messages:
    3,509
    Likes Received:
    20,044
    No changes to raildriver yet, hoping to get the jitter fix into the next patch.

    Matt.
     
    • Like Like x 3
  5. DTG Matt

    DTG Matt Executive Producer Staff Member

    Joined:
    Nov 17, 2016
    Messages:
    3,509
    Likes Received:
    20,044
    Those are going to need something else I think, not sure if the current interface can support controls that adjust themselves - but will add to the list of things to look for a solution to, several affected by it.

    Matt.
     
    • Like Like x 1
  6. LimitedEdiition

    LimitedEdiition Well-Known Member

    Joined:
    Dec 16, 2017
    Messages:
    354
    Likes Received:
    861
    The jitter patch is what will bring me back into the game. Ever since TSW5 released that introduced it, using the RD has been a chore. Hopefully it is improved across all spectrum of trains, or at the very least how it functioned before TSW5.
     
    • Like Like x 1
  7. DTG Matt

    DTG Matt Executive Producer Staff Member

    Joined:
    Nov 17, 2016
    Messages:
    3,509
    Likes Received:
    20,044
    Yeah I found there was a change made when the API went in which removed something inadvertently (simple logic mistake).

    Because the raildriver has very noisy potentiometers on the input levers, when you read values from it you dont get a single value even if the lever stays still - you get a bunch of wavering values in around the one you actually want. Which is what gives you the jitter. Depending on how well your potentiometers are doing, depends on how much jitter you experience in the raw data.

    Before TSW5 we had some code in there that required the lever to have moved more than a small amount before it would accept the new input as valid - which then smooths it out, at the cost of reducing the resolution of the lever a little.

    The change that went in flipped the logic on a surrounding test and that meant it no longer did the jitter removal for RailDriver. I've had that flipped back and in my tests it's much better (even on my 23 year old OG Rail Driver). I got beta team to test the change too, and they've reported positively.

    It's a core change that affects input reading of any lever from the raildriver, and is not train specific, so all trains are behaving better.

    Matt.
     
    • Like Like x 5
    • Helpful Helpful x 1
  8. Thorgred

    Thorgred Well-Known Member

    Joined:
    Jun 8, 2018
    Messages:
    1,092
    Likes Received:
    685
    23 years old the rail driver time flies by
     
  9. LimitedEdiition

    LimitedEdiition Well-Known Member

    Joined:
    Dec 16, 2017
    Messages:
    354
    Likes Received:
    861


    Music to my ears. Circling back to the original topic, I find that the Class 350 (along with all of its variants) is difficult to drive with the raildriver. The neutral throttle position feels too small, so I find myself going from B1 to P1 very frequently. Maybe the sensitivity patch will rectify this, but maybe increasing the neutral zone would help as well.
     
  10. DTG Matt

    DTG Matt Executive Producer Staff Member

    Joined:
    Nov 17, 2016
    Messages:
    3,509
    Likes Received:
    20,044
    I'll give it a try later on and see how it is.

    Matt.
     
    • Like Like x 1
  11. pegeka

    pegeka New Member

    Joined:
    Nov 1, 2021
    Messages:
    10
    Likes Received:
    4
  12. bartolomaeusz

    bartolomaeusz Well-Known Member

    Joined:
    Aug 20, 2020
    Messages:
    907
    Likes Received:
    1,101
    The jitter being sorted would cause me also to re-connect my RailDriver to TSW6!
     
  13. LimitedEdiition

    LimitedEdiition Well-Known Member

    Joined:
    Dec 16, 2017
    Messages:
    354
    Likes Received:
    861
    I'll give it a try, but it's better to fix the issue at its core because any of the future variants and the mod variants that use the base dependencies will run into the same issues.
     
    • Like Like x 2

Share This Page