Hi there, As a retirement project I've embarked on a project to create an Irish route and Irish locomotive. I have created a GM class 141 loco, and successfully set up a cab and throttles. Much work remains to be done, but one issue is that the keyboard map doesn't work. I note that some locos seem to use the default and don't specify any mapper in the blueprint, and some use their own input mappers. Whatever I try, nothing works. I could still drive using the hud or controls, but still.. I've used Tony Nicholls excellent tutorial videos btw, does he contribute here? Much thanks to him for helping me get as far as I have.
Input mapper blueprint must be exported manually (right click->Export in Blueprint Editor), and it must be located in a folder named "InputMappers" In the engine blueprint, add the name of the input mapper just like it appears in the first field inside the input mapper. Don't use the path or name of the input mapper file. Restart game after editing the input mapper. Also, make sure that you have a working engine script with at least the following code; Code: ------------------------------------------------------------ -- OnControlValueChange ------------------------------------------------------------ -- Called when a cab control is modified ------------------------------------------------------------ -- Parameters: -- name = Name of the control -- index = Index of the control -- value = Modified control value ------------------------------------------------------------ function OnControlValueChange ( name, index, value ) if Call( "*:ControlExists", name, index ) then Call( "*:SetControlValue", name, index, value ); end end I hope this helps!
I also used his tutorials to get started making content. I wish he was still making videos. Sadly there is not much out there on this topic. What info that is out there is not thorough enough, or it's just simply outdated.
Thanks guys. I really didn't expect such a quick response. I'll keep you posted on progress, as help for anyone else trying this.
Ten million thanks, the .lua file was blank. If I'd looked at the sample .lua I'd have seen the script. THanks Oystein...and it's great to see this forum is not dead!