PC Ts World Raildriver And Joystick Interface

Discussion in 'TSW General Discussion' started by CobraOne, Nov 8, 2022.

  1. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,986
    Likes Received:
    1,960
    Since the default Piehid file is there as a backup, I sure can reverse them to see what happens. If that brings the reverse back, I can then run CobraOne's program and let it put a new one of his files in.
     
  2. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    it's worth a try, hope it all works out.
     
  3. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,986
    Likes Received:
    1,960
    The weirdness continues. I switched out the Piehid files, renaming the CobraOne one with _bk and removing that from the DTG file. Started up WCML with a 350. Reverse still won't work, along with all the jittering in all controls. I even tried to put it into reverse using the mouse and the on screen knob, no luck, as soon as I took the cursor away it went right back to neutral. I am back with the Piehid file from CobraOne and things are back stable, other then reverse. I mean we hardly ever use it, so I can live with what I have at present since Rail Driver works great otherwise.
     
  4. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    Have you verified the files via Steam? I know a bit late but I'm running out of ideas.
     
  5. LeadCatcher

    LeadCatcher Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,547
    Likes Received:
    4,157
    do you have TSC… and if so does the Raildriver work ok in TSC? I am starting to think it might be a hardware problem. When calibrating in either TSW or via the CobraOne calibration prgrams, does it work ok. In the CobraOne calibration it gives you the values for each calibrated position. Might be interesting to let us know what yours are for the reverser so we can compare those values to ours.
     
    • Like Like x 1
  6. SJAY_ONE

    SJAY_ONE Active Member

    Joined:
    Mar 11, 2022
    Messages:
    143
    Likes Received:
    194
    Is this mod only necessary for using Raidriver, or is it also necessary for third-party controllers?
     
  7. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    you can use a joystick if you wish.
    upload_2024-10-2_1-55-56.png
     
  8. chippiearnold

    chippiearnold Member

    Joined:
    Oct 24, 2017
    Messages:
    32
    Likes Received:
    59
    I use CobraOne's awesome driver for powering my "homebrew" 158 / 152 / LU1972 desktop controller which has now migrated from a cardboard box to a wooden box!

    For anyone interested in the technical bits, I use a Leo Bodnar BU0836X joystick interface for all buttons and analogue axes, 100K potentiometers for the throttle, brake, reverser and wipers and then various push buttons which I acquired mostly from Amazon. The reverser "pointer" came from RS Components, and the "lollipop stick" ball-ended lever came from WDS Components. You can unscrew the ball end and attach a T-Bar handle if driving a combined power handle loco.

    The buttons along the top are used for various things, mainly camera controls, lights, engine start and stop and master key.

    In the middle row, the lever to the left is used for brakes on the 158 and 142, and combined for the 1972 LU stock. The dial alongside is for wipers, then an AWS plunger, and finally the ball-end throttle lever which is attached to a potentiometer mounted at 90 degrees inside the box.

    Under the AWS is the "pointer" control pontentiometer for the Reverser.

    Finally, the red buttons either side at the bottom are door controls and the larger green mushroom headed button is the guard buzzer.

    I am just waiting on delivery of an up-down small joystick control to use as a horn.
     

    Attached Files:

    • Like Like x 2
  9. chippiearnold

    chippiearnold Member

    Joined:
    Oct 24, 2017
    Messages:
    32
    Likes Received:
    59
    Sorry, forgot to attach the !"inside the box" view!
     

    Attached Files:

    • Like Like x 1
  10. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    And you have this working on all trains? or just the ones you mentioned? , 158, 152, 1972?
     
  11. chippiearnold

    chippiearnold Member

    Joined:
    Oct 24, 2017
    Messages:
    32
    Likes Received:
    59
    It will work on any train, it's just the layout I chose is particularly suitable to those, but you can create any number of lever maps and button maps in CobraOne's software, so I can theoretically drive anything with it. It just appears on the PC as a USB joystick.
     
    • Like Like x 1
  12. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    Very nice, I like what you made, and you did not use an Arduino, and you figured out the button mapping, there is a discussion here on how to go about mapping the buttons. PC - Raildriver User Feedback Wanted Please | Page 2 | Dovetail Games Forums

    PS: give it a nice mahogany stain :)
     
    • Like Like x 1
  13. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,986
    Likes Received:
    1,960
    Can sure do that. Will give values next time I start the TSW. I have TSC, but Rail Driver is not set up in it, though I would think now that I have the CobraOne interface it may work in there. I haven't run TSC in well over 2 years. As far as file verification in Steam, that has been done without any change.
    The reverser values:
    full forward 0
    full reverse 1
    neutral can be(first 3 numbers only) 0.556, 0.537, 0.529 and 0.533, in other word, the value varies each time I set neutral.
    Sure hope it's not hardware, a new one is currently $219.99 on Amazon.
     
    Last edited: Oct 2, 2024
  14. LeadCatcher

    LeadCatcher Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,547
    Likes Received:
    4,157
    Ok that is strange my numbers on the reserver in CobraOne's calibration is Full Fwd 72 Neutral 123 and full reverse is 205
     
  15. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,986
    Likes Received:
    1,960
    OK, I will do a recalibration of the Rail Driver within CobraOne's program and see if it makes any difference.
     
  16. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    These are the raw values from your Raildriver when you run the calibration in my program.
    TSW & TSC both expect a value between 0 and 1, these are the values shown on the main form that are being sent to TSW after I convert the range from the calibration data (72 - 205 in LeadCatchers case) to the new range 0 - 1, so Sharon, your Raildriver appears to be working OK.
    Do you have Macroworks installed? That is the program supplied with the Raildriver, if so, try uninstalling and see if your Reverser then works.
    Chris
     
  17. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,986
    Likes Received:
    1,960
    Checked all my programs using the add/remove utility and nothing called Marcoworks was found. I can move the reverser lever from forward to reverse using both the keyboard and mouse, so it is just in Rail Driver that it won't move into the reverse position, even though the numbers are correct when you watch them in the open program display. I also looked into my files and there is no RailDriver folder in the Program Files (x86) folder.
    I really appreciate all the tries to help with this, but since I can get into reverse with the keyboard, I am not going to worry about it any longer.
     
    Last edited: Oct 2, 2024
  18. SJAY_ONE

    SJAY_ONE Active Member

    Joined:
    Mar 11, 2022
    Messages:
    143
    Likes Received:
    194
    Only my control works on BR101 Expert DB, and does not work on IC and MFD (ETCS) versions ?
     
  19. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    If the locobrake is set in the game to operate the AFB, then there is nothing I can do to change that.

    They are the blue buttons on the Raildriver, it allow you to either assign a joystick button to match a raildriver button, or to reorder the blue buttons by creating a button map for each loco. This will allow you to have the button laid out the same for all loco's.

    It is not necessary to use this program for the Raildriver as support is built into TSW.
    If you want to be able to rearrange the levers or buttons on the Raildriver, then use this program. If you want to use a joystick or maybe your own controller that emulates a joystick, then you will need this program to do that.

    I am not familiar with the workings of German trains, but if by MFD you mean the display screen in the cab, then, if there are keyboard keys in the game to control the buttons on the MFD, you will need to create a button map and assign your joystick buttons to the relevant keyboard keys.

    Chris
     
    Last edited: Oct 3, 2024
    • Like Like x 1
  20. SJAY_ONE

    SJAY_ONE Active Member

    Joined:
    Mar 11, 2022
    Messages:
    143
    Likes Received:
    194
    Thank you for your reply. As for the BR101 Expert, I meant that out of the three versions, the lever control only works with the DB version. On variants in the IC livery as well as on the Steuerwagen head car, the levers do not move. Maybe someone also encountered this?
     
  21. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,986
    Likes Received:
    1,960
    I seem to remember in the initial streams on the expert 101, TWG said that Rail Driver was not set up for this locomotive. It seems to work on the DB red, not the others.
     
    • Like Like x 1
    • Helpful Helpful x 1
  22. PrimeMoverSimulator

    PrimeMoverSimulator New Member

    Joined:
    Sep 21, 2024
    Messages:
    6
    Likes Received:
    1
    Hey everyone, I'm having an issue with the TSW Raildriver and Joystick Interface program. Everything was working fine for the past week or so, however the program all of a sudden decided not to work as whenever I click the Start Callback button with TSW running, the program states that the program is "Unable to create Raildriver." I've tried removing the program and reinstalling the files, verified the TSW5 game files on steam (in case I accidentally changed something in the program, disabled my antivirus as a precaution, even tried replacing the PieHid64.dll that's in the Interface program into TSW5/Saved/Config/WindowsNoEditor (which does nothing but crash the game when trying to load it up), but to no avail.

    Currently, I am unable to use Raildriver with this program installed, as the only way to use Raildriver in game is to use the crummy Native support built in the game that Dovetail seemed to screw up bigtime in this game compared to TSW4 (in which the levers on whichever locomotive I'm playing on are constantly fidgeting, something that Dovetail hasn't bothered to fix yet). Any help would be appreciated on how to fix this issue would be appreciated, as I really like using this program compared to the native Raildriver support. bandicam 2024-10-08 20-26-54-252.jpg
     
  23. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    Did you follow the quick start guide? If so, try doing the Raildriver calibration again, but rather than using the mouse to click next and okay, press the enter key. Once you are done with that, continue following the quick start guide. Are you starting the TSW Raildriver and joystick Interface First? Then starting TSW5 second, it will not work if TSW5 is running then you start the program.
    upload_2024-10-9_2-19-14.png
     
    • Like Like x 1
  24. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    Hi PrimeMoverSimulator
    My program talks to TSW using a file created in memory each time you run my program.
    It appears your PC is not allowing this file to be created.
    Try moving my program folder to the root of your drive such as C:\, or D:\ etc.
    If that does not work, then right click on the "TSW Raildriver And Joystick Interface.exe" and select "Run as Administrator"
    Chris
     
    • Like Like x 1
  25. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    The number one reason I avoid running games and game-related programs on the C drive and I lower the UAC and Windows Defender settings and use Bitdefender AV, it has a good game mode and sometimes I still give admin rights to programs and games.

    Also, PrimeMoverSimulator make sure you are not running the mactroworks 3.1 at the same time.
     
    • Like Like x 1
  26. PrimeMoverSimulator

    PrimeMoverSimulator New Member

    Joined:
    Sep 21, 2024
    Messages:
    6
    Likes Received:
    1
    It looks like the issue was due to me not running the program as Administrator. Odd considering the last few times I ran it I didn't have to run it as administrator, but regardless, I got the issue fixed, and the program is running with no issues. Appreciate the help lots CobraOne!

    Followed the start guide to a tee, then did the raildriver calibration again as you've instructed. The program was still not able to create raildriver, but as stated above, the issue was due to the program not running as administrator. I've been able to run the program starting TSW5 first then the program second with no issues so far, including right now.

    I do not have the Macroworks program installed on my computer. Regardless, appreciate the help!
     
    • Like Like x 1
  27. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    This is an issue only a few people experience, even with my TS Classic version and I have never been able to figure out why!
    Chris
     
  28. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    That is odd, I have to start the program first, then TSW5, if do not do like that it just will not work, but as long as you are happy and have it working that is all that matters.
     
  29. jeffmorris

    jeffmorris Member

    Joined:
    Sep 26, 2023
    Messages:
    69
    Likes Received:
    18
    I would like Raildriver and joystick interface for Trainz games.
     
  30. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    Unfortunately, as there is no native support built into Trainz (you need to install a separate program from PI Engineering), it is not possible for me to create a version for Trainz.
    Chris
     
  31. jazzymanserg#1405

    jazzymanserg#1405 Member

    Joined:
    Sep 20, 2024
    Messages:
    31
    Likes Received:
    3
    Thx Cobra everything working make Speedometr on 3.5 inch display and throtle/brack contoller with 4 buttons.
    In Train Sim World 5 TSW Raildriver interface (software) 2.0.8 freeze after stop game and i cut off it in Task Manager. But its not big problem for me.
    P.S. Version 2.0.9 WORKING GOOD without this freeze
     
    Last edited: Oct 30, 2024
  32. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    There is a Version 2.0.9 for the Raildrriver interface?
     
  33. jeffmorris

    jeffmorris Member

    Joined:
    Sep 26, 2023
    Messages:
    69
    Likes Received:
    18
    I don't see Version 2.0.9 for the Raildrriver interface.
     
  34. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    TSW Raildriver & Joystick Interface V2.0.0.9 released.
    This version expands on the option to use a single flight stick to control the ThrottleAndBrake.
    You can now use another flight stick to control both the TrainBrake and LocoBrake, see the new "Single Lever Joystick V2.pdf"


    Main Program:
    https://www.dropbox.com/scl/fi/bh81...ey=g7weun8xw3jdunqgjgaspgatn&st=qilcm228&dl=1
    If you don't intent to use the second flight stick, then there is no real need to upgrade from V2.0.0.8
    Chris
     
    • Like Like x 5
  35. jeffmorris

    jeffmorris Member

    Joined:
    Sep 26, 2023
    Messages:
    69
    Likes Received:
    18
    In the Default_ButtonMapper file, there is Wipers Decrease command but no Wipers Increase command. There is no command for sitting in seats, going up and down ladders, etc. Is it possible for me to add these commands to the file? I built a train controller similar to Dave's Loco Controller.
     
  36. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    To add a command to a button map, simply edit the button map, then right click on any row and select "Add New Command" from the pop up menu.
    In the windows that pops up, enter a name for the control such as Wipers Decrease ( this has no relevance to the program, it is there just so you know what each key combination does), then select the required Key, Extended_1 and Extended_2 if needed like this
    upload_2024-11-1_7-53-40.png

    If you are assigning this to a button, then you can leave the State and Delay in ms blank. If you are using a switch that stays on, then you can select either Pressed or Released for the state, ie the key combination won't be sent until you turn the switch on (pressed) or off (released). The delay in ms may also be required when using a switch if the keyboard command does not seem to work. Setting the delay to 50 or more will usually fix this.
    Finally click OK to return to the button map screen and assign you button to this new command.
    Chris
     
  37. amtraknick1993

    amtraknick1993 Well-Known Member

    Joined:
    Dec 22, 2019
    Messages:
    568
    Likes Received:
    921
    Any chance the bail off function on the independent brake handle will ever get fixed? Along with the rotary switches?
     
  38. jazzymanserg#1405

    jazzymanserg#1405 Member

    Joined:
    Sep 20, 2024
    Messages:
    31
    Likes Received:
    3
    Help me. I use this driver for arduino spedometr. Everything working 10-20 sec than freez and not responze. I even cant close this driver. Its freeze and not respond restart it and start again
     
  39. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    Try the following
    1. Unplug your speedometer, then run my program and TSW and see if the game still crashes.
    2. Exit my program and TSW, plug the speedometer back in, and In my programs folder, right click on the "TSW Raildriver And Joystick Interface" file and select run as administrator. Does the game still crash?
     
  40. jazzymanserg#1405

    jazzymanserg#1405 Member

    Joined:
    Sep 20, 2024
    Messages:
    31
    Likes Received:
    3
    So, game not crashes and not freeze. But TSW Raildriver And Joystick Interface freeze and joystick not working and speedometr
    So, TSW game does not crash in any case 1 an 2.
    could the reason be that I am choosing the wrong game asset?
     
    Last edited: Nov 8, 2024
  41. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    No, that should not matter.
    Can you disconnect your speedometer, start my program and click on Start Callback. Then move your joystick and see if you can see any values changing in the lower left panel titled "Data Sent To TSW", if so, does my program still freeze?
     
  42. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    252
    Likes Received:
    188
    The rotary switches have been fixed since V2.0.0.8

    TSW Raildriver & Joystick Interface V2.0.1.0 released.

    1. Confirmed wipers & lights switches work OK.
    2. BailOff can now be assigned in your Master Lever Map and will now work correctly.

    Main Program:
    https://www.dropbox.com/scl/fi/w7c7...ey=5k785zqt52wsgm3uy8q6kid1z&st=3e9bkr77&dl=1

    Chris
     
    • Helpful Helpful x 1
  43. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,986
    Likes Received:
    1,960
    bandicam 2024-11-08 11-27-46-479.jpg CobraOne, I downloaded the new 2.0.1.0 version and put the new PIE file in binaries and moved the application file to my desktop, which is where I start it. When I click on the application, I get this. So, I am wondering, do all of the other files from the zip which are dll files now need to be in the binary folder? I seem to have totally bricked the setup. I even ran the interface application again and did a calibration. Am getting the same error.
    bandicam 2024-11-08 10-53-54-832.jpg
    This is by binary folder at present.
     
    Last edited: Nov 8, 2024
  44. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    I just finished downloading v2.0.1.0 and ran the calibration. It all looked good and was completed with no issues.
    The Bail Off is still showing 0 yet during calibration is shown as set.
    upload_2024-11-8_10-51-49.png

    To show the info when call back is started, the program is waiting for TSW5
    TSW Raildriver And Joystick Interface V2.0.0.8_11-08-2024_01.png

    With me holding the Indirect brake in Bail Off while my daughter grabs the screenshot, to show what I see in the program as it pertains to the Indirect brake brake bail off.
    TSW Raildriver And Joystick Interface V2.0.0.8_11-08-2024_02.png
     
  45. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    Did you back up the other file v2.0.0.8 first? or overwrite it. for the most part, it's working for me, just the bail-off is still not working as it should, and not sure if I need to edit the lever file.
     
    Last edited: Nov 8, 2024
  46. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,986
    Likes Received:
    1,960
    SGTDRE, yes and I even took out the updated PIE and put this one back, Look at my original post which shows my current binary folder.
     
  47. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    That was my error, apologies.
     
  48. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,986
    Likes Received:
    1,960
    SGTDRE, no apologies needed here, since I added that screen grab after the original post.
     
  49. SGTDRE

    SGTDRE Well-Known Member

    Joined:
    Sep 6, 2022
    Messages:
    1,504
    Likes Received:
    790
    I re-calibrated the program, fired up the game, all is working with the exception of the bail off, I then reclaibrated in-game and only the bail-off is not responding.
    Kind of an off the wall question, did you use the mouse or enter key on the keyboard to except the calibration steps within v2.0.1.0 program. For me it hung up when I used the mouse, with the enter key the program does not hangup.
     
    • Helpful Helpful x 1
  50. Sharon E

    Sharon E Well-Known Member

    Joined:
    Dec 9, 2016
    Messages:
    1,986
    Likes Received:
    1,960
    SGTDRE, I am using the mouse since my enter key does not move the settings forward. Right now I am totally 'screwed' since TSW5 won't even load anymore, I get a UE crash with any attempt to load it. I may have to go back, uninstall the whole thing and reload it.
    Another thing I am noticing, the PIE file dated 11/8 has Net in the name just before the '.' whereas the older ones don't.
     
    Last edited: Nov 8, 2024

Share This Page