WIP Beta released Improved keyboard controls

Discussion in 'Utilities and programming' started by CBeTHaX, Feb 4, 2015.

  1. CBeTHaX

    CBeTHaX
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    30
    Improved Keyboard Controls


    I've been driving for some time with the keyboard and I figured out that it would be better if the controls are more smooth.

    Only tested on experimental version 0.3.7.4
    Works best with 4-wheel land vehicles, haven't tested it thoroughly with the pigeon, T75 and airplanes
    Be sure to backup the original files if you do not want to re-download the whole game if you do not want the mod


    How to install:
    1. Backup original game files
      1. Open Steam
      2. Right click on BeamNG.drive [experimental]
      3. Click 'Properties'
      4. Go to 'Local Files'
      5. Click 'Browse Local Files'
      6. Go to 'lua/vehicle'
      7. Rename 'drivetrain.lua' and 'input.lua' respectively to 'drivetrain_original.lua' and 'input_original.lua'
    2. Extract the ZIP to 'lua/vehicle'
    3. Start the game
    4. Enjoy.

    If you do not want the mod, or it doesn't work for some reason here's how to uninstall it:

    1. Open Steam
    2. Right click on BeamNG.drive [experimental]
    3. Click 'Properties'
    4. Go to 'Local Files'
    5. Click 'Browse Local Files'
    6. Go to 'lua/vehicle'
    7. Delete 'drivetrain.lua', 'input.lua', 'input_dynamic_kbd.lua'
    8. Rename 'drivetrain_original.lua' and 'input_original.lua' respectively to 'drivetrain.lua' and 'input.lua'
    9. Start the game
    10. Enjoy the original controls.

    Note: The mod is best for driving around a track, it's not intended for offroading (you could, but the traction control will get annoying fast)

    What's in v0.5:

    • Smooth throttle with zero input on release
    • Simple traction control (still WIP, might not work optimally on very high powered vehicles)
    • Brake with decrease rate and constant increment after 80%; zero input on release
    • Steering with decreased sensitivity and lock based on airspeed (absolute speed) and increase for over/understeer

    Update v0.6:

    • Traction control works on oversteer
    • Decreased steering sensitivity on oversteer, because traction control handles most of it
    • Fixed: Throttle should work when a wheel is missing due to a crash

    Credits to gabester for the original dynamic steering.
     

    Attached Files:

    #1 CBeTHaX, Feb 4, 2015
    Last edited: Feb 4, 2015
  2. monte379

    monte379
    Expand Collapse

    Joined:
    Dec 24, 2013
    Messages:
    789
    Nice I'll try this when I get home from school:D

    - - - Updated - - -

    Do we rename the files so we know the difference between the original controls?
     
  3. CBeTHaX

    CBeTHaX
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    30
    You can rename the original files however you want, even move them to a different folder or zip them if you want. The reason for that is that if you want to reset to the original controls, you'll need them backed up or you'll have to redownload the game (not sure if steam's 'verifiy integrity of game cache' will work in this case)
     
  4. monte379

    monte379
    Expand Collapse

    Joined:
    Dec 24, 2013
    Messages:
    789
    Ok thanks for the reply:)

    - - - Updated - - -

    Will this change the handling if you are using a controller?
     
  5. CBeTHaX

    CBeTHaX
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    30
    No, it's only for a keyboard. I can make a mod for playing with a controller, but after this one is fine tuned. Especially the dynamic steering, as it's a little more complex.
     
  6. monte379

    monte379
    Expand Collapse

    Joined:
    Dec 24, 2013
    Messages:
    789
    Ok thanks for the mod:)
     
  7. Poussin

    Poussin
    Expand Collapse

    Joined:
    Jan 14, 2015
    Messages:
    7
    Awesome... I used it since first start of the game.

    Then i forgot to install it again after a fresh install of the game. I was feeling there was something wrong without this mod !
     
  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