Ts Classic Raildriver And Joystick Interface

Discussion in 'General Discussion' started by CobraOne, Aug 21, 2023.

  1. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    I am the creator of the TS Classic Raildriver and Joystick interface, that for the last 9 years, has been available for download and discussed on forums.uktrainsim.com. As the forum is now closing down as of 31/08/2023 I have created this thread here so that the program will still be available for all to download.
    Inside the main program zip file is a folder called manuals, which explains how to use the program.
    With the program you can not only use the Raildriver from PI Engineering, but also joysticks as well as those you create yourself using a Arduino.
    You can also have an overlay over the screen to display speed, speed limit and various values from the gauges in the game.
    I don't intend developing the program any further as I have moved on to a similar program for TSW2 and above available in the TSW thread.
    Here are the links.
    Main Program
    https://www.dropbox.com/scl/fi/xemk...ey=4ctekxbi55q5ln5aky1pnwyns&st=26iyuspz&dl=1

    Directx
    https://www.dropbox.com/s/jk7oa3jcszgc3ac/DirectX.zip?dl=1
     
    Last edited: Jan 9, 2025
    • Like Like x 7
    • Helpful Helpful x 1
  2. Kim Olesen

    Kim Olesen Well-Known Member

    Joined:
    Jun 21, 2018
    Messages:
    725
    Likes Received:
    563
    Just a huge thanks from me. I am using it with two Logitech Saitek quadrant throttles, and i can never go back to driving with the keyboard again. Setup was super easy and intuitive.

    I think you should consider getting it hosted on Rail-Sim.de if you are not already. They host a bunch of other orphaned stuff as well.
     
  3. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,816
    I'm very sorry to hear this, it feels like you think TSW2 3 4 whatever is the natural progression from TS Classic but the majority of us TS Classic players here don't actually like TSW, I have all versions of it and get bored of it after an hour max, the same cannot be said of TS Classic.
    Of course it's your choice what you develope and what game you personally prefer I'm not knocking you for that and I'm also extremely grateful for the TS Classic version you've developed thus far I'm just saddened that you've seemingly relegated TSC and it's players to the no longer relevant bin.

    I wish you well with your endeavours C1.
     
  4. Kim Olesen

    Kim Olesen Well-Known Member

    Joined:
    Jun 21, 2018
    Messages:
    725
    Likes Received:
    563
    It doesn’t seem to have any major bugs, so sometimes a piece of software is just finished and it’s perfectly fine to move on to something else.
    CobraOne Does this mean it is shareware? I mean if i have a copy of it, is it ok to pass it on to someone else who wants it?
     
  5. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    Wow, I wasn't expecting a response like that. I don't have a preference, in fact, I don't play either game, I just like pogramming.
    The reason for not developing the TSC version any further is because I believe I have done all I can to it.
    You can use any joystick with it, you can use your own custom built joysticks with it, you can have data displayed on an overlay and you can send the data to various electronics include servo/stepper motors and various displays in order to build a fully working cab.
    Saying "that you've seemingly relegated TSC and it's players to the no longer relevant bin."
    I think that is a bit harsh as I can't see what else I can add.
     
    Last edited: Aug 22, 2023
    • Like Like x 1
  6. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    Hi Kim
    I believe Shareware is something you can use for a limited time and then you have to pay for it.
    My software has always been Freeware. In other words, it is free for you to use and pass on to anyone else to use for free, so long as it is not then used for commercial use.
    Chris
     
    • Like Like x 1
  7. Kim Olesen

    Kim Olesen Well-Known Member

    Joined:
    Jun 21, 2018
    Messages:
    725
    Likes Received:
    563
    Ahh yes, i meant freeware. Thanks for the reply, and thanks for making TSC much more immersive with your app.
     
    Last edited: Aug 22, 2023
  8. Reef

    Reef Well-Known Member

    Joined:
    Jul 27, 2018
    Messages:
    2,806
    Likes Received:
    1,816
    Hey. I was only reacting to what you wrote,
    if you didn't mean
    to sound like "I don't intend developing the program any further as I have moved on to a similar program for TSW2 and above available in the TSW thread."
    but in fact meant
    then maybe that's what you should have wrote.

    You writing what you initially did made it sound like you didn't intend adding any new features or tweaks to the existing TSC version but want to develop the TSW version beyond what already exists, that to me says TSC binned and TSW getting all the attention and love..

    I apologise if you think what I said was harsh it wasn't meant in that manner just as I said saddened that it appeared that we'd been left behind is all..

    You are surely aware (or perhaps maybe you aren't) that I have banged the CobraOne software drum louder than any other TSC player and DTG forum member anywhere else on the internet, just search "CobraOne" by author Reef if you need confirmation.

    And like I said before, I wish you well with your endeavours.
     
  9. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    I am aware that you have championed my software which is why I was suprised by your comment.
    Even if what I had initially written was what I meant, the fact that I have spend nine years of my time developing the software and adding various requested features to it, even keeping it working through all the various iterations from ts2015 to present day and all for free.
    Then surely I have earned the right to decide when I call it a day on the development.

    I assume you have been following my thread for the TS World version as you made post No 3 welcoming me to the forums, if so you would see that all I am able to do is add joystick support and nothing else. There is no way the TSW version could ever match the TSC version and once I have sorted the final bugs, development for that version will end too.

    Anyway, I think we should put this to rest now and accept that it was just a misunderstanding between the two of us.
    Chris
     
    • Like Like x 2
  10. greywulf

    greywulf New Member

    Joined:
    Feb 9, 2019
    Messages:
    10
    Likes Received:
    2
    Hi, Purchased EMD SD70ACU - CP from Searchlight Sim and have to use the Raildriver Calibration tool TS2017 RailDriver and Joystick Interface. I like it but the Train Brake is not responding at all (doesn't move when lever on Raildriver is moved). I followed the instructions several times and it doesn't work. The Train Brake lever works for all the other Locos in Train Simulator 2024 except TS2017 EMD SD70ACU - CP. Please help. Thanks Joe
     
  11. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    Hi Joe
    I did see your conversations started with me but I have been preoccupied with a family members illness so my free time is limited at the moment. I don't own that particular asset so we will need to try a few things to see if we can fix this for you.

    Can you look in the lever map for the loco and check to see if the TrainBrake has the "Enabled" set to Yes.
    If there is more than one entry for the TrainBrake, try enabling them all to see if that fixes it for you.
    Chris
     
  12. greywulf

    greywulf New Member

    Joined:
    Feb 9, 2019
    Messages:
    10
    Likes Received:
    2
    Thank you for response I don't know what to do.I tried what you suggested enabling Yes on one or both in the Train Brake and levers and still no movement at all.
    The Train Brake Lever works for all the other Locomotives in Train Simulator Classic 2024 except the two purchsed from Searchlight Simulations the SD70ACU and AC4400. The SD70ACU purchase includes your TS2017 Raildriver and Joystick Interface V3.3.0.1 in their store download (which I updated to a V3.3.0.6 found seems latest version).
    I've tinkered with many different solutions and the Train Brake Lever does not move at all when the SD70ACU and AC4400 locos are loaded in the sim. All the other levers work fine for those two Locos.
    The Train Brake lever does work perfectly for the SD70ACU and AC4400 when I use the key command for Train Brake but not the Raildriver lever.

    I've been trying for days to fix it and have tried many possible solutions. I am hoping it is a simple fix that I may have overlooked any help is appreciated. Thanks in advance, Joe
     
  13. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    Hi Joe
    I have replied to you in the Conversation you started.
    Chris
     
  14. bruceiow

    bruceiow New Member

    Joined:
    Aug 22, 2022
    Messages:
    3
    Likes Received:
    0
    Is this project open source? I would happily move it on from .net framework to core and look at new features if it was.
     
  15. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    No it's not, this started out as a hobby when I retired, I had no programming training at all. The code I believe is over 25,000 lines long and non of it documented. I did give the code to someone before who assured me he would be able to decipher it and not have to pester me to keep explaining what each form did, but I then got spammed with emails asking to explain the code.
    Because of that, I will not release the code again, sorry.
    Chris
     
    • Like Like x 2
  16. dolanbaker

    dolanbaker Active Member

    Joined:
    Dec 29, 2022
    Messages:
    144
    Likes Received:
    120
    HI All, over the past few months, I have been building a "raildriver deluxe", this uses CobraOne's code and Arduino controllers. Here are a couple of images of the work in progress hardware. 20241130_165050.jpg 20241130_165058.jpg 20241130_165058.jpg
     
    • Like Like x 9
  17. christopher gruber

    christopher gruber New Member

    Joined:
    Dec 4, 2024
    Messages:
    2
    Likes Received:
    0
    Hey,

    I'm new to the subject of drive/brake levers. I noticed that with the BR187 there is a jump from 20% brake to 20% power. It doesn't matter which joystick I use. How can I correct this? I use "tsw raildriver and Joystick Interface"
     
  18. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,027
    Likes Received:
    3,138
    Are you driving a BR 187 in TSW?
     
  19. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    TS Classic Raildriver & Joystick Interface V3.3.0.7 Released

    1. Added fixes for the Searchlight Simulations TrainBrakes not working on some of their loco's.
    2. Added the TSClassic Interface (x86).exe missing from V3.3.0.6
    3. Fixed NextSpeedLimitSpeed and NextSpeedLimitDistance missing from SerialPort options

    Existing users just need to copy over the following updated files:
    1. "Settings\Railworks_GetData_Script.lua" file to the "Railworks\Plugins" folder.
    2. "TSClassic Interface (x86).exe"
    3. "Settings\ControlNames_Master.txt" file to the "Settings" folder.

    If you use any Searchlight Simulations loco's, you will also need to add the following 2 lines to the "//TrainBrake" section in your "Settings\ControlNames.txt" file
    Lever=TrainBrake=Train Brake Handle
    Lever=TrainBrake=Auto Brake Handle

    The program can be downloaded from here:
    https://www.dropbox.com/scl/fi/xemk...ey=4ctekxbi55q5ln5aky1pnwyns&st=26iyuspz&dl=1

    Chris
     
    • Like Like x 6
    • Helpful Helpful x 2
  20. JPS

    JPS Member

    Joined:
    Feb 16, 2021
    Messages:
    36
    Likes Received:
    14
    Glad I took a look here. Apparently the 'check for updates' did not pick this up.
     
  21. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    JPS
    My bad, it's been so long since working on the TS Classic version, that I forgot I had the check for updates option.
    Now fixed :)

    Chris
     
  22. GamingwithJem

    GamingwithJem New Member

    Joined:
    Feb 23, 2025
    Messages:
    3
    Likes Received:
    1
  23. jisastre

    jisastre New Member

    Joined:
    Feb 25, 2025
    Messages:
    1
    Likes Received:
    0
    Hi CobraOne,

    First of all a big thank you for your amazing contribution with the TSCRJI. Its given me sooo many options and data to add to the arduino controller I'm building...

    I'd like to ask you if there is the option to retrieve the name of the next station and the distance to go to it.

    Thanks again for your work.

    Regards
     
  24. Bekns

    Bekns Active Member

    Joined:
    Jan 20, 2019
    Messages:
    139
    Likes Received:
    56
    Hi Chris

    Do you still have the link up for older versions, my distance reset seems to have stopped working and was going to see if it worked in the previous version or not
     
  25. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    I've answered jisastre via email, but for those interested, it is not possible to retrieve the name of or distance to the next station.
    Chris
     
  26. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
  27. Bekns

    Bekns Active Member

    Joined:
    Jan 20, 2019
    Messages:
    139
    Likes Received:
    56
  28. lischkakoko

    lischkakoko New Member

    Joined:
    Mar 13, 2025
    Messages:
    1
    Likes Received:
    0
    Hey, I am trying to build a tsc driver for a ÖBB Br4020 with my arduino but i dont know how the raildriver and joystick interface recognizes an arduino joystick. I am using two potentiometers for a throttle/breaklever and a cruse control lever. can someone help me with that ?
    Konstantin
     
  29. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    Hi Konstantin
    Which Arduino are you using?
    I know of two libraries for joysticks, both with examples.
    1. https://github.com/MHeironimus/ArduinoJoystickLibrary/tree/master requires a Leonardo or pro micros using a ATmega32u4
    2. https://github.com/schnoog/Joystick_ESP32S2 requires a ESP32S2.

    I have used the first one with a leonardo, but I have no experience of using the second.
    Once you have your code uploaded to the Arduino, then it should be recongnised in windows as a joystick, my program will also recognise it.
    All you have to do then is assign the joystick levers in the Master Lever Asignment in my program.

    If you are still having problems, then upload your code and I will have a look at it for you.

    Chris
     
  30. Bekns

    Bekns Active Member

    Joined:
    Jan 20, 2019
    Messages:
    139
    Likes Received:
    56
    Along with the ones Chris has mentioned there is also Unojoy, also has firmware for Mega as well, more inputs for buttons, this is one I use

    https://github.com/AlanChatham/UnoJoy
     
  31. Dr Iver

    Dr Iver New Member

    Joined:
    Sep 26, 2022
    Messages:
    20
    Likes Received:
    5
    Well this is exactly what I’ve been looking for!

    I’ve been building Flight Sim cockpits for MSFlightsim & Xplane for over 20 years. Now that I’ve retired from being a Train Driver I’m delighted to see that I can use hardware to control a trainsim.

    Fortunately I already have several Bodnar USB cards...
    https://www.leobodnar.com/shop/index.php?main_page=index&cPath=94[COLOR=var(--darkreader-text-000000, #e8e6e3)]
    which provide switch and joystick inputs without any need for coding.

    At the moment I’m temporarily using an old Saitek X52 which I butchered previously to make a helicopter collective control. This is my configuration for TSC.[/COLOR]
    [​IMG]

    Since I only drove passenger trains, my main interest is in freight locos, and my first step is to knock together an 8 step power controller using a rotary 9 way switch and 8x 1kΩ resistors in a voltage divider so that I can use a joystick input. I’ll breadboard it first to make sure I’m doing it right.

    In time I intend to use a car speedo to make a speedometer.
     
    • Like Like x 1
  32. JPS

    JPS Member

    Joined:
    Feb 16, 2021
    Messages:
    36
    Likes Received:
    14
    I did this, but for the Alaska Route brake levers (both) still don't work. They never have for me btw.
     
  33. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    Can you start a scenario and my program and click the Start Callback button, then set both brakes to full on.
    Next can you click the Stop callback button and copy all the data from the "Data received from railworks" windows to a text file, call it brakes on.
    Then click Start Callback, move the levers to off and again clcik the stop callback button and copy the text from the "Data received from railworks" windows to a text file, call it brakes off.

    Can you then post both files here so that I can have a look at them to see what the name of the brakes are.

    Chris
     
  34. crrispy

    crrispy Member

    Joined:
    Dec 25, 2019
    Messages:
    34
    Likes Received:
    13
    Hello, I just installed this back (3.3.0.7) after "some" time. TS classic 2024, x64. It connects to the Raildriver, calibration done, standard mode, connects to TS, loads the lever map (tried a few locos) but sends nothing to TS. The "Data sent to Railworks" window remains empty.
    Any idea?
     
  35. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    Hi Crrispy
    Can you double check that the Settings\Mode\Standard has a check mark to its left, I know in the past that sometimes this does not get updated when the program is first run and will stop any data being sent.
    Chris
     

Share This Page