TrainSim Helper (Joystick/Overlay) release thread

General discussion about Train Simulator, your thoughts, questions, news and views!

Moderator: Moderators

User avatar
Havner
Been on the forums for a while
Posts: 293
Joined: Thu Sep 11, 2014 1:32 am

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by Havner »

Timex wrote:Havner, does this help me in any way?- I'm still stuck.
It's a combined throttle / dynamic brake as TSH behaves on my joystick without adding any custom configs.
the train brake doesn't want to know, which I need.
Yeah, it does, but more so the info you gave above that combined is with dynamic, not the regular one. TrainBrake lever is disabled when combined throttle is detected. In such rare cases we need to re-enable it.

Try this one (check for parse errors to make sure I didn't mess anything):

Code: Select all

      tshControl["TrainBrake"] = FindTrainBrake()           -- CombinedThrottle is with DynamicBrake, also use TrainBrake lever
      tshRange["TrainBrake"] = {-1, 1.2}
      tshNotches["TrainBrake"] = {-1, -0.1, 0, 0.1, 1, 1.2}
      tshControl["DynamicBrake"] = nil
Timex
Been on the forums for a while
Posts: 192
Joined: Fri Oct 17, 2014 4:21 pm

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by Timex »

Havner wrote:
Timex wrote:Havner, does this help me in any way?- I'm still stuck.
It's a combined throttle / dynamic brake as TSH behaves on my joystick without adding any custom configs.
the train brake doesn't want to know, which I need.
Yeah, it does, but more so the info you gave above that combined is with dynamic, not the regular one. TrainBrake lever is disabled when combined throttle is detected. In such rare cases we need to re-enable it.

Try this one (check for parse errors to make sure I didn't mess anything):

Code: Select all

      tshControl["TrainBrake"] = FindTrainBrake()           -- CombinedThrottle is with DynamicBrake, also use TrainBrake lever
      tshRange["TrainBrake"] = {-1, 1.2}
      tshNotches["TrainBrake"] = {-1, -0.1, 0, 0.1, 1, 1.2}
      tshControl["DynamicBrake"] = nil
It works!! Many thanks.
I had to play with the notches slightly but all is working fine now.
It was with the keyboard control that was a real pain as you could easily slip into emergency and into release when braking (it works like a class 66 brake).
Many thanks once again :D
User avatar
Havner
Been on the forums for a while
Posts: 293
Joined: Thu Sep 11, 2014 1:32 am

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by Havner »

Timex wrote:It works!! Many thanks.
Thanks for confirmation, have fun!
daza85uk
Getting the hang of things now
Posts: 22
Joined: Fri Dec 04, 2015 4:55 pm

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by daza85uk »

Could anyone help me with a couple of issues?

The provided joystick LUA file has custom notches already set up for a class 47 however when I run a Class 47 in game it says there is no custom config for this train? Joystick works ok but just no nothces. I have tried the KUJU class 47 aswell as the 47 that comes with ECML over shap.

2nd problem, I am trying to set up notches for the AP Class 313, I have the joystick worrking with this train however when I try to set up notches in the joystick LUA file the train no longer shows the overlay and the joystick stops working..

Any help would be appreciated

Thanks
User avatar
Havner
Been on the forums for a while
Posts: 293
Joined: Thu Sep 11, 2014 1:32 am

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by Havner »

daza85uk wrote:The provided joystick LUA file has custom notches already set up for a class 47 however when I run a Class 47 in game it says there is no custom config for this train? Joystick works ok but just no nothces. I have tried the KUJU class 47 aswell as the 47 that comes with ECML over shap.
Every class 47 is in general a different train. I did configure the one I had. You can see in the lua file which one it's that. If you have a different one the autodetect might not work.
2nd problem, I am trying to set up notches for the AP Class 313, I have the joystick worrking with this train however when I try to set up notches in the joystick LUA file the train no longer shows the overlay and the joystick stops working.
You most likely made some parse error.
Timex
Been on the forums for a while
Posts: 192
Joined: Fri Oct 17, 2014 4:21 pm

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by Timex »

daza85uk wrote:Could anyone help me with a couple of issues?

The provided joystick LUA file has custom notches already set up for a class 47 however when I run a Class 47 in game it says there is no custom config for this train? Joystick works ok but just no nothces. I have tried the KUJU class 47 aswell as the 47 that comes with ECML over shap.

2nd problem, I am trying to set up notches for the AP Class 313, I have the joystick worrking with this train however when I try to set up notches in the joystick LUA file the train no longer shows the overlay and the joystick stops working..

Any help would be appreciated

Thanks
As for the 47's it's difficult to detect the loco as it uses minimal controls and has the same controls of some other locos, I think 31's are the same.
Havner's 47 detect is for the West Somerset line I think.
daza85uk
Getting the hang of things now
Posts: 22
Joined: Fri Dec 04, 2015 4:55 pm

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by daza85uk »

Thanks for the help.

Managed to get the AP 313 working with notches, however whenever I drive over an AWS ramp I cannot get the AWS to clear therefore emergency brake applies.
The only way i've fixed this was to undo the Engine files for the class 313 and return them to normal which obviously means I can't use my joystick.

Is there something i'm doing wrong in the LUA files?

Thanks
User avatar
Havner
Been on the forums for a while
Posts: 293
Joined: Thu Sep 11, 2014 1:32 am

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by Havner »

daza85uk wrote:Managed to get the AP 313 working with notches, however whenever I drive over an AWS ramp I cannot get the AWS to clear therefore emergency brake applies.
The only way i've fixed this was to undo the Engine files for the class 313 and return them to normal which obviously means I can't use my joystick.
I can't really think of any reason that would cause this kind of behaviour. I take it you try clear AWS normally with a key? TSH does not interact with stuff like this. Maybe this loco has some awkward requirement to do that and maybe wrongly set notches prevent this in scripting? Truly, no idea.
Timex
Been on the forums for a while
Posts: 192
Joined: Fri Oct 17, 2014 4:21 pm

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by Timex »

daza85uk wrote:Thanks for the help.

Managed to get the AP 313 working with notches, however whenever I drive over an AWS ramp I cannot get the AWS to clear therefore emergency brake applies.
The only way i've fixed this was to undo the Engine files for the class 313 and return them to normal which obviously means I can't use my joystick.

Is there something i'm doing wrong in the LUA files?

Thanks
seems odd to me.
I would delete the existing folder and re-download the package from AP.
clear your custom 313 config from trainsim-helper.lua and trainsim-helper-joystick.lua - worry about that later.
Patch it again (do a data extraction so you are patching the correct file(s)) and see what happens.
50149
New to the Forums
Posts: 1
Joined: Wed Jun 01, 2016 5:25 pm

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by 50149 »

Not working with TS 2017?? Please Help
Timex
Been on the forums for a while
Posts: 192
Joined: Fri Oct 17, 2014 4:21 pm

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by Timex »

50149 wrote:Not working with TS 2017?? Please Help
what exactly is not working?
daza85uk
Getting the hang of things now
Posts: 22
Joined: Fri Dec 04, 2015 4:55 pm

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by daza85uk »

Has anyone managed to get notches working with the Class 91 with the AP Enhancement pack?
Joystick works fine but as soon as I try to add notches to the train brake lever, the train brake stops working with the joystick.

When I push my lever (Controlling the train brake) forward the overlay turns off and bringing it back again turns the overlay back on, but the train brake does nothing in game
As soon as I remove any form of notching all returns to normal and the joystick controls the brake fine albeit without notches.

This happens exactly the same if I try to add any form of notches to a Class 66 that has the AP soundpack installed.

Any ideas as to how to rectify this?

Thanks

Daz
User avatar
Havner
Been on the forums for a while
Posts: 293
Joined: Thu Sep 11, 2014 1:32 am

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by Havner »

daza85uk wrote:Has anyone managed to get notches working with the Class 91 with the AP Enhancement pack?
Don't own it, can't check.
When I push my lever (Controlling the train brake) forward the overlay turns off and bringing it back again turns the overlay back on
This means the script breaks. Not necessarily mine. Might be loco's. Mine script runs after the loco's so if the latter breaks, the TSH does not get updated anymore.
Any ideas as to how to rectify this?
1. You do realize that most AP Enhancement packs actually change the main loco script to something else? You sure you patched the proper script? I mean the AP one, not the original one?
2. If the loco's script really is broken (it happens, I've seen it) you can try to run my script before the loco's. In the TSH patcher there is an alternative LUA script. Move it in place of the normal one and repatch.
User avatar
pavsko
Getting the hang of things now
Posts: 49
Joined: Fri Oct 14, 2016 7:24 am

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by pavsko »

Thanks very much Havner for great SW.
I use trainsim-helper and it works great for my USB devices. Overlay info is also very good enhancement!

Just one little question:
I am not able to create workable .bat file to run TS2017 with Trainsim-helper (I would like to avoid sequence: starting TS, switching to desktop and starting trainsim-helper).
In my .bat file I start TS2017, then pause for about 30s and then run trainsim-helper - well it starts but not work properly...
I am from Czech Republic and new to TS since 10/2016.
My PC: i5-2500K@3,3GHz OC to 4.0GHz, MB Gigabyte Z68A-D3-B3, 8GB RAM, GTX 970 (4GB), 128GB SSD + 2TB HDD, LCD 1920x1080, Windows 10 (64-bit), Track IR 5.
User avatar
Havner
Been on the forums for a while
Posts: 293
Joined: Thu Sep 11, 2014 1:32 am

Re: TrainSim Helper (Joystick/Overlay) release thread

Post by Havner »

pavsko wrote:I am not able to create workable .bat file to run TS2017 with Trainsim-helper (I would like to avoid sequence: starting TS, switching to desktop and starting trainsim-helper).
In my .bat file I start TS2017, then pause for about 30s and then run trainsim-helper - well it starts but not work properly...
There was someone that did something similar here AFAIR. You can go through the thread. I personally don't use such a thing.
Locked

Return to “[TS] General Discussion”