Page 27 of 29

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Fri Oct 21, 2016 9:06 pm
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

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Sat Oct 22, 2016 10:06 am
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

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Sat Oct 22, 2016 10:14 am
by Havner
Timex wrote:It works!! Many thanks.
Thanks for confirmation, have fun!

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Mon Oct 31, 2016 12:05 pm
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

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Tue Nov 01, 2016 7:13 pm
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.

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Tue Nov 01, 2016 8:53 pm
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.

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Sun Nov 06, 2016 10:55 am
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

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Tue Nov 08, 2016 1:37 pm
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.

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Tue Nov 08, 2016 1:57 pm
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.

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Sat Nov 19, 2016 6:07 pm
by 50149
Not working with TS 2017?? Please Help

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Sun Nov 20, 2016 2:27 pm
by Timex
50149 wrote:Not working with TS 2017?? Please Help
what exactly is not working?

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Fri Nov 25, 2016 12:28 pm
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

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Sun Nov 27, 2016 12:33 pm
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.

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Mon Nov 28, 2016 10:39 am
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...

Re: TrainSim Helper (Joystick/Overlay) release thread

Posted: Mon Nov 28, 2016 10:44 am
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.