PC Ts World Raildriver And Joystick Interface

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

  1. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    j.elkroc
    Can you tell me, did these files make it worse, better or no difference?

    The only debug code is, as stated in my last post, where a error.txt file should be created if, TSW reports the error before the disconnect
    I do now own TSW3 and unfortunately like others, I do not experience any disconnects and thats on 3 machines, that's why it's hard for me to diagnose the problem.
    As others have had minor success by increasing the sensitivity, I will alter the code to only send data when the values change and not all the time as they do at present, to see if that helps.
    As I am in the middle of the other improvements I mentioned in post #185, I need to finish them first and then add this code.
    I am going away on holiday as of Friday, so won't be able to finish it until I come back.
    Rest assured, I am trying my hardest to fix this for you all.
    Chris
     
  2. j.elkroc

    j.elkroc Member

    Joined:
    Mar 27, 2023
    Messages:
    61
    Likes Received:
    21
    Oh hey, we truly appreciate anything you do, be it now or later. Thanks! Sorry I didn't read back thoroughly and missed that you bought TSW3.

    When I tried the code above today, it did not connect to TSW3 at all, no matter which one is opened first.
    Let me give it another whirl following the directions exactly again. Pretty sure I did it right - two steps - replace the two DLLs.

    I think your idea to send data only when changed is a good one. You don't have disconnects so I do wonder if something else is causing the disconnect, some Windows function on my (and others') end maybe. An Interrupt of some sort. I am brand new to train sims and I don't yet understand how they can release it without a good API in the modern world. It is a fun sim for me nevertheless, I just dislike using keyboard/mouse all the time - have controllers/will travel.
     
  3. j.elkroc

    j.elkroc Member

    Joined:
    Mar 27, 2023
    Messages:
    61
    Likes Received:
    21
    Since I tried your replacement DLLs earlier, I bot the Amtrak DLCs and installed them. Had to reboot because Windows had a handle on the PieHid64.dll. When it came up, I replaced the Pie DLL and TSW3 connected! I will drive some trains and see what's what. I have the delay set to 2.
     
  4. atledreier

    atledreier Member

    Joined:
    Aug 23, 2022
    Messages:
    88
    Likes Received:
    35
    Been driving trains with all controllers connected, sensitivity to 0 for two hours, no disconnects.
    Passenger ops at linke, so pretty intensive controller action too.
    Fingers crossed it'll last, but looking really good for now!
     
  5. j.elkroc

    j.elkroc Member

    Joined:
    Mar 27, 2023
    Messages:
    61
    Likes Received:
    21
    I concur with atledreier on the looking good. I was able to complete the training on the Amtrak fleet with zero disconnects. I even switched back and forth between full range throttle and throttle/brake a couple times. No problems encountered.
    I took a ride to Trenton and failed miserably at stopping, not because the controller disconnected, but that my brain is not trained yet when to slow the heck down. Sensitivity at 2. Will go to zero and see what's what.
    EDIT: Your post says only change was to write a log if error occurs? Could the check affect timing in some way? Just a thought. Maybe we were just lucky getting no discos. I have had good sessions and won't connect sessions.
     
    Last edited: Jun 7, 2023
  6. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    The code to write the error log has been in the software for some time. What I have done with the two new dll's is to lock the shared memory space so that while my program is writing to it, TSW can't read from it and visa versa. It's looking like I may have found the problem causing the disconnects but would appreciate some more testing if you guys don't mind.
    Chris
     
  7. j.elkroc

    j.elkroc Member

    Joined:
    Mar 27, 2023
    Messages:
    61
    Likes Received:
    21
    I don't mind at all. Have to stop for the day but I can do drive some more tomorrow. Thanks man.
     
  8. atledreier

    atledreier Member

    Joined:
    Aug 23, 2022
    Messages:
    88
    Likes Received:
    35
    I'm happy to keep testing this. My session last night included half an hour on pause, and an hour and a half of lots of lever movement. I've never been able to go that long before, and certainly not at zero sensitivity.
    Makes sense that lower sensitivity reduce the chance of read while change situations, as the values change less often.

    I'll put in a short session before work, and I'll keep driving and let you know how I get on
     
  9. atledreier

    atledreier Member

    Joined:
    Aug 23, 2022
    Messages:
    88
    Likes Received:
    35
    Pk, since it's now working, I've started on the wonderful world of getting everything calibrated.

    So, I have three levers. I've been using them for throttle, dynamic and train brakes.

    How do I get these things lined up right?

    I'm sure it's been covered somewhere, but the thread is long and convoluted....
     
  10. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    To calibrate your controls, select the ThrottleAndBrake profile and click Start Callback. then in TSW, go to Settings - Controls - Advanced Controls. At the bottom right click on Calibrate and move your levers to the indicated position on the Raildriver image. clicking on the Accept button to move to the next position.
    For the ThrottleAndBrake which goes bottom - middle - top - middle, have the first middle just below halfway on your joystick and the other middle just above halfway. You need this small gap for TSW to ascertain where the lever splits the throttle/brake and throttle/dynamic.

    You set the ThrottleAndBrake using your throttle, ignore your Dynamic as this is taken care of in my program and set the TrainBrake using your Train brake lever. All the other raildriver levers, (Reverser, Loco Brake, wipers and lights), just click on the Accept button, when done, click the save button.
    Chris
     
    • Helpful Helpful x 1
  11. atledreier

    atledreier Member

    Joined:
    Aug 23, 2022
    Messages:
    88
    Likes Received:
    35
    I'll try again, maybe I messed up by calibrating brake axis too.. I'll try again this evening.
     
  12. atledreier

    atledreier Member

    Joined:
    Aug 23, 2022
    Messages:
    88
    Likes Received:
    35
    Ok, so I did this:
    loaded the throttle and brake, and calibrated the throttle lever as instructed, with the dynamic brake setup and off positions just above and below the physical center of the lever range.
    The brake as instructed, with the detents as displayed in the calibration screen.

    Load up throttleand dynamic profile, and drive a train with throttle and dynamic.
    The lower poart of dynamic lever is now dynamic brake. The upper half of dynamic lever is the first 37ish percent of throttle, and the throttle lever is 37ish percent and up. The throttle value sent to the game goes smoothly from 1.0 to 0.5 at the lower end of the trhottle range, then abruptly goes to 0.37 dynamic brake at the very lowest spot.
    I'm obviously doing something wrong, I just don't see what.
    The values sent to the game seems to correlate roughtly with what's happening in the cab, but not quite there with regards to how my levers are set.

    Weird part is, it was set pretty well before I started calibrating... :-p


    Edit:
    I set the positions by the actual values read from TSW interface, not the physical position of the lever, and it's MUCH better. Set the throttle idle to about 51%, and dynamic setup to about 49%, and it's working as intended.
     
    Last edited: Jun 8, 2023
  13. atledreier

    atledreier Member

    Joined:
    Aug 23, 2022
    Messages:
    88
    Likes Received:
    35
    Just an update.

    I've been really messing with it, changing routes and trains, messing with calibrations and assignments, and not a single disconnect since the latest changes, so I think we can call it resolved for this version.

    Thank you for this, trains are SO much more enjoyable to drive with actual levers.
     
  14. JPS

    JPS Member

    Joined:
    Feb 16, 2021
    Messages:
    36
    Likes Received:
    14
    So... This was working fine-ish, untill I decided to try and calibrate my throttles. Now nothing responds. Replaced the dll's again just to make sure, program states it is connected.
    Is there any way to 'reset' the raildriver calibration (or delete the calibration) ? Where does this get written/saved?
     
  15. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    I can't say for sure as I am on my way to Skegness, but I think it's in your documents\my games\tsw3
    It's called raildriver.ini I think.
     
    Last edited: Jun 9, 2023
  16. Crosstie

    Crosstie Well-Known Member

    Joined:
    Dec 8, 2016
    Messages:
    5,554
    Likes Received:
    12,771
    Raildriver demonstration coming up on RFTV next Thursday. Didn't indicate which route(s).
     
    Last edited: Jun 9, 2023
  17. j.elkroc

    j.elkroc Member

    Joined:
    Mar 27, 2023
    Messages:
    61
    Likes Received:
    21
    CobraOne Hope your time at Skegness was good. I have had good luck with the new files. Zero disconnects so far. I have disconnected my yoke and throttles to reconfigure for auto racing, but I just reconfigured back to trains/planes and it works just like before. You are on to something. I am going to try it with plugins now to see if that breaks anything.
    EDIT: It didn't break a thing. Worked straight through including a few pauses.
     
    Last edited: Jun 12, 2023
    • Like Like x 1
  18. atledreier

    atledreier Member

    Joined:
    Aug 23, 2022
    Messages:
    88
    Likes Received:
    35
    Some of the traction in the game have some "non-standard" lever setups

    How would you go about binding axis for these:
    BR112.1 only have the speed selector, basically cruise control.
    BR612 have the power and brake lever, but with the distinct up and down on power and dynamic brake. Holding the lever forward will only increase power a little bit, unless you keep moving the lever.
     
  19. j.elkroc

    j.elkroc Member

    Joined:
    Mar 27, 2023
    Messages:
    61
    Likes Received:
    21
    How do I watch this? I might be interested in buying one, although my throttles are doing a fine job as it is.
     
  20. zappatime

    zappatime Well-Known Member

    Joined:
    Mar 19, 2020
    Messages:
    212
    Likes Received:
    370
    • Like Like x 1
  21. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    I don't own these trains but can you try:-
    for the BR121.1 use ThrottleFullRange
    for the BR612 use ThrottleAndDynamic
    Chris
     
  22. atledreier

    atledreier Member

    Joined:
    Aug 23, 2022
    Messages:
    88
    Likes Received:
    35
    I'll try, thanks.

    And locos like the Class 66, where you hold the lever to apply and release brakes?
    If you added the possibility to send the "button assignments" when the lever is in certain ranges of the travel would work in this case.
    This method would also work with locos like the BR612, just need a few more "zones" to apply keystrokes to.

    I do this with joystick Gremlin, and it works like a treat, but having it all in one program is preferable.

    Edit:
    I just realized you can bind axis to buttons. I'm an idiot.. :p

    Edit2:
    Tried the 112.1, and both the throttle axis and cruise control buttons regulate the force selector. Only the throttle buttons control the speed selector, as far as I can find. I've bound a spring loaded axis to the throttle function, and it works pretty well. I'd love to be able to set the deadzone of the axis-to-button function, though. My axis is a bit sloppy, and the center is pretty fuzzy.

    Edit3: The brakes for locos like the Class 66 works well on a spring loaded axis via the key assignment, so all is well there.
     
    Last edited: Jun 19, 2023
    • Like Like x 1
  23. OldAlaskaGuy

    OldAlaskaGuy Well-Known Member

    Joined:
    Dec 12, 2016
    Messages:
    896
    Likes Received:
    717
    Solved, ran as administrator.
     
  24. j.elkroc

    j.elkroc Member

    Joined:
    Mar 27, 2023
    Messages:
    61
    Likes Received:
    21
    Just a quick update - the program is working fine, never a disconnect, always works every time I have time to drive a train. This is over the past 10 days. I open and close TSW3 a few times each day and it works every time. Stop the callback and change assets, and it fires back up every time. It has NOT failed since I installed the "replacement" files. Nice work, CobraOne
    Hope others will let you know whether it's working for them or not.
     
  25. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    Thanks for the update :)
     
  26. Conductor B

    Conductor B Well-Known Member

    Joined:
    Feb 18, 2022
    Messages:
    261
    Likes Received:
    309
    Hi CobraOne, thanks for making this. I am unable to get the Edit displayed Loco's function to work. I go in and make my updates, but the Enabled Assets dropdown list still retains the locos that I de-selected. When I go back in to Edit Displayed Loco's, all of them are re-selected.

    Also, is there a way to adjust the lever range? For example: on the ECW Class 66, I need to move the RailDriver throttle lever to 0.76 in order for the in-game throttle to go into notch 1. Is there a way to set it so that 0.60 can trigger notch 1?
     
    Last edited: Jun 25, 2023
  27. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    I have just tried to edit the displayed loco's and it worked fine.
    1. Are you clicking the OK button when you have finished editing and not just closing the window.
    2. Can you go into the Settings folder, Right Click on the "Loco's.txt" file and select Properties. If the Read-only box at the bottom is checked, uncheck it and click OK.

    With regards the 66, edit the lever map and then the Throtle section. Set the use notches to Yes, right click on the Notch Values box and in the window that pops up, enter 8 and click OK. I have tried this with my Raildriver and it works fine.

    Chris
     
  28. Conductor B

    Conductor B Well-Known Member

    Joined:
    Feb 18, 2022
    Messages:
    261
    Likes Received:
    309
    Hi Chris, I calibrated the RD from within TSW itself and that fixed the issue. Thanks!
     
  29. Conductor B

    Conductor B Well-Known Member

    Joined:
    Feb 18, 2022
    Messages:
    261
    Likes Received:
    309
    I'm using this a lot to remap the two rows of buttons on the bottom. I find that with some controls, it's better to map them to the INGAME_RDBUTTON as opposed to the named control. And sometimes the opposite works better.

    I also mapped the horn lever to the auto brake controls on the Class 66 so that I could more closely emulate the real brake lever. It is also more responsive than the native auto brake lever.

    Thanks again!
     
    Last edited: Jun 26, 2023
  30. Conductor B

    Conductor B Well-Known Member

    Joined:
    Feb 18, 2022
    Messages:
    261
    Likes Received:
    309
    I think I found a bug, or perhaps it has to do with mappings to US keyboards. Anyway, sometimes, when I assign a RailDriver button to a keystroke - for example, RD button 14 to the Lead Sand control, which is CTRL+X - the control is activated but the button continues to be held down. It's as though I'm holding down the keyboard button and it won't release. So I'm unable to turn the control back off.
     
    Last edited: Jul 9, 2023
  31. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    I have checked my code, which is the same code as used in my TS Classic version, and can't see why that would happen, if it was a UK/US keyboard problem, then the button would not work at all.
    Looking at TS World, it looks like the Lead Sand is a toggle button, I take it that pressing button 14 again does not turn off the sander?
    Does the sander work fine if you use the keyboard, if so, does the sander stop when you release the keys or do you have to press them a second time to get the sander to stop?

    Could you send me the button map you are using, my email address is
    Yahoo email.jpg
     
    Last edited: Jul 9, 2023
  32. Conductor B

    Conductor B Well-Known Member

    Joined:
    Feb 18, 2022
    Messages:
    261
    Likes Received:
    309
    Email sent! (It'll be from a Protonmail address.)

    Thanks again!
     
  33. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    TSW Raildriver & Joystick Interface V1.0.0.8 released.
    Main Program
    https://www.dropbox.com/s/1ue9mvsumb3zwfi/TSW Raildriver and Joystick Interface V1.0.0.8.zip?dl=1

    Quick Start Guide
    https://www.dropbox.com/s/vf6m5cz5nrzeq9w/Quick Start.pdf?dl=1

    DirectX
    https://www.dropbox.com/s/8opc3nqwr95jefx/DirectX.zip?dl=1

    Clicking on the above links will start the download automatically without you having to select the file from my Dropbox account.
    The followinhg changes have been made:
    1. You can now have more than one Master Joystick Assignment (as requested by Rob). This is useful if you wish to use different Joysticks for different trains.
    2. I have added the option to have a maximum of 2 Shift/Modifier buttons (as requested by zappatime) that you can use to triple the number of buttons each of your Joystick/Raildriver has.
    This will allow you to assign up to three functions per button depending on the state of the modifier buttons, this is achieved by having the modifier buttons assigned as Primary and Secondary. Take button one as an example, it will have these values when pressed.

    Modifier State.jpg
    Also note that although you can assign modifiers to each controller, they will affect all controllers. If you have two joysticks (A & B) and assign shift buttons to joystick A, if you hold the Primary modifier for A down while pressing button 1 on joystick B, the value for button 1 will be 1001 and not 1. I have programmed it this way, so that if you change joystick A to joystick C and assign the modifier buttons to joystick C. When you press the Primary modifier on joystick C and press button 1 on joystick B, the value for button 1 will still be 1001 and not 1. This is to save having to redo the button map every time you change joysticks.
    In the Manuals folder there is a pdf file called Addendum for V1.0.0.8 which explains the two changes above with plenty of pictures to help understand them.
    3. I have added an option to delete lever maps that are no longer required, this can be found under Keymaps\Lever Map\Delete Lever Map.
    You can delete single or multiple files in one go.
    4. I have also fixed the problem reported by Conductor.B of the keys appearing to stick

    There is no change at this time to the PieHid64.dll, so if you downloaded the extra dll's I posted on 7th June post #198, there is no need to update that version.
    As ususal, I am a one man band, so my testing is limited, if you could report back on the changes, it would be appreciated.

    Chris
     
    Last edited: Jul 15, 2023
    • Like Like x 4
    • Helpful Helpful x 2
  34. zappatime

    zappatime Well-Known Member

    Joined:
    Mar 19, 2020
    Messages:
    212
    Likes Received:
    370
    Thanks Chris, your continuing effort is much appreciated
     
  35. Conductor B

    Conductor B Well-Known Member

    Joined:
    Feb 18, 2022
    Messages:
    261
    Likes Received:
    309
    Yes, thank you Chris! I won't have time to test until this weekend, but I'm looking forward to it!
     
  36. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    7
    Screenshot_1.jpg CobraOne i'm having issue opening the exe,does it matter were i put folder,have i missed something in install process?
     
  37. zappatime

    zappatime Well-Known Member

    Joined:
    Mar 19, 2020
    Messages:
    212
    Likes Received:
    370
    CobraOne - Modifier buttons appear to work just fine and a nice and simple set-up for them, thanks again.
    K
     
  38. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    Because the folder is in your Documents folder, Windows may be blocking it
    Can you right click on the exe and select Run As Administrator

    If that does not work can you download the Quick Start Guide from here:-
    https://www.dropbox.com/s/vf6m5cz5nrzeq9w/Quick Start.pdf?dl=1
    Then delete the TSW Raildriver and Joystick Interface folder from your documents folder and follow the instructions in the guide.
    Pay attention to paragraph 3 re unblocking the program.
    You could also try moving the 'TSW Raildriver and Joystick Interface' folder out of your documents folder and into the root of your C drive i.e C:\
    Chris
     
  39. taylo160

    taylo160 New Member

    Joined:
    Jul 15, 2023
    Messages:
    3
    Likes Received:
    0
    I have a little problem when running the programm, The Program doesn't run, If i try to run it an error message pops up saying: upload_2023-7-15_9-43-7.png
    Its in german, but it says: Unhandled exception in Application. Press "Continue" to ignore the error and run the application. If you click "Cancel" the application will be immediatly terminated. HRESULT:[0x8007001E]. Module: [SharpDX.DirectInpu]. ApiCode: [DIERR_INPUTLOST/InputLost]. Message: The System cand read from the specified Device. If i click "weiter (continue)" The app runs but nothing works, if i try to do stuff in the programm, another error message pops up. I really want this though because i just built myself a Arduino "Joystick" for TSW. Details:
    Code:
    Informationen über das Aufrufen von JIT-Debuggen
    anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.
    
    ************** Ausnahmetext **************
    SharpDX.SharpDXException: HRESULT: [0x8007001E], Module: [SharpDX.DirectInput], ApiCode: [DIERR_INPUTLOST/InputLost], Message: Das System kann nicht vom angegebenen Gerät lesen.
    
       bei SharpDX.Result.CheckError()
       bei SharpDX.DirectInput.Device.GetDeviceState(Int32 arg0, IntPtr arg1)
       bei SharpDX.DirectInput.CustomDevice`3.GetCurrentState(T& data)
       bei SharpDX.DirectInput.CustomDevice`3.GetCurrentState()
       bei TSW_Raildriver_And_Joystick_Interface.Input.EnumerateJoysticks(IntPtr hWnd)
       bei TSW_Raildriver_And_Joystick_Interface.Form1.Form1_Load(Object sender, EventArgs e)
       bei System.Windows.Forms.Form.OnLoad(EventArgs e)
       bei System.Windows.Forms.Form.OnCreateControl()
       bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       bei System.Windows.Forms.Control.CreateControl()
       bei System.Windows.Forms.Control.WmShowWindow(Message& m)
       bei System.Windows.Forms.Control.WndProc(Message& m)
       bei System.Windows.Forms.Form.WmShowWindow(Message& m)
       bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    ************** Geladene Assemblys **************
    mscorlib
        Assembly-Version: 4.0.0.0.
        Win32-Version: 4.8.9167.0 built by: NET481REL1LAST_B.
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll.
    ----------------------------------------
    TSW Raildriver And Joystick Interface
        Assembly-Version: 1.0.0.8.
        Win32-Version: 1.0.0.8.
        CodeBase: file:///C:/Users/Taylo160/Downloads/TSW%20Raildriver%20and%20Joystick%20Interface%20V1.0.0.8/TSW%20Raildriver%20and%20Joystick%20Interface/TSW%20Raildriver%20And%20Joystick%20Interface.exe.
    ----------------------------------------
    System
        Assembly-Version: 4.0.0.0.
        Win32-Version: 4.8.9166.0 built by: NET481REL1LAST_B.
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
    ----------------------------------------
    System.Windows.Forms
        Assembly-Version: 4.0.0.0.
        Win32-Version: 4.8.9075.0 built by: NET481REL1LAST_C.
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
    ----------------------------------------
    System.Drawing
        Assembly-Version: 4.0.0.0.
        Win32-Version: 4.8.9032.0 built by: NET481REL1.
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
    ----------------------------------------
    System.Xml.Linq
        Assembly-Version: 4.0.0.0.
        Win32-Version: 4.8.9032.0 built by: NET481REL1.
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll.
    ----------------------------------------
    System.Core
        Assembly-Version: 4.0.0.0.
        Win32-Version: 4.8.9166.0 built by: NET481REL1LAST_B.
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
    ----------------------------------------
    System.Xml
        Assembly-Version: 4.0.0.0.
        Win32-Version: 4.8.9032.0 built by: NET481REL1.
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
    ----------------------------------------
    System.Configuration
        Assembly-Version: 4.0.0.0.
        Win32-Version: 4.8.9032.0 built by: NET481REL1.
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
    ----------------------------------------
    System.Windows.Forms.resources
        Assembly-Version: 4.0.0.0.
        Win32-Version: 4.8.9032.0 built by: NET481REL1.
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
    ----------------------------------------
    SharpDX.DirectInput
        Assembly-Version: 4.1.0.0.
        Win32-Version: 4.1.0.
        CodeBase: file:///C:/Users/Taylo160/Downloads/TSW%20Raildriver%20and%20Joystick%20Interface%20V1.0.0.8/TSW%20Raildriver%20and%20Joystick%20Interface/SharpDX.DirectInput.DLL.
    ----------------------------------------
    SharpDX
        Assembly-Version: 4.1.0.0.
        Win32-Version: 4.1.0.
        CodeBase: file:///C:/Users/Taylo160/Downloads/TSW%20Raildriver%20and%20Joystick%20Interface%20V1.0.0.8/TSW%20Raildriver%20and%20Joystick%20Interface/SharpDX.DLL.
    ----------------------------------------
    mscorlib.resources
        Assembly-Version: 4.0.0.0.
        Win32-Version: 4.8.9032.0 built by: NET481REL1.
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
    ----------------------------------------
    
    ************** JIT-Debuggen **************
    Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
    Konfigurationsdatei der Anwendung oder des Computers
    (machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
    Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.
    
    Zum Beispiel:
    
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    
    Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
    Ausnahmen an den JIT-Debugger gesendet, der auf dem
    Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
    
    
    
     
  40. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    Last edited: Mar 24, 2024
  41. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    7
    still can't open it,with folder on c drive and run as admin? CobraOne do you have teamviewer/anydesk? can anyone else help me install?
     
  42. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    I don't have teamviwer or anydesk, but I have used Microsoft's Quick Assist app before. I should be available in about an hour which would be 13:35 PM my time zone is GMT + 001 (UK). I will start a conversation through this forum with you then. In the meantime, can you install the app from the Microsoft Store. Here is a video explaining its use.
    Chris
     
    • Like Like x 1
  43. taylo160

    taylo160 New Member

    Joined:
    Jul 15, 2023
    Messages:
    3
    Likes Received:
    0
    it still brings the same error message. i've also tried different locations and running as administrator but still doesn't work. Maybe this information can help: OS: Win11 Version 10.0.22621 Build 22621, System: x64 based, CPU: Intel Xeon E5-1650,Graphics Card: Nvidia RTX 2080 TI
     
  44. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    I have been doing some research and the error message implies your USB device cannot be read.
    The suggestions are to try plugging your device into a USB port that is connected to the motherboard and not through a hub.
    Preferably a USB2 port.
    Chris
     
  45. taylo160

    taylo160 New Member

    Joined:
    Jul 15, 2023
    Messages:
    3
    Likes Received:
    0
    The App doesn't even run without the "controller", I think the problem is something with my PC not having the necessary things installed for the program because the app wouldn't even start but instead give the error message i showed in the first message. (im sorry for my english not being the best. im from germany)
     
  46. zappatime

    zappatime Well-Known Member

    Joined:
    Mar 19, 2020
    Messages:
    212
    Likes Received:
    370
    I had a similar error today, purely because I’d fired up the app with my wireless Microsoft game pad still active, I’ve noticed before the app doesn’t seem to like the controller being on, if you have a gamepad (wireless or wired) attached perhaps try turning it off/disconnecting it and see if the app will run then. Just a thought.
     
  47. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    I have just tried the program on a fresh install of Windows, with nothing else on the machine and the program runs fine
    I did not need to install anything else to get the program running.
    The error is definately pointing to a problem with your joystick as the first thing the program does is look for your Joysticks.
    Would you be able to send me a copy of the Arduino code you used to create your Joystick so I can try it on my PC.
    Here is my email address
    [​IMG]
    Chris
    PS Your English is fine
     
    Last edited: Jul 15, 2023
  48. Conductor B

    Conductor B Well-Known Member

    Joined:
    Feb 18, 2022
    Messages:
    261
    Likes Received:
    309
    Hi Chris, I was able to test the fixes to they key mappings. The buttons no longer "stick", thank you! However, with version 1.0.0.8 the horn lever isn't working anymore - regardless of locomotive. I tried different key maps, different bindings, different locos.
     
  49. Conductor B

    Conductor B Well-Known Member

    Joined:
    Feb 18, 2022
    Messages:
    261
    Likes Received:
    309
    Using version 1.0.0.7 the horn works fine across locos, even with the same key and lever maps.
     
  50. CobraOne

    CobraOne Active Member

    Joined:
    Jun 3, 2022
    Messages:
    254
    Likes Received:
    189
    Noted and a fix is on it's way, I just need to finish helping taylo160 first.
     

Share This Page