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.

Inverted camera fix: look here!

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by SIDWULF, Jun 24, 2014.

  1. SIDWULF

    SIDWULF
    Expand Collapse

    Joined:
    Aug 6, 2013
    Messages:
    24
    Fix for inverted thumbstick camera controls:

    BeamNG.drive\alpha_prerace\scripts\client\inputmaps\

    Code:
    moveMap.bind(%device, thumbrx, "[SIZE=5][B]ID[/B][/SIZE]", $gp_deadzone, gamepadYaw);
    moveMap.bind(%device, thumbry, "[SIZE=5][B]ID[/B][/SIZE]", $gp_deadzone, gamepadPitch);
    "I" next to "D" was the inverse command

    Fix for inverted keyboard camera controls:

    BeamNG.drive\alpha_prerace\scripts\client\inputmaps\keyboard.inputmap:

    Code:
    %mm.bindCmd(keyboard, numpad8, "np_y[SIZE=5][SIZE=2]([/SIZE][B]-1[/B][/SIZE]);", "np_y(0);");
    %mm.bindCmd(keyboard, numpad2, "np_y([SIZE=5][B]1[/B][/SIZE]);", "np_y([SIZE=2]0[/SIZE]);");
    Now you don't have to wait for updated controls in a new patch. Note: The mouse camera controls do not need to be re-inverted because inverted controls for clicking and "dragging" the view around is ideal.

    Increase thumbstick camera control speed:

    C:\BeamNG Drive\BeamNG.drive\alpha_prerace\scripts\client\default.bind.cs

    Code:
    function getGamepadAdjustAmount(%val){
       // based on a default camera FOV of 90'
       return(%val * ($cameraFov / 90) * 0.01) * [SIZE=5][B]30.0[/B][/SIZE];
    }
    Change the number in bold to whatever you want, "30.0" is an ideal value for responsive controls.

    Next up is removing the camera smoothing, I need help for this one.

    Look in:

    BeamNG.drive\alpha_prerace\lua
    BeamNG.drive\alpha_prerace\scripts

    I know the code is buried in there somewhere.
     
    #1 SIDWULF, Jun 24, 2014
    Last edited: Jun 26, 2014
  2. Aboroath

    Aboroath
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    3,804
    Huh.....wonder if this will work for the stock mouse cam. Will investigate. Thank you.
     
  3. JDMClark

    JDMClark
    Expand Collapse

    Joined:
    Aug 10, 2013
    Messages:
    1,347
    Thank god, i hate the inverted controls.
     
  4. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    FIGURED OUT THE KEYBOARD TOO!!!!!

    in scripts/client/inputmaps/keyboard.inputmap:

    About halfway down, you will see the bind functions for numpad keys:

    you will see numpad 8 and numpad 2...one had -1 and the other has 1...just swap the - sign and you are good to go!!! no more annoying camera movement!!!

    %mm.bindCmd(keyboard, numpad8, "np_y(-1);", "np_y(0);");
    %mm.bindCmd(keyboard, numpad2, "np_y(1);", "np_y(0);");

    (^ this is already swapped and done, I just copied my "fixed" map. easier to just swap the "minus" symbol yourself than to copy-paste)

    - - - Updated - - -

    and about the mouse inversion as well...to me, THAT feels natural, as you click and drag the mouse up, its like you are moving the camera upwards, so it gets higher behind the car as it is focused on the car....like a pivot. with the buttons, I press "up (or 8)" and want to look up, and with Inverted camera, it basically would focus opposite of what I think feels natural. same with how GTA did their camera movement, which IMO is the most exceptional camera in any game I have played to date.
     
    #4 SHOme1289, Jun 24, 2014
    Last edited: Jun 24, 2014
  5. SIDWULF

    SIDWULF
    Expand Collapse

    Joined:
    Aug 6, 2013
    Messages:
    24
    LOL!!!
     
  6. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    too easy I know lolol

    - - - Updated - - -

    I am spreading the word so everyone can stop complaining about the camera so we can focus on more importnant things lol like playing comfortably lmao
     
  7. SIDWULF

    SIDWULF
    Expand Collapse

    Joined:
    Aug 6, 2013
    Messages:
    24
    No, seeing GIANT red text as I scrolled down was hilarious.

    /excite
     
  8. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    oh haha well I figured seeing all your helpful fixing's would overshadow any other post in the thread at a quick glance lol
     
  9. SIDWULF

    SIDWULF
    Expand Collapse

    Joined:
    Aug 6, 2013
    Messages:
    24
    I will add that to the first post.
     
  10. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    and I will tone down the red bits a few notches lol...I do see that you moved a zero...I tried that and its making my camera move all crazy, im pretty sure the -1 / 1 switch is all you need:cool:
     
  11. TechnicolorDalek

    TechnicolorDalek
    Expand Collapse

    Joined:
    Dec 6, 2013
    Messages:
    1,026
    Now the camera controls actually match... before up/down was inverted relative to left/right. You're actually re-inverting the up/down motion.
     
  12. Bubbleawsome

    Bubbleawsome
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,887
    Right, but we were used to it. Also, you could invert the left-right too.
     
  13. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    well whatever, the camera fix is back to how it was right before the update. for some reason they inverted it, and I noticed a ton of people complaining about it. I know I was lol
     
  14. SIDWULF

    SIDWULF
    Expand Collapse

    Joined:
    Aug 6, 2013
    Messages:
    24
    I have given up trying to find the code that controls camera smoothing...

    Someone help!
     
  15. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    well, I know that if you go into F11 world editor, there are camera speed settings on a slider, and then in the camera tab on the top menu bar, there (IIRC) is smoothing options and the like...check that out. it wont be hard-coded into the game, but I believe there is an option for that.
     
  16. SIDWULF

    SIDWULF
    Expand Collapse

    Joined:
    Aug 6, 2013
    Messages:
    24

    That is only for world camera in editor and not for player camera in the editor or game. Also you cannot disable world camera smoothing.

    Look in

    BeamNG.drive\alpha_prerace\lua
    BeamNG.drive\alpha_prerace\scripts

    If you want to help me, I know the code is buried in there somewhere.
     
  17. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    woops wrong thread lmao NM
     
  18. IBsenoj

    IBsenoj
    Expand Collapse

    Joined:
    Sep 28, 2013
    Messages:
    818
    lol I was like " this thread aint old! "
     
  19. SHOme1289

    SHOme1289
    Expand Collapse

    Joined:
    Nov 6, 2013
    Messages:
    1,286
    im digging...found some camera related stuff, FOV, speed, etc...nothing for any sort of damping or smoothing yet...
     
  20. SIDWULF

    SIDWULF
    Expand Collapse

    Joined:
    Aug 6, 2013
    Messages:
    24
    wow...you would of think they would fix this is the small patch they just released...
     
  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