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.35 Bug Reporting thread
    Solutions and more information may already be available.

Think someone could help me program my USB controller for BeamNG Drive?

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Dead Reckon, Dec 27, 2013.

  1. Dead Reckon

    Dead Reckon
    Expand Collapse

    Joined:
    Jan 20, 2013
    Messages:
    30
    This is as far as I got, and I'm probably doing it wrong, thanks if you can give some help

    This is the tutorial / base script used:


    // Product Name: USB 4-Axis 12-Button Gamepad
    // GUID: (GUID goes here, format: {01070F30-0000-0000-0000-504944564944})
    // axes: (axis go here, format 3^X^X^X or 4^X^X^X^X, etc.)

    //%device = "{01070F30-0000-0000-0000-504944564944}-" @ %joyNum; (<- Guid goes there too)
    %device = "gamepad" @ %joyNum; (<- device type goes there, joystick/gamepad)

    // 0 deadzone
    $gp_deadzone = "-0.15 0.15"; (possible deadzone configure)

    // camera
    moveMap.bind(%device, (axis name), "D", $gp_deadzone, gamepadYaw);
    moveMap.bind(%device, (axis name), "D", $gp_deadzone, gamepadPitch);
    // movement
    moveMap.bind(%device, (axis name), joy_steer_nl_dz);
    //moveMap.bind(%device, thumbly, "D", $gp_deadzone, gamePadMoveY); // using triggers instead

    moveMap.bind(%device, button4, "D", $gp_deadzone, joy_brake);
    moveMap.bind(%device, button3, "D", $gp_deadzone, joy_accelerate);

    moveMap.bindCmd(%device, (button name), "beamNGResetPhysics();", "");
    moveMap.bindCmd(%device, (button name), "beamNGTogglePhysics();", "");
    moveMap.bindCmd(%device, (button name), "beamNGToggleParkingBrake();", "");
    moveMap.bindCmd(%device, (button name), "beamNGSwitchVehicle();", "");
    moveMap.bindCmd(%device, (button name), "gamepadZoom(-0.1);", "gamepadZoom(0);");
    moveMap.bindCmd(%device, (button name), "gamepadZoom(0.1);", "gamepadZoom(0);");
    moveMap.bindCmd(%device, (button name), "beamNGResetCamera();", "");

    moveMap.bindCmd(%device, button11, "beamNGCameraToggle();", "");



    And this is my console information:

    55.043092|*** joystick0 ***
    55.043135| (unbinding...)
    55.043180| *** unbinding failed!
    55.043234| - Product Name: USB 4-Axis 12-Button Gamepad
    55.043276| - Product ID: 0107
    55.043317| - Vendor ID: 0F30
    55.043359| - GUID: {01070F30-0000-0000-0000-504944564944}
    55.043433| - 17 objects: rzaxis (axis), zaxis (axis), yaxis (axis), xaxis (axis), button0 (button), button1 (button), button2 (button), button3 (button), button4 (button), button5 (button), button6 (button), button7 (button), button8 (button), button9 (button), button10 (button), button11 (button)
    55.043533| - trying to load keyboard mapping: scripts/client/inputmaps/custom/keyboard.inputmap.cs - file not existing
    55.043627| - trying to load mapping via VendorID/ProductID: scripts/client/inputmaps/custom/01070f30.inputmap.cs - file not existing
    55.043722| - trying to load mapping via name: scripts/client/inputmaps/custom/usb4axis12buttongamepad.inputmap.cs - file not existing
    55.047804| - trying to load keyboard mapping: scripts/client/inputmaps/keyboard.inputmap.cs - SUCCESSFUL
    55.047999| - trying to load mapping via VendorID/ProductID: scripts/client/inputmaps/01070f30.inputmap.cs - file not existing
    55.048132| - trying to load mapping via name: scripts/client/inputmaps/usb4axis12buttongamepad.inputmap.cs - file not existing
    55.048181|--- unable to find mapping for this controller ---
    55.048272| - trying to load keyboard mapping: vehicles/pickup/inputmaps/keyboard.inputmap.cs - file not existing
    55.048350| - trying to load mapping via VendorID/ProductID: vehicles/pickup/inputmaps/01070f30.inputmap.cs - file not existing
    55.048430| - trying to load mapping via name: vehicles/pickup/inputmaps/usb4axis12buttongamepad.inputmap.cs - file not existing
    55.048491| *** loading input map DONE ***


    My controller is a game elements GGE908 that I got at a yardsale for a dollar, I know, I'm cheap, but I just spent $20 on this game, so my budget for a new controller was just depleted. ;)

    Thanks for any help y'all can give. I've been enjoying the game, but I hate using the keyboard!
     
  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