Change Key Binds For Dlc Loco?

Discussion in 'General Discussion' started by paulc, Apr 23, 2022.

  1. paulc

    paulc Well-Known Member

    Joined:
    Feb 24, 2021
    Messages:
    1,491
    Likes Received:
    3,142
    Using the enhanced 66 from AP I am unable to activate the EMS2000 As my laptop does not have a number pad (ctrl+ Numpad enter), I have bought an external USB number pad in the hope that it would work but it still does not work?!

    Is there any way I can edit the keybind to a button I can press :)

    I'm not too out of pocket as I got the pad for £2.79 new!
     
  2. 749006

    749006 Well-Known Member

    Joined:
    Dec 10, 2016
    Messages:
    10,093
    Likes Received:
    3,145
    Yes
    The Key Bindings are in a file called the Input Mapper.
    Go in to railworks\Assets\RSC\Class66PackXX\RailVehicles\Diesel\Class 66\AP\InputMappers
    XX = the pack number
    You will find a file called 66_AP.bin - Make a Backup as any error and the loco stops working
    If you use TS Tools you can edit the file with that

    Or
    Double Click creates an XML version of the same file 66_AP.xml
    You can open this with Notepad
    Search with Ctrl+F for NumPad_Enter

    One of the sections looks like this
    <iInputMapper-cInputMapEntry d:id="21071994">
    <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">IncreaseControlStart</Name>
    <Parameter d:type="cDeltaString">EMKey_Select</Parameter>
    <NewState d:type="sInt32">0</NewState>

    At this point you can Change NumPad_Enter for something else - BUT Not a Key Used by Another Process
    There will be an identical section below with ButtonUp - that also needs changing

    When you are happy save the.xml file
    Then Right Click - Open with Serz and it updates 66_AP.bin

    Peter
     
    • Like Like x 1
  3. paulc

    paulc Well-Known Member

    Joined:
    Feb 24, 2021
    Messages:
    1,491
    Likes Received:
    3,142
    Thanks for the detailed explanation! I'll give it a go later on tonight :)
     

Share This Page