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

How can I move the camera in the TechDemo without...

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by tonystark, Apr 4, 2014.

  1. tonystark

    tonystark
    Expand Collapse

    Joined:
    Mar 31, 2014
    Messages:
    43
    ...the numpad, or mouse??? (btw my computer doesn't have a numpad)
     
  2. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    818
    well, you could change the keys...

    It's a little advanced, but I could help you. :)
     
  3. tonystark

    tonystark
    Expand Collapse

    Joined:
    Mar 31, 2014
    Messages:
    43
    ok can you?
     
  4. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    818
    Sure, I'll edit them myself and copy over the code to you. ( don't get your hopes up, you're not getting any full game features )

    - IBsenoj

    - - - Updated - - -

    1. go into your game directory, and click on Scripts --> cleints --> inputmaps

    2. then find the file that is called "keyboard.inputmap.cs

    3. erase all that is in that file and paste the code below, inside that file.

    4. save it then close everything and open BeamNG,

    5. simply enjoy your new controls set by IBsenoj! :)

    ok, here are the controls.

    g = aim camera right
    j = aim camera left
    y = aim camera down
    n = aim camera up
    u = zoom in
    m = zoom out
    h = center camera
    b = flip veiw

    f = freeze physics

    Code:
    
    ////////////////////////////////////////////////
    //// Vehicle Keyboard mappings
    
    
    %mm.bind( keyboard, a, moveleft );
    %mm.bind( keyboard, d, moveright );
    %mm.bind( keyboard, w, moveforward );
    %mm.bind( keyboard, s, movebackward );
    
    
    %mm.bind( keyboard, left, steer_left );
    %mm.bind( keyboard, right, steer_right );
    %mm.bind( keyboard, up, accelerate );
    %mm.bind( keyboard, down, brake );
    
    
    // shifting
    %mm.bind( keyboard, lshift, clutch );
    %mm.bind( keyboard, x, shiftUp);
    %mm.bind( keyboard, z, shiftDown);
    %mm.bind( keyboard, q, toggleShifterMode );
    
    
    $np_movespeed = 0.1;
    // camera/numpad
    function np_x(%val)
    {
       if(%val > 0)
       {
          $mvYawLeftSpeed = %val * $np_movespeed;
          $mvYawRightSpeed = 0;
       }
       else
       {
          $mvYawLeftSpeed = 0;
          $mvYawRightSpeed = -%val * $np_movespeed;
       }
    }
    function np_y(%val)
    {
       if(%val > 0)
       {
          $mvPitchDownSpeed = %val * $np_movespeed;
          $mvPitchUpSpeed = 0;
       }
       else
       {
          $mvPitchDownSpeed = 0;
          $mvPitchUpSpeed = -%val * $np_movespeed;
       }
    }
    %mm.bindCmd(keyboard, g, "np_x(-1);", "np_x(0);");
    %mm.bindCmd(keyboard, j, "np_x(1);", "np_x(0);");
    %mm.bindCmd(keyboard, y, "np_y(1);", "np_y(0);");
    %mm.bindCmd(keyboard, n, "np_y(-1);", "np_y(0);");
    %mm.bindCmd(keyboard, u, "gamepadZoom(-0.1);", "gamepadZoom(0);");
    %mm.bindCmd(keyboard, m, "gamepadZoom(0.1);", "gamepadZoom(0);");
    %mm.bindCmd(keyboard, h, "beamNGResetCamera();", "");
    %mm.bindCmd(keyboard, b, "beamNGCameraLookback();", "");
    %mm.bindCmd(keyboard, tab,     "beamNGSwitchVehicle(1);", "");
    %mm.bindCmd(keyboard, "shift tab", "beamNGSwitchVehicle(-1);", "");
    %mm.bindCmd(keyboard, c,       "beamNGCameraToggle();", "");
    %mm.bindCmd(keyboard, "ctrl m", "reloadInputMaps();", "" );
    %mm.bindVLuaCmd(keyboard, "shift m", "inputwizard.activate()", "");
    
    
    // assorted
    %mm.bindCmd(keyboard, i, "beamNGResetPhysics();", "");
    %mm.bindCmd(keyboard, r, "beamNGResetPhysics();", "");
    %mm.bindCmd(keyboard, f, "beamNGTogglePhysics();", "");
    %mm.bind(keyboard, p, parkingbrake_toggle);
    %mm.bindCmd(keyboard, "ctrl r", "beamNGReloadCurrentVehicle();", "");
    %mm.bindCmd(keyboard, "shift t", "beamNGReloadSystemLua();", "");
    %mm.bindSLuaCmd(keyboard, "ctrl t", "showAIGUI()", "");
    
    
    %mm.bindCmd(keyboard, "ctrl e", "Canvas.pushDialog(VehicleChooser);", "");
    %mm.bindVLuaCmd(keyboard, "ctrl w", "partmgmt.showGUI()", "");
    
    
    
    
    %mm.bindCmd(keyboard, "ctrl escape", "quit();", "" );
    %mm.bindCmd(keyboard, "escape", "", "handleEscape();");
    
    
    // some toolkit functions
    %mm.bindVLuaCmd(keyboard, "k", "bdebug.setMode('-1')", "");
    %mm.bindVLuaCmd(keyboard, "ctrl k", "bdebug.toggleMeshAlpha(-1)", "");
    %mm.bindVLuaCmd(keyboard, "l", "bdebug.setMode('+1')", "");
    %mm.bindVLuaCmd(keyboard, "ctrl l", "bdebug.toggleMeshAlpha(1)", "");
    
    
    
    
    %mm.bindVLuaCmd(keyboard, "comma", "electrics.toggle_left_signal()", "");
    %mm.bindVLuaCmd(keyboard, "period", "electrics.toggle_right_signal()", "");
    %mm.bindVLuaCmd(keyboard, "slash", "electrics.toggle_warn_signal()", "");
    %mm.bindVLuaCmd(keyboard, "n", "electrics.toggle_lights()", "");
    %mm.bindVLuaCmd(keyboard, "shift b", "input.toggleDynamicSteering()", "");
    
    
    
    
    %mm.bindCmd(keyboard, "f1", "BeamNGHelp.toggle();", "");
    
    
    %mm.bindVLuaCmd(keyboard, "alt f1", "bdebug.setMode(0)", "");
    %mm.bindVLuaCmd(keyboard, "shift f1", "bdebug.setMode(1)", "");
    %mm.bindVLuaCmd(keyboard, "shift f2", "bdebug.setMode(2)", "");
    %mm.bindVLuaCmd(keyboard, "shift f3", "bdebug.setMode(3)", "");
    %mm.bindVLuaCmd(keyboard, "shift f4", "bdebug.setMode(4)", "");
    %mm.bindVLuaCmd(keyboard, "shift f5", "bdebug.setMode(5)", "");
    %mm.bindVLuaCmd(keyboard, "shift f6", "bdebug.setMode(6)", "");
    %mm.bindVLuaCmd(keyboard, "shift f7", "bdebug.setMode(7)", "");
    %mm.bindVLuaCmd(keyboard, "shift f8", "bdebug.setMode(8)", "");
    
    
    %mm.bindVLuaCmd(keyboard, "alt left", "bullettime.set('-20')", "");
    %mm.bindVLuaCmd(keyboard, "alt right", "bullettime.set('+20')", "");
    %mm.bindVLuaCmd(keyboard, "alt up", "bullettime.set(100)", "");
    %mm.bindVLuaCmd(keyboard, "alt down", "bullettime.set(6)", "");
    %mm.bindSLuaCmd(keyboard, "alt u", "gauges.showGUI()", "" );
    
    
    if you have any questions, ask away!

    - IBsenoj.
     
  5. logoster

    logoster
    Expand Collapse

    Joined:
    Sep 5, 2012
    Messages:
    2,083

    that code won't work for the op, the %mm was introduced in a later version, the tech demo uses %movemap or something like that
     
  6. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    818
    well shit, I thought I did well. :(
     
  7. Jacky_is_me

    Jacky_is_me
    Expand Collapse

    Joined:
    Sep 19, 2016
    Messages:
    6
    just use WSAD keys W=Forward S=Backward A=Left D=Right
     
  8. Red exhaust

    Red exhaust
    Expand Collapse

    Joined:
    Dec 8, 2013
    Messages:
    218
    M-M-M-MONSTER BUMP. The last post was in 2014.

    WASD works in free camera, not for rotating the orbit view.
     
  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