Raildriver adoption
#1
Posted 25 December 2018 - 11:11 AM
Unfortunately didn't got it working in the first trial, but I discovered the Raildriver support in ORTS is bound to an older 32bit driver implementation from PI Engineering. Good news though, PI is supporting 64bit in newer versions of their API. However there are some changes in the PI API which require couple updates to the OR code for Raildriver to get the new version to work. Furthermore, they way it's implemented, may cause some challenges supporting both a 32bit and 64bit at the same time. I'm looking to implement this in a 64bit version of OR MG at least, but potentially backport to the official (32bit) version as well - if there is interest at all...
So while getting into the code, wondering how many folks are using Raildriver with ORTS, if there's larger interest in other changes.
I searched the forums and there seem few sporadic messages on Raildriver only, and indicating missing features like programmable key mappings or different keys mappings for OR camera views.
What's on folks mind, do we need any updates for RailDriver in OR? No commitment or timelines yet ;)
#2
Posted 25 December 2018 - 02:04 PM
I have been using my RailDriver with OR since support for it was first implemented and with MSTS before that.
I am pretty happy with the existing implementation but would very much like to see extensions to blue button functions.
Some people were working on this 2 or 3 years ago. I tried the patches they provided and appreciated the extensions.
For some reason their patches were not added to OR Experimental Release version.
Paul
P.S. Only interested in 64 bit Monogame OR.
#3
Posted 30 December 2018 - 11:56 AM
farrmp, on 25 December 2018 - 02:04 PM, said:
I have been using my RailDriver with OR since support for it was first implemented and with MSTS before that.
I am pretty happy with the existing implementation but would very much like to see extensions to blue button functions.
Some people were working on this 2 or 3 years ago. I tried the patches they provided and appreciated the extensions.
For some reason their patches were not added to OR Experimental Release version.
Paul
P.S. Only interested in 64 bit Monogame OR.
Paul, do you have a list of these changes/patches by chance?
Looks like not all of the blue button are in use in OR, I'd be happy to give them a try and do some testing.
Or implement other changes if we agree on the functionality.
Also I got the 64bit Raildriver adapted much quicker than initially thought (or did I just got more time to spent during xmas …) and this should work with 32bit a well, as long the correct driver from PI is available. Changes are in my repo but not binary packaged yet.
#4
Posted 30 December 2018 - 12:44 PM
perpetualKid, on 30 December 2018 - 11:56 AM, said:
Looks like not all of the blue button are in use in OR, I'd be happy to give them a try and do some testing.
Or implement other changes if we agree on the functionality.
Also I got the 64bit Raildriver adapted much quicker than initially thought (or did I just got more time to spent during xmas …) and this should work with 32bit a well, as long the correct driver from PI is available. Changes are in my repo but not binary packaged yet.
Hi,
I did a little digging and found that MikeJRoth is the person that created a patck back in February of 2017 called UserInputRaildriver.cs described in this thread on ET:
http://www.elvastowe...__1#entry216131
Hope this helps. It seems that Mike has not been active here at ET since 2017. My feeling is there are a LOT more RailDriver users on OpenRails than care to comment.
Paul
#5
Posted 30 December 2018 - 12:46 PM
#6
Posted 30 December 2018 - 11:21 PM
#7
Posted 31 December 2018 - 08:19 AM
Some experimental improvements were tested as a proof-of-concept, but never progressed; I think the Trello board has RailDriver support overhaul slated for future work -- the change to Monogame and 64-bit support is likely going to be a push in that direction.
#8
Posted 31 December 2018 - 08:54 AM
My Raildriver is about five years old, not too old, so maybe my brake controls are worn or otherwise defective...I certainly have calibrated them.
Do any others experience an auto brake that is sluggish and imprecise?
#9
Posted 31 December 2018 - 12:58 PM
perpetualKid, on 30 December 2018 - 11:56 AM, said:
Looks like not all of the blue button are in use in OR, I'd be happy to give them a try and do some testing.
Or implement other changes if we agree on the functionality.
Also I got the 64bit Raildriver adapted much quicker than initially thought (or did I just got more time to spent during xmas …) and this should work with 32bit a well, as long the correct driver from PI is available. Changes are in my repo but not binary packaged yet.
Hi perpetualKid,
I also hacked the UserInputRailDriver.cs file, and have a working 64bit RD from your MG GitHub version. Haven't really used the RD very much in the last couple of years. Agree with a previous comment on this thread, the analog inputs are not precise enough for find control. Have even entertained the thought of creaking open the case, to see if the pots could be replaced with digital encoders. Then adding a modern MCU to interface, like a game pad controller. Dream on…..
As far as the blue switches are concerned. IMHO the approach should be more or less like the TS2019 method. In the OR menu to have an option to select the 64 or 32 bit version. Have a setup program, to generate a table to map functions to keys.Then at run time load the table, when initializing the RD. Similar to he way F1 remaps the keyboard controls.
#10
Posted 31 December 2018 - 01:09 PM