On Derail Valley I am getting [dvDirectInput] [Exception] OnUpdate: MissingMethodException - void DV.CabControls.ControlImplBase.SetValue(single) That is spaming the inputs and cannot control the game.
The game needs binds for the RC controls for that to work. You're not operating the loco controls, but the RC, so it makes sense as is. Would love to see that happen, though. :-)
I've been awol, but I'll still respond in case it helps anyone else.
As atledreier mentioned it would need binds to work correctly. The mod essentially goes and finds all inputs associated with locomotives. The RC is not a locomotive so the inputs are not exposed. Its been a while since I've looked at how the game works but I might be able to expose the RC inputs as a separate list in the controls and map those to work with the RC.
This works Awesome with my old X52 throttle. Got main for Regulator, Top rotary for service brakes, lower for inde, Slider for injector, 10/10 makes driving more fun.
Only wish the whistle would work on the joystick side, then I could signal without the mouse. A sensitivity slider could help with some jitter too.
But overall Love this mod, I now have two throttles on my cockpit lol, one for planes, and one for trains ;P
So been playing for a bit, didn't realize as i had a diesel in the line, but non lapped brakes dont seem to have a "lap" position with this mod. Still night and day for Reg and reverser, but brakes are... hard to use. for now I might just map buttons with joy to key.
And a sensitivity slider would be extremely helpful. But will keep playing with it tomorrow. Kudo's
Thanks for this mod! What is the easiest way to invert an individual axis? Right now, the reverser and brakes are working in the reverse sense when I move the levers.
Currently no support. It'll be an easy fix for me to pop in when I have time. You could just invert it in your input devices configuration software for now
Thank you, it would be amazing if you can add it when you have time. The software for my hardware (TQ6 throttle) doesn't have an option for me to invert.
It works great now! Being able to use my flight sim throttle unit to drive trains has really transformed this game to the next level. This mod is a must-have. Thanks for continuing to work on it!
Me 2. it sees all 3 input controllers correctly. I use a Thrustermaster throttle quadrant for brakes and 19 buttons! and a pot on my NXT stick. This is big for me !
Thank you very much I do appreciate it, I did try the Rail Driver, and no joy. But the odd thing is DV did show up in the game drop-down list yesterday. But that is about it.
In the top left of the screen do you get any indication of inputs being registered. There should be something like an axis name or a button number? It might be as simple as the device giving low resolution outputs which aren't being normalised correctly
I had a brief look at the RailDriver and MacroWorks documentation and I think it should be possible. If Macroworks is emulating a game controller then it should show up in directInput. I think the issue that might be occuring is that you need to have DV open to allow MacroWorks to output to it. The mod doesnt have hotplug support so if the device is not present on load then its not gonna show up in the mod. I have a feature to allow for hotplug so when thats in it might work. I will go take a look at MacroWorks and see if their tools allow you to emulate a device you dont have. That would make developing the mod much easier.
The latest release has a bunch of debug on startup to the BepInEx console so you might be able to glean some info from that.
This would be soooo awesome if it was possible to make RailDriver work in Derail Valley. I'm a noob but going to keep checking back here regularly to see if any of you wonderful people have gotten anywhere with it. Good luck and can't wait.
this got pushed back a bit, with the switch to UMM and everything being transitioned from BIE to UMM, But I was not able to see anything before or after the switch back to UMM. There is another "Rail Driver Integration" tool have not tried it, but that also was in the days of BIE, maybe you and the author of that tool can collaborate? just a thought.
Also, the Rail Driver levers reverser throttle brakes, and the lights / wiper knobs are hard-coded, no way to change them, and I think the bell / alerter sand buttons also are hard coded. I have not looked at the macro options in some time. I will give another look see.
Version 0.5.2 has added the ability to reload input devices while the game is running. Looking at MacroWorks and X-Keys they hint at:
Program keystroke, mouse, game controller, multimedia and alt-code messages (compatibility depends on your device)
If you are able to send game controller messages or emulate a game controller with it then the RailDriver may work.
I dont know how this software works, but you could try pointing it at Derail Valley, toggling this mod off and back on again via the configuration GUI, then looking at the logs to see if any devices are reported.
I cant really develop a RailDriver mod cause I don't have one to play around with. Someone wanting to implement the feature could do quite easily by replacing the Direct Input part of my code with the Raildriver integration and doing some tweaking to map the inputs correctly.
Still thinking about whether I should get it or not, but this is a really cool concept. Never would've thought of using my Honeycomb Bravo for driving trains. 😂
29 comments
[dvDirectInput] [Exception] OnUpdate: MissingMethodException - void DV.CabControls.ControlImplBase.SetValue(single)
That is spaming the inputs and cannot control the game.
Any advice how to fix it, please? Thanks
Would love to see that happen, though. :-)
As atledreier mentioned it would need binds to work correctly.
The mod essentially goes and finds all inputs associated with locomotives.
The RC is not a locomotive so the inputs are not exposed. Its been a while since I've looked at how the game works but I might be able to expose the RC inputs as a separate list in the controls and map those to work with the RC.
Im back for another session at the moment so if I find any issues I'll probablt fix them. QoL stuff I probably won't though.
It still seems to be working which is nice. If someone wanted to take over maintaince I'd be happy to hand over the reigns
Dont work any more
Only wish the whistle would work on the joystick side, then I could signal without the mouse. A sensitivity slider could help with some jitter too.
But overall Love this mod, I now have two throttles on my cockpit lol, one for planes, and one for trains ;P
So been playing for a bit, didn't realize as i had a diesel in the line, but non lapped brakes dont seem to have a "lap" position with this mod. Still night and day for Reg and reverser, but brakes are... hard to use. for now I might just map buttons with joy to key.
And a sensitivity slider would be extremely helpful. But will keep playing with it tomorrow. Kudo's
You could just invert it in your input devices configuration software for now
This Mod no longer works with build 96.
I have tried:
-deleting the settings.xml file
-deleting and reinstalling the mod
but it does not solve the problem. Any solutions would be much appreciated.
Those devices are from VKB. Specifically the ones shown in the image are their THQ and SEM products
I'll see if I can get some more debug in so you can test it out
It might be as simple as the device giving low resolution outputs which aren't being normalised correctly
If Macroworks is emulating a game controller then it should show up in directInput.
I think the issue that might be occuring is that you need to have DV open to allow MacroWorks to output to it.
The mod doesnt have hotplug support so if the device is not present on load then its not gonna show up in the mod. I have a feature to allow for hotplug so when thats in it might work.
I will go take a look at MacroWorks and see if their tools allow you to emulate a device you dont have. That would make developing the mod much easier.
The latest release has a bunch of debug on startup to the BepInEx console so you might be able to glean some info from that.
Also, the Rail Driver levers reverser throttle brakes, and the lights / wiper knobs are hard-coded, no way to change them, and I think the bell / alerter sand buttons also are hard coded. I have not looked at the macro options in some time. I will give another look see.
Looking at MacroWorks and X-Keys they hint at:
If you are able to send game controller messages or emulate a game controller with it then the RailDriver may work.
I dont know how this software works, but you could try pointing it at Derail Valley, toggling this mod off and back on again via the configuration GUI, then looking at the logs to see if any devices are reported.
I cant really develop a RailDriver mod cause I don't have one to play around with. Someone wanting to implement the feature could do quite easily by replacing the Direct Input part of my code with the Raildriver integration and doing some tweaking to map the inputs correctly.