[tsw_controller] Control Train Sim World With A Joystick

Discussion in 'TSW General Discussion' started by Der_Jannik, Feb 26, 2022.

  1. Fabrice

    Fabrice Member

    Joined:
    May 14, 2022
    Messages:
    30
    Likes Received:
    12
    I wonder if this is something not specific to the Master Controller... I'm struggling to make a profile for the 1972 Stock, despite using the same method as for the Class 377 (Throttle with notches). The handle moves strangely, sometimes not in the right direction...
    The funny thing is that if I use my 377 profile with the 1972 stock, it works better than the specific 1972 stock profile... Actually, all my profiles created before version 2.0.1/2.0.2 are working flawlessly. Only the ones created since seem to be problematic.
     
  2. gazz292

    gazz292 Well-Known Member

    Joined:
    Jun 15, 2018
    Messages:
    422
    Likes Received:
    879
    Cant beat a bit of hardware hacking, some people would simply ask 'isn't there an app i can download that changes the handles'
     
    • Like Like x 1
  3. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34
    I have now changed a few things again, which should fix the blocking loop and the problems with the MasterController. I have again attached a .zip file.

    This is weird. I compared an old auto-converted train with one created in the new version and they look identical to me in TrainConfig. Could you maybe try to create the Class 377 (under a different name so you don't overwrite it) in the new version and then send both to me so I can compare the differences between the old, and the new train?

    Regards
    Jannik
     
    • Like Like x 1
  4. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34
    Forgot the zip file :)
     

    Attached Files:

    • Like Like x 1
  5. Fabrice

    Fabrice Member

    Joined:
    May 14, 2022
    Messages:
    30
    Likes Received:
    12
    Hi Jannick,
    It seems that the issue is fixed for the Master Controller. I tested with the 423, 425 and 442 and could not reproduce the issue. I may have to test a little longer though.
    As for the issue with the 1972 stock and the test with the 377, I may need some time. Vacations are over and I returned to work today... :( I now have less time for TSW2...
    In all cases, thanks a lot for your support, I will keep you posted.
     
    • Like Like x 1
  6. Fabrice

    Fabrice Member

    Joined:
    May 14, 2022
    Messages:
    30
    Likes Received:
    12
    So, I finally managed to do some testing. I confirm the issue with the master controller is resolved. Thanks a lot Jannick!

    Regarding the 1972 stock, I did the test with creating a new profile with the 377 and it is perfectly working. So it's just me struggling with the 1972... If anyone has a profile and would like to share it, it would be really appreciated..
     
    • Like Like x 1
  7. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34
    Ok, thanks for testing! I don't know if you've tried this already, but I also configured the 1972 Stock in the new tutorial. Maybe that will help you :)
    You can find it here:
    https://youtu.be/Sej1L0p_myo?t=2598
     
  8. CRT_Franky

    CRT_Franky New Member

    Joined:
    Mar 27, 2020
    Messages:
    2
    Likes Received:
    0
    Hi all. Any idea for Class 395 Javelin setting? Experimenting with Fabrice's 375 setup but not the best yet.. The problem here is the mixed version of Power Handle. It has notches in throttle and percentages in brake.
     
    Last edited: Sep 4, 2022
  9. CRT_Franky

    CRT_Franky New Member

    Joined:
    Mar 27, 2020
    Messages:
    2
    Likes Received:
    0
    You have a screenshot by any chance? :)
     
    Last edited: Sep 9, 2022
  10. Fabrice

    Fabrice Member

    Joined:
    May 14, 2022
    Messages:
    30
    Likes Received:
    12
    I would be interrested by a screenshot as well.
    Thanks,
    Fabrice
     
  11. tof70110

    tof70110 Member

    Joined:
    Dec 13, 2016
    Messages:
    94
    Likes Received:
    33
    Another very nice initiative, it's really great all these initiatives that are presented here by public users who for the most part do it out of passion, it's notice all that TSW has allowed creativity and this in sharing a Many thanks to all of you and keep up the good work!!!
    Sincerely, tof
     
    • Like Like x 2
  12. Fabrice

    Fabrice Member

    Joined:
    May 14, 2022
    Messages:
    30
    Likes Received:
    12
    Can anyone help with the 395? I spent several hours on it and still cannot have the brake area working. All power notches, up to Off and Min braking is working, but I'm unable to set the continuously variable section to work.
    Any help will be highly appreciated.
    Thanks,
    Fabrice
     
  13. Expressdriver

    Expressdriver Member

    Joined:
    Sep 29, 2021
    Messages:
    16
    Likes Received:
    25
    I am having the same issue, I cant get the braking section to work properly. No matter what I do it is getting stuck from B3 to Off putting the controller out of sync. When I push the joystick handle slightly forward and the brake handle in the game flies into position 8 or 9 and then doesn't return in sync with the joystick. Please if anyone out there has a solution would be really really appreciated :)
     
  14. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34
    Hey, sorry for being away for so long. I don't own the Class 395, but I think I would use the master controller and then subdivide the throttle area into sections. I have briefly sketched my idea.
    upload_2022-9-25_1-32-54.png
    So I would divide the throttle area of my controller into these red sections (Reassign joy states), so that I kind of create my own notches.
    You then need to create the special cases, that point to the notches (P1=25 P2=50 ...).
    And then you need to add the long press points, so the program jumps from one notch to the next. (0|25:300 25|50:300 ...)

    I hope you understand what I mean. I haven't tested the idea yet, so it is quite possible that it won't work.

    Regards
    Jannik
     
  15. Fabrice

    Fabrice Member

    Joined:
    May 14, 2022
    Messages:
    30
    Likes Received:
    12
    Hi Jannick,
    No worries, you have the right to be away. Good idea, I will try your solution and report back.
    Thanks,
    Fabrice
     
    • Like Like x 1
  16. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34
    I have another little question for you guys. Has anyone tried the program with TSW3? And if so, does it still work or not?
     
    • Like Like x 1
  17. Fabrice

    Fabrice Member

    Joined:
    May 14, 2022
    Messages:
    30
    Likes Received:
    12
    I'm using your software with TSW3 from release without any issue, it is working perfectly.
     
    • Like Like x 2
  18. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34
    Are you using the Steam or Microsoft/Xbox version?
     
  19. Fabrice

    Fabrice Member

    Joined:
    May 14, 2022
    Messages:
    30
    Likes Received:
    12
    Steam.
     
  20. Sam Kennedy

    Sam Kennedy New Member

    Joined:
    Oct 2, 2022
    Messages:
    2
    Likes Received:
    0
    I have tried this so far with the Javelin:

    upload_2022-10-4_21-40-14.png

    The notched section is working, but as soon as I move the throttle backwards it just applies full emergency braking. Hopefully someone can figure out what I've done wrong or suggest something to try. I'm not sure what I'm doing wrong here but it is very tricky!
     
  21. stormy#4839

    stormy#4839 Member

    Joined:
    Sep 21, 2022
    Messages:
    31
    Likes Received:
    75
    Thank you for this software! I recently got the Zuiki one handed controller and I am trying to set it up for TSW3. But I am a bit confused as to how to set it up for trains like the BR401 which has independent throttle and brake levers. I can only make the throttle work. Can you actually use a single axis to setup these kind of trains?
     
  22. Fabrice

    Fabrice Member

    Joined:
    May 14, 2022
    Messages:
    30
    Likes Received:
    12
    I'm having the same issue. Handle also move erratically in the brake section (sometime going to full power) before going to Emergency braking. I wonder if this is because the 395 HUD text does not have clear "brake" and "power" sections. The brake section indicates xx% brake, but the power section just shows the 4 notches (1, 2 3 and 4). Also, Emergency brake is just "Emergency", not "Emergency Brake".
     
  23. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34
    No, you can only use one joystick axis for one controller in the sim. But you should be able to use it for combined controllers like in the BR422.

    You could enable "Debug information" to see what the program is doing. Alternatively, click on "Help" -> "Go to Config" and look into the log files. These give more detailed information on what the program does and why.

    For this, you should only have to add "Emergency=-100" to the special cases.
     
    • Like Like x 1
  24. Sam Kennedy

    Sam Kennedy New Member

    Joined:
    Oct 2, 2022
    Messages:
    2
    Likes Received:
    0
    I think I've figured it out! I'll do a test drive to confirm but here is my setup:
    (Using left hand throttle from my thrustmaster airbus throttle)
    The goal was to have the middle position be "Off", throttle towards me adding power, throttle away adding brake. Calibrated throttle range so full back is 100 and full forward is -100.

    Reassign Joy states:
    Code:
    -6|24=0 25|49=25 50|74=50 75|95=75 95|100=100 -7|-25=-25
    There is a little bit of "slop" in my throttle in the middle position, so the power off range is from -6 to 24 instead of 0 to 24, you will need to experiment with this for your own setup. The -7 to -25 range is for applying minimum brake.

    Convert special cases:
    Code:
    Emergency=-100 Max_Brake=-98 Min_Brake=-25 Off=0 1=25 2=50 3=75 4=100
    I noticed in the debug log it sometimes thinks 'Off' is 'Dff' so if you're having trouble add
    Code:
    Dff=0
    as well.

    Time factor:
    Code:
    116|116
    I went through the wizard and got something like 3|116 because of the power position, I just set this to the same on both sides and it worked.

    Long press:
    Code:
    0|25:300 25|0:300 25|50:300 50|25:300 50|75:300 75|50:300 75|100:300 100|75:300 0|-25:300 -25|0:300 -98|-100:300 -100|-98:300
    These are for switching between the four power settings and off, off and min brake, max brake and emergency brake.

    Make sure you use a master controller and add the correct text labels.

    I will go test this out now! :)
     
  25. samtheman13

    samtheman13 New Member

    Joined:
    May 22, 2020
    Messages:
    2
    Likes Received:
    0
    Just used this on the Class 484, seems to be working great, thanks! Altho there are 7 notches on the 484, is there anyway I can improve the notches by editing these numbers?
     
  26. Fabrice

    Fabrice Member

    Joined:
    May 14, 2022
    Messages:
    30
    Likes Received:
    12
    Thanks a lot Sam. I also have an Airbus Throttle, but still unable to have the brake area to work correctly. I still have the handle move erratically. I worked on the timing and found that I have better results using 1|116 or 2|116 as time factor. Now I think that my issues may come from the reading of the HUD. I noticed that the software reads silly things like "Power Handle Emergenc)" instead of "Emergency" or things like "P -. Power Handle 81% Brake"...
    Out of curiosity, are you on TSW2 or TSW3 ? What did you set in the Master Controller settings ?
    Thanks,
    Fabrice
     
  27. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34
    Quick update V2.0.6:
    The program now also supports TSW4.
    Lower TSW versions can still be used, but you have to activate the compatibility in settings.
     
    • Like Like x 1
  28. Julian

    Julian New Member

    Joined:
    Dec 21, 2023
    Messages:
    4
    Likes Received:
    0
    Do you have Discord Jannick?
    Because i need help. Im triying it for days now. I cant read the Timefactor and i cant programm a kombilever for the BR642 and other. I werent able to programm and use any train so far.

    Thx for an answer.
     
    Last edited: Dec 21, 2023
  29. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34
    Please provide a bit more information. When trying to get the timefactor, does the program crash, does it give you a message box, do your in-game levers move at all?

    Regards
    Jannik
     
  30. paralunatic

    paralunatic New Member

    Joined:
    Jul 28, 2024
    Messages:
    1
    Likes Received:
    1
    Hello, I have Problems to program the new Steuerwagen Expert (IC), the "Steuerwagen" from the 101 Expert (IC)
    I don't know how to program the "Fahrschalter", which starts with four notches: 0, Unten, Halten, Oben (no notch) and than something like a doubleclick and you continue with no notches from "Min." to "Max." in %.
    Could anybody help me?
     
    Last edited: Aug 23, 2024
    • Like Like x 1
  31. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34

    Hey,
    I think I don't quite understand the behavior of this controller... but if its just 4 notched positions and then continiously variable you could do could just sacrifice some numbers for the notches. For example:
    Special cases:
    Unten=1 Halten=2 Oben=3 Min=4 1=5 2=5 3=5 Max=100
    (1=5 2=5 3=5 if the HUD shows 2 percent, it would otherwise think it's in the "Halten" state)
    Controller behavior:
    upload_2024-10-12_22-55-30.png
    This would roughly reassign the range of the joystick from
    100 - 90 to "Unten",
    90 - 80 to "Halten",
    80 - 70 to "Oben"
    Maybe this can help you ^^

    Regards
    Jannik
     
  32. GamingwithJem

    GamingwithJem New Member

    Joined:
    Feb 23, 2025
    Messages:
    3
    Likes Received:
    1
    Haha you spelt updates like uppdates.

    I overtly created an account just to tell you this, and thank you, the uppmost. Apps awesome!
     
    • Like Like x 1
  33. GamingwithJem

    GamingwithJem New Member

    Joined:
    Feb 23, 2025
    Messages:
    3
    Likes Received:
    1
    Yannick the young shooter!
     
  34. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34
    Whoops, never noticed that. I have corrected it in v2.0.8 :D
    Thank you for making me aware of it!
     
  35. nomadskye1252

    nomadskye1252 New Member

    Joined:
    Mar 15, 2025
    Messages:
    1
    Likes Received:
    0
    Hello Jannik, I am using a Logitech/Saitek throttle quadrant and wanted to use the thrust reverse portion at the bottom of the lever travel as a toggle for emergency brakes but for some reason logitech/saitek in their infinite wisdom decided to make that portion a button instead of an axis. Is there a way to configure the program to read pressing the button as holding/long pressing "d" then releasing the button as long pressing "a"? Or perhaps have a button set a controller lever to go into a notch outside the controller's set travel and return to the previous state upon release? Thanks in advance and love the program.
     
  36. Der_Jannik

    Der_Jannik Member

    Joined:
    Aug 13, 2020
    Messages:
    31
    Likes Received:
    34
    Hey nomadskye,
    you could try to set it up as a "controller as button" and then ether configure it as just an action (so it will hold down the button for as long as the button is pressed) or you set up a macro. There you could configure it to hold down d for e.g. 1 second and then hold down a for 1 second. But there is no way to add a button as an additional notch. Only workarounds could help you.
    I hope that helps :)

    Regards
    Jannik
     

Share This Page