1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.32 Bug Reporting thread
    Solutions and more information may already be available.

[URGENT]Inputmap for a gamepad HELP!

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by kubus765, Aug 22, 2013.

  1. kubus765

    kubus765
    Expand Collapse

    Joined:
    Jul 1, 2013
    Messages:
    97
    I've configured a .cs inputmap file and put it in D:\BeamNG-DRIVE\scripts\client\inputmaps\custom with a correct name and everything is correct inside it too. Take a look at the log from the console and the inputmap and please tell me what is wrong I've been struggling with this for about 2 weeks now and I still didn't find any solution on this or any other forum. PLEASE HELP! I've tried everything!

    Here is the console log from the whole inputmaps loading sequence:
    Code:
    2.989410|GFXPCD3D9Device::reset - depthstencil 562c9c0 has 2 ref's
    2.989467|--- Resetting D3D Device ---
    3.102118|processBind: unknown device: oculusvr
    3.106610| *** loading input map *** 
    3.106659|No active object
    3.106716|*** keyboard0 ***
    3.106771| - Product ID: 2B61
    3.106814| - Vendor ID: 6F1D
    3.106859| - Product Name: Klawiatura
    3.106903| - GUID: {6F1D2B61-D5A0-11CF-BFC7-444553540000}
    3.107062| - 127 objects: escape (key), minus (key), equals (key), backspace (key), tab (key), lbracket (key), rbracket (key), return (key), lcontrol (key), semicolon (key), apostrophe (key), tilde (key), lshift (key), backslash (key), comma (key), period (key), slash (key), rshift (key), numpadmult (key), lalt (key), space (key), capslock (key), f1 (key), f2 (key), f3 (key), f4 (key), f5 (key), f6 (key), f7 (key), f8 (key), f9 (key), f10 (key), numlock (key), scrolllock (key), numpad7 (key), numpad8 (key), numpad9 (key), numpadminus (key), numpad4 (key), numpad5 (key), numpad6 (key), numpadadd (key), numpad1 (key), numpad2 (key), numpad3 (key), numpad0 (key), numpaddecimal (key), lessthan (key), f11 (key), f12 (key), numpadenter (key), rcontrol (key), numpaddivide (key), print (key), ralt (key), pause (key), home (key), up (key), pageup (key), left (key), right (key), end (key), down (key), pagedown (key), insert (key), delete (key), win_lwindow (key), win_rwindow (key), win_apps (key), 
    3.107112|No active object
    3.107156|No active object
    3.107200|No active object
    3.107243|No active object
    3.107286|No active object
    3.107331|No active object
    3.107460|  - joystick specific mapping file not found: scripts/client/inputmaps/custom/6f1d2b61d5a011cfbfc7444553540000.inputmap.cs
    3.107561|  - joystick specific mapping file not found: scripts/client/inputmaps/custom/klawiatura.inputmap.cs
    3.107697|  - trying to load mapping scripts/client/inputmaps/6f1d2b61d5a011cfbfc7444553540000.inputmap.cs
    3.108393|No active object
    3.108444|*** mouse0 ***
    3.108496| - Product ID: 2B60
    3.108539| - Vendor ID: 6F1D
    3.108583| - Product Name: Mysz
    3.108627| - GUID: {6F1D2B60-D5A0-11CF-BFC7-444553540000}
    3.108688| - 11 objects: xaxis (axis), yaxis (axis), zaxis (axis), button0 (button), button1 (button), button2 (button), button3 (button), button4 (button), button5 (button), button6 (button), button7 (button)
    3.108732|No active object
    3.108775|No active object
    3.108818|No active object
    3.108861|No active object
    3.108904|No active object
    3.108948|No active object
    3.109066|  - joystick specific mapping file not found: scripts/client/inputmaps/custom/6f1d2b60d5a011cfbfc7444553540000.inputmap.cs
    3.109175|  - joystick specific mapping file not found: scripts/client/inputmaps/custom/mysz.inputmap.cs
    3.109320|  - joystick specific mapping file not found: scripts/client/inputmaps/6f1d2b60d5a011cfbfc7444553540000.inputmap.cs
    3.109365|No active object
    3.109463|  - joystick specific mapping file not found: scripts/client/inputmaps/mysz.inputmap.cs
    3.109507|No active object
    [COLOR=#008000]3.109554|*** gamepad0 ***
    3.109599| (unbinding...)
    3.109648| *** unbinding failed!
    3.109700| - Product ID: 0E8F
    3.109743| - Vendor ID: 3075
    3.109786| - Product Name: STRIKE FX GAMEPAD
    3.109830| - GUID: {30750E8F-0000-0000-0000-504944564944}
    3.109900| - 17 objects: button0 (button), button1 (button), button2 (button), button3 (button), button4 (button), button5 (button), button6 (button), button7 (button), button8 (button), button9 (button), button10 (button), button11 (button), rzaxis (axis), zaxis (axis), yaxis (axis), xaxis (axis)
    3.109944|No active object
    3.109987|No active object
    3.110031|No active object
    3.110074|No active object
    3.110118|No active object
    3.110162|No active object
    3.110264|  - joystick specific mapping file not found: scripts/client/inputmaps/custom/30750e8f000000000000504944564944.inputmap.cs
    3.110393|  - trying t`o load mapping scripts/client/inputmaps/custom/strikefxgamepad.inputmap.cs
    3.111117|<<<STRIKE FX GAMEPAD LOADED!>>>[/COLOR]
    3.111169|No active object
    3.111214| *** loading input map DONE *** 
    3.111273|No active object
    
    *The green text is what I want to configure (gamepad).

    And here is the inputmap file I'm using:
    NAME: 30750e8f000000000000504944564944.inputmap.cs
    Code:
    // Product Name: STRIKE FX GAMEPAD
    // GUID: {30750E8F-0000-0000-0000-504944564944}
    // axes: 4^RZ^Z^Y^X
    
    // 15% deadzone for the camera things
    $gp_deadzone = "-0.15 0.15";
    
    // camera
    moveMap.bind(%device, rzaxis, "DI", $gp_deadzone, gamepadYaw);
    moveMap.bind(%device, zaxis, "D", $gp_deadzone, gamepadPitch);
    moveMap.bindCmd(%device, button12, "beamNGResetCamera();", "");
    
    // shifting
    moveMap.bind(%device, button6, shiftUp);
    moveMap.bind(%device, button5, shiftDown);
    
    // driving
    moveMap.bind(%device, xaxis, "D", $gp_deadzone, joy_steer);
    moveMap.bind(%device, button4, brake);
    moveMap.bind(%device, button3, accelerate);
    moveMap.bind(%device, button2, parkingbrake);
    moveMap.bind(%device, button1, parkingbrake_toggle);
    
    // other
    moveMap.bindVLuaCmd(%device, button11, "bullettime.set(5);", "bullettime.set(100);");
    moveMap.bindCmd(%device, dpadd, "beamNGReloadCurrentVehicle();", "");
    moveMap.bindCmd(%device, dpadu, "beamNGResetPhysics();", "");
    moveMap.bindCmd(%device, dpadr, "beamNGSwitchVehicle(1);", "");
    moveMap.bindCmd(%device, dpadl, "beamNGSwitchVehicle(-1);", "");
    moveMap.bindCmd(%device, button10, "beamNGTogglePhysics();", "");
    moveMap.bindCmd(%device, button9, "beamNGCameraToggle();", "");
    
    echo ("<<<STRIKE FX GAMEPAD LOADED!>>>");
    Greetings, and thanks in advance.
     
  2. daniel_j

    daniel_j
    Expand Collapse

    Joined:
    Aug 3, 2013
    Messages:
    334
    What kind of controller do you have, your spam in the IRC didn't give me a chance to respond. :)
     
  3. kubus765

    kubus765
    Expand Collapse

    Joined:
    Jul 1, 2013
    Messages:
    97
    Some cheap Speedlink Strike but it will be better to control with this than the keyboard
     
  4. daniel_j

    daniel_j
    Expand Collapse

    Joined:
    Aug 3, 2013
    Messages:
    334
    Try this mate, alot simpler.
    http://www.xpadder.com/
     
  5. kubus765

    kubus765
    Expand Collapse

    Joined:
    Jul 1, 2013
    Messages:
    97
  6. Fundador

    Fundador
    Expand Collapse

    Joined:
    May 21, 2013
    Messages:
    595
    May sound dumb, but I set my wheel and game-pad up for xbox mode and then it just works like a plug and play as Beam-NG thinks it has an xbox controller pluged in. Not sure if your gamepad supports that kind of preset loadin for consoles though.
     
  7. kubus765

    kubus765
    Expand Collapse

    Joined:
    Jul 1, 2013
    Messages:
    97
    Alright I consider this solved I've used the Xpadder (very smart program you know) and I think it's gonna work.
     
  8. daniel_j

    daniel_j
    Expand Collapse

    Joined:
    Aug 3, 2013
    Messages:
    334
    Cool ;) hope it works
     
  9. kubus765

    kubus765
    Expand Collapse

    Joined:
    Jul 1, 2013
    Messages:
    97
    Alright, everything works BUT the turning on the analog is just like I was pressing buttons (so like I'm turning FULL or not at all), any way to fix this? Same with camera
     
  10. daniel_j

    daniel_j
    Expand Collapse

    Joined:
    Aug 3, 2013
    Messages:
    334
    nah, all it does is virtually press the keys, no toggle or anything :)
     
  11. moosedks

    moosedks
    Expand Collapse

    Joined:
    Nov 4, 2012
    Messages:
    1,112
    with my xbox controller i can make it turn between 0 and full lock just fine so I don't know why he shouldn't be able to
     
  12. kubus765

    kubus765
    Expand Collapse

    Joined:
    Jul 1, 2013
    Messages:
    97
    I believe that xpadder just simulates keyboard keys and keyboard keys aren't analog, they are 0/1... So I'm still waiting if someone helps me with the inputmap!
     
  13. wizzypopje

    wizzypopje
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    9
    https://code.google.com/p/x360ce/ (or google xbox 360 controller simulator for other alternatives)

    this will do just like that keyboard emulator, but turning should be fine
     
  14. justin428

    justin428
    Expand Collapse

    Joined:
    Aug 15, 2013
    Messages:
    200
    My Logitech f310 doesn't work either buddy.

    - - - Updated - - -
     
  15. stbest95

    stbest95
    Expand Collapse

    Joined:
    Aug 5, 2013
    Messages:
    259
    the reason your inputmap doesnt work anymore is that the steering was renamed from "joy_steer" to "steer" with the update.
    furthermore the "bind-command" in front of every line was changed to "%mm.bind".
    for the steering, for example, you have to change

    moveMap.bind(%device, xaxis, "D", $gp_deadzone, joy_steer);

    to

    %mm.bind(%device, xaxis, "D", $gp_deadzone, steer);

    hope this helped
     
  16. Chuck.357

    Chuck.357
    Expand Collapse

    Joined:
    Aug 22, 2013
    Messages:
    4
    Yes, rename joy_steer to just steer.

    Also you probably need to change the file name to strikefxgamepad.inputmap.cs

    3.110393| - trying t`o load mapping scripts/client/inputmaps/custom/strikefxgamepad.inputmap.cs
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice