Creator Newbie Help!

Discussion in 'General Discussion' started by brendan#3857, Mar 5, 2026 at 11:48 AM.

  1. brendan#3857

    brendan#3857 New Member

    Joined:
    Apr 4, 2025
    Messages:
    3
    Likes Received:
    4
    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.
     
    • Like Like x 2
  2. Oystein

    Oystein Well-Known Member

    Joined:
    May 24, 2018
    Messages:
    390
    Likes Received:
    347
    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!
     
  3. mrscott2022

    mrscott2022 Active Member

    Joined:
    Jul 29, 2022
    Messages:
    118
    Likes Received:
    93
    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.
     
  4. brendan#3857

    brendan#3857 New Member

    Joined:
    Apr 4, 2025
    Messages:
    3
    Likes Received:
    4
    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.
     
  5. brendan#3857

    brendan#3857 New Member

    Joined:
    Apr 4, 2025
    Messages:
    3
    Likes Received:
    4
    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!
     
    • Like Like x 2
  6. Oystein

    Oystein Well-Known Member

    Joined:
    May 24, 2018
    Messages:
    390
    Likes Received:
    347
    I'm glad it worked! Keep us updated on the GM Class 141 :)
     

Share This Page