Page 28 of 29
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Mon Nov 28, 2016 10:55 am
by pavsko
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Tue Dec 27, 2016 6:26 pm
by alpenman
Hello,
First of all can I say thank you thank you thank you so much for this addon. It makes everything so much more enjoyable to use a joystick and replace the awful default UI with something so much more immersive.
I am having one issue however with the Feather River Canyon F7. I have not tried adding the script to other engines on the route, but something is happening specifically with this engine that I have not seen before. When loading the engine everything works correctly, display and joystick. But after a random amount of time (maybe some kind of event happening) the display disappears and the joystick stops working. The only thing that makes it come back is restarting the scenario.
The amount of time it takes to disappear is random and it does not seem attached to an action happening (ie. pressing a certain control or lever). It generally happens within 2 minutes of playing.
Any help would be appreciated! I have applied this script to over 15 engines succesfully and this is the first time I'm having a problem, definitely a great piece of code!
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Tue Dec 27, 2016 7:29 pm
by Havner
Looks like the loco's script is broken and crashes at the end of execution. Rare, but not uncommon. Simply a bug in the loco.
Go to the tools directory, there are two lua scripts. Rename trainsim-helper-engine-template.lua to something else and then rename the trainsim-helper-engine-template-alternative.lua to trainsim-helper-engine-template.lua. Then repatch the loco.
This alternate version executes TSH script before the loco's one so it ill have a chance to do its thing before the script crashes.
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Sun Jan 01, 2017 1:44 am
by alpenman
Havner wrote:Looks like the loco's script is broken and crashes at the end of execution. Rare, but not uncommon. Simply a bug in the loco.
Go to the tools directory, there are two lua scripts. Rename trainsim-helper-engine-template.lua to something else and then rename the trainsim-helper-engine-template-alternative.lua to trainsim-helper-engine-template.lua. Then repatch the loco.
This alternate version executes TSH script before the loco's one so it ill have a chance to do its thing before the script crashes.
Thanks for the tip, unfortunately the problem still persists. Im going to try taking a look at the engine script to see what I can decipher.
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Mon Jan 02, 2017 7:44 pm
by Havner
Are you sure you repatched the loco afterwards? From your description it looks like the problem I've described. It's not the first time I and other people had this.
In any case you can run TS in lua debug mode that will show you what exactly is crashing in the script:
-LogMate -SetLuaFilters="Script Manager" -lua-debug-messages
or
-LogMate -SetLuaFilters="All" -lua-debug-messages
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Fri Jan 06, 2017 7:29 pm
by alpenman
Havner wrote:Are you sure you repatched the loco afterwards? From your description it looks like the problem I've described. It's not the first time I and other people had this.
In any case you can run TS in lua debug mode that will show you what exactly is crashing in the script:
-LogMate -SetLuaFilters="Script Manager" -lua-debug-messages
or
-LogMate -SetLuaFilters="All" -lua-debug-messages
I did repatch with the alt script but I will try running in LUA log mode thanks for the tip
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Sun Jan 08, 2017 12:57 am
by alpenman
Havner wrote:Are you sure you repatched the loco afterwards? From your description it looks like the problem I've described. It's not the first time I and other people had this.
In any case you can run TS in lua debug mode that will show you what exactly is crashing in the script:
-LogMate -SetLuaFilters="Script Manager" -lua-debug-messages
or
-LogMate -SetLuaFilters="All" -lua-debug-messages
I tried out both log settings and all I see around the time the crash is happening is:
[Content 7:53:05 PM] Trace cRailSimSoundSystem.cpp : 534 = Failed to open file Assets\.\DTG\FeatherRiver\Audio\RailNetwork\Platforms\UK Platform.proxyxml
Something referenced an audio control file that failed to open (maybe it does not exist)
[Content 7:55:20 PM] Trace cEntity.cpp : 1272 = Missing blueprint "RailNetwork\Junctions\Automatic_Junction_Motor.xml"
[Content 7:55:23 PM] Trace cBlueprintLibrary.cpp : 417 = Blueprint set not found : DTG, MariasPass
[Content 7:55:25 PM] Trace cBlueprintLibrary.cpp : 417 = Blueprint set not found : DTG, MariasPass
[Content 7:55:25 PM] Trace cBlueprintLibrary.cpp : 417 = Blueprint set not found : DTG, MariasPass
I was getting the Marias pass error before the crash occurred as well, so not confident that is an actual issue. Feeling dead in the water..
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Sun Jan 08, 2017 8:53 am
by Havner
AFAIR, there are multiple tabs in the Log program. Did you look at the script related one?
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Fri Feb 03, 2017 12:55 pm
by rzk9922
Hey Havner,
Thanks for making and sharing this excellent helper, it's really useful.
but before that, i want to say thanks to CobraOne who makes the railworks joystick API and been using it for a couple months till i found this "train sim helper".
i made my first "low budget" joystick from arduino uno, plastic pipe, and some unused items and it's works perfectly.
more better than using a keyboard and of course it's give me more experience while driving a train.
and again, thanks Havner and CobraOne.
You both are a great programmer.
sorry for bad english.
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Sat Feb 04, 2017 12:27 am
by Havner
Have fun mate. Glad you found it useful. Nice german loco setup you got there

Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Sun Feb 19, 2017 11:03 am
by marvinbart429
Hello @havner
I have a problem with the Helper. However, he functions well I use him for the VirtualRailroads BR101. There I have the problem that the brake wants not functioned like I want. I serve them with a lever. This railroad engine owns a Trainbrake which has released a specially step over the normal 5 bar. Now I can start quite normally, then I brake normally, however, the lever then lies in the area over "released". And so I cant start again with the Throttle. I hope you understand what I mean. I come from Germany and my English is not the best one. However, do you understand it? And now is my question what I must change with it this specially step no more gives or I can handle them.
Greetings Marvin
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Mon Feb 20, 2017 7:23 pm
by Havner
marvinbart429 wrote:This railroad engine owns a Trainbrake which has released a specially step over the normal 5 bar. Now I can start quite normally, then I brake normally, however, the lever then lies in the area over "released". And so I cant start again with the Throttle.
Hi,
Unfortunately I don't fully understand what you mean. In any case Virtual Railroads are pretty custom and advanced. That would need to be looked at and probably some custom config made. And I don't own that addon. Sorry, I'm afraid I cannot help you at that point. There is simply too many things that can happen for me to predict that remotely. Maybe someone else that owns this loco made it to work?
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Mon Feb 20, 2017 9:49 pm
by marvinbart429
Havner wrote:
Hi,
Unfortunately I don't fully understand what you mean. In any case Virtual Railroads are pretty custom and advanced. That would need to be looked at and probably some custom config made. And I don't own that addon. Sorry, I'm afraid I cannot help you at that point. There is simply too many things that can happen for me to predict that remotely. Maybe someone else that owns this loco made it to work?
I want to show you the problem. Here you can see that the Brake is normal and the display show that the locomotive have 5 bar. This is normal when you drive with this loco.
Here you can see the problem. The Lever is too far ahead. So the display value over 5 bar. In this state, the Loco cant drive. So I have to find a value with my lever, that the display show the normal 5 bar.
When you drive this Loco with keyboard, the display show all the time 5 bar. Only when you push "Ü" , the display show the value over 5 bar.
I cant tell you the problem better

I can you give a video where I can show you the problem, but I dont know how I can send you this video.
I hope you can help me because I search since 1 month every to for a solution
Greeting Marvin
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Tue Feb 21, 2017 8:55 am
by marvinbart429
Re: TrainSim Helper (Joystick/Overlay) release thread
Posted: Tue Feb 21, 2017 11:58 am
by Havner
I don't see any images. Videos can be uploaded to YouTube for example.