Can You Change Key Mappings?

Discussion in 'General Discussion' started by Pookeyhead, Jul 15, 2023.

  1. Pookeyhead

    Pookeyhead Well-Known Member

    Joined:
    Dec 7, 2018
    Messages:
    4,296
    Likes Received:
    2,699
    I hate 100% keyboards... they're too big and ugly, but some DLC uses things like the numpad enter key for example, and up until now, I've just used a separate numpad for TSC, but that's not ideal either. Is there a way to change the key mapping of DLC so I can use a 75% or smaller keyboard?
     
  2. Kim Olesen

    Kim Olesen Well-Known Member

    Joined:
    Jun 21, 2018
    Messages:
    727
    Likes Received:
    564
    It is easier to use an external app. I have a Corsair keyboard and use the iCue app. If i want to drive the vR101 i load a peofile for that etc….
     
  3. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,057
    Likes Received:
    3,140
    Yes. Most trains have a file called InputMapper.bin
    I assume you know how to convert it to a xml.
    You can then open it with Notepad and I copy the entire file and dump it to an excel sheet.
    From there you can find what each key stroke does.

    And you can see how they are organised so you can chose a letter that is not used to change the NumPad_Enter entry.
    Like this from the 4 Cep

    <iInputMapper-cInputMapEntry d:id="21072040">
    <State d:type="sInt32">0</State>
    <Device d:type="cDeltaString">Keyboard</Device>
    <ButtonState d:type="cDeltaString">ButtonDown</ButtonState>
    <Button d:type="cDeltaString">NumPad_Enter</Button>
    <ShiftButton d:type="cDeltaString">Control</ShiftButton>
    <Axis d:type="cDeltaString">NoAxis</Axis>
    <Name d:type="cDeltaString">ToggleControl</Name>
    <Parameter d:type="cDeltaString">VisualAlarms</Parameter>
    <NewState d:type="sInt32">0</NewState>
    </iInputMapper-cInputMapEntry>
     
    • Helpful Helpful x 1
  4. paulc

    paulc Well-Known Member

    Joined:
    Feb 24, 2021
    Messages:
    1,477
    Likes Received:
    3,108
    I have a laptop & this is an issue for me, I can't use the EM2000 in a 66 or hit Pause/Break.
     
  5. Pookeyhead

    Pookeyhead Well-Known Member

    Joined:
    Dec 7, 2018
    Messages:
    4,296
    Likes Received:
    2,699
    I use custom keyboards, that are internally programmed on their own firmware, so I don't really want to go down that route, but thanks for the suggestion.
     
    • Like Like x 1
  6. Pookeyhead

    Pookeyhead Well-Known Member

    Joined:
    Dec 7, 2018
    Messages:
    4,296
    Likes Received:
    2,699
    Thanks Peter... that's perfect.
     
  7. Pookeyhead

    Pookeyhead Well-Known Member

    Joined:
    Dec 7, 2018
    Messages:
    4,296
    Likes Received:
    2,699
    Actually, I have previously used an online converter, but if you have a better way, I'm all ears if you don't mind.
     
  8. maxtedrw

    maxtedrw Active Member

    Joined:
    Sep 24, 2020
    Messages:
    168
    Likes Received:
    223
    find serz.exe in your base railworks folder. Drag a copy to your desktop ( not a shortcut ). Associate .bin files with SERZ.exe. Then you simply double click on a .bin to turn it to a .xml or drag a .xml over the Serz.exe app ( essentially open a .xml in serz which converts an xml back to a bin. The is also an app in the default railworks directory called SERZMaster.exe that is a grpahical interface. This allows not only single file conversion but the conversion of all .bin files in a directory. Very useful for updating entire suites of locos or consists etc.
     
  9. ajpardy

    ajpardy Member

    Joined:
    Feb 7, 2021
    Messages:
    167
    Likes Received:
    7
    use visual studio code, there’s a extension for serz built in. serz the bin file, edit xml file save then re serze all in 1 program. it’s so easy
     
    • Helpful Helpful x 1
  10. Pookeyhead

    Pookeyhead Well-Known Member

    Joined:
    Dec 7, 2018
    Messages:
    4,296
    Likes Received:
    2,699
    Thanks.
     
  11. Matthew Wilson

    Matthew Wilson Well-Known Member

    Joined:
    Sep 20, 2017
    Messages:
    276
    Likes Received:
    482
    TS Tools will open the keyboard mapper file as a bin and save it as one without needing to convert back and forth.

    On the naming front, they aren't called InputMapper.bin, they generally have a unique filename and will sit within a DLCs folder structure, within a folder called InputMappers.

    The name used at the top of the bin file is the name that the loco blueprint calls for, so you need to make sure this is a unique name - more than once RSC/DTG have released different files without an internal rename and caused keyboard mapping clashes that they then don't fix.if you're just editing the default keyboard mapper you won't need to rename it, but Steam DLC updates could replace the file and revert it to default.
     
    • Helpful Helpful x 1
  12. Pookeyhead

    Pookeyhead Well-Known Member

    Joined:
    Dec 7, 2018
    Messages:
    4,296
    Likes Received:
    2,699
    Well I never knew that! This thread just keeps on giving :)
     

Share This Page