WIP Beta released "Forza" steering for keyboard and gamepad

Discussion in 'Utilities and programming' started by LoSboccacc, Mar 12, 2021.

  1. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    23
    what is this?

    understeer limiting steering



    what it does?

    - controls wheel lateral forces and reduces steering when one approaches grip limit
    - works for understeer and oversteer
    - you can still push the car into snap oversteer or p-brake oversteer, doesn't prevent you from countersteering
    - moves the steering faster when you need it* (recentering and fast direction changes)
    - awd special handling: let the car move sideway unimpeded as long as the front has enough grip to realign the car
    - rwd special handling: consider rear wheel slippage when calculating maximum steering


    * requires using the "direct" filter

    AWD handling offroad with keyboard, grip filter, no speed angle limiter*:



    RWD handling on road with keyboard, grip filter, no speed angle limiter:



    *the spheres you se are just debugging aid, pay no attention to them

    what it doesn't?

    doesn't control traction, braking or find the most optimal turning; this might be considered "cheating" as it is, because it directly works off the car physics, as opposed to the in-game esc which works off the car sensors. it's a steering aid to put keyboard and gamepad users on par with steering wheel users, not a full on driving assist package

    why?

    because I don't have money for a wheel, driving with keyboard is ass, people told it was impossible, and I grew annoyed at all of that

    how do I use it?

    download the mod from here, it was kicked out of the repo:
    https://www.dropbox.com/s/aqxd3ntmwmdtia2/inputfilter.zip?dl=1
     
    #1 LoSboccacc, Mar 12, 2021
    Last edited: Aug 3, 2021
    • Like Like x 7
  2. esesel

    esesel
    Expand Collapse

    Joined:
    Feb 18, 2019
    Messages:
    570
  3. Agent_Y

    Agent_Y
    Expand Collapse

    Joined:
    Jul 10, 2020
    Messages:
    6,808
  4. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    23
    ah! sorry about that! will fix
    --- Post updated ---
    update:

    tentatively in mod format

    uses the car weight distribution to pick the most appropriate wheel to limit steering

    filters out deflated, broken or otherwise not turning wheels
     
  5. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    23
    update:

    non linear smoothing - converge to the set point faster, don't vibrate as much

    automatic smoothing reset - super fast direction changes and return to center

    changed around slip calculations, should handle some corner cases (teh eh eh) better

    sample driving on a xbox controller, with "direct" filter and no speed limiting:

     
    #5 LoSboccacc, Mar 13, 2021
    Last edited: Mar 13, 2021
    • Like Like x 1
  6. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    23
    update: lets you countersteer fully when oversteering
     
    • Like Like x 1
  7. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    23
    updated math around maximum allowed angle, should be closer to the limit in more situations. added a better longitudinal slip detection to limit oversteering
     
  8. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    23
    updated to use absolute slip so it should work better offroad. note that aquaplaning breaks it atm (i.e. utah river rally)
     
  9. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    23
    update: fixed handling characteristics for both awd and rwd, fixed water
     
    #9 LoSboccacc, Mar 16, 2021
    Last edited: Mar 17, 2021
  10. PowerstrokeHD

    PowerstrokeHD
    Expand Collapse

    Joined:
    Feb 5, 2021
    Messages:
    1,477
    will this be on the repo
     
  11. P_enta

    P_enta
    Expand Collapse

    Joined:
    Jan 11, 2020
    Messages:
    3,024
    See it’s cool and all but if you have a controller you don’t need this
     
  12. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    23

    define "controller": if you have a wheel, yeah, you don't need any of this. if you have a keybord or a gampad, this is quite better and the difference in driving is substantial; there's no more guesswork in finding the limit, neither costant fiddling with the "speed limit" to make it work every time you change vehicle. you can use throttle to adjust steering as you would with a wheel or real car, even on some of the "bad" real wheel drive cars that love to step out as soon as you hit the gas. see for example the track video, paying attention to the throttle input indicator at corner exit.

    how much close can this get a gamepad to the limit?

    this much:




    except it does it all the time every time.

    as soon as they approve it
     
  13. P_enta

    P_enta
    Expand Collapse

    Joined:
    Jan 11, 2020
    Messages:
    3,024
    controller as in Xbox controller, it’s not just a 0/100 input
     
  14. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    23
    With a Xbox controller you definitely benefit from this, the motion is too small to reliably produce the exact steering input that maximize cornering, especially on fast direction changes.

    Just span the same car you see in the track video above - the ibishu 200bx in track configuration - and try to corner it at full throttle.

    You'll have not to exceed about 10% input not to spin it. You might be able to do it, some of the times, under very controlled conditions. It's very hard to do that every single time, every corner exit, for a whole race, especially since banking and other conditions change how much steering input the car tolerates before spinning.

    This mod removes all the guesswork. You still can use the full input range, but 0-100 is not going from straight to full lock, goes from straight to how much steering the car can tolerate in the current condition. You can still do partial steering, of course, but when you go 100 left, the car won't understeer on corner entry and on corner exit it will become very hard to spin - well, assuming you are at the right speed for the corner you're trying to make: mod won't generate more grip than the car has - but will let you turn confident that you'll be very close to whatever the limit is, without a) having to guess whether it's 9% or 11% of the stick input and b) having to actually produce a reliable partial angle on a controller where every mm of motion produces a significant output variation and c) having to fight the controller own imprecisions and drifts
     
    #14 LoSboccacc, Mar 17, 2021
    Last edited: Mar 17, 2021
  15. Amazing Kestero

    Amazing Kestero
    Expand Collapse

    Joined:
    May 2, 2017
    Messages:
    32
    Hey guys, just want to give you update. What happen to this mod? The mod does not exist anymore. Why? I relied on this mod so much because I'm only use keyboard. Cause my parents didn't want spend money on steering wheel. The Author is gone too?
     
  16. LoSboccacc

    LoSboccacc
    Expand Collapse

    Joined:
    Feb 22, 2016
    Messages:
    23
    admins decided the mod wasn't welcome anymore because apparently modding the input file is forbidden or smth

    there's a copy for 0.22.1 here https://we.tl/t-9rzU2YXK11
     
    • Like Like x 2
  17. Keemo

    Keemo
    Expand Collapse

    Joined:
    Dec 30, 2020
    Messages:
    13
    Is it possible to disable the mod completely from UI app? I mean, if I turn it off, the car will still try to counter-steer a little. Only fix is disabling the mod completely, and when needed, enable it again. It would be nice if it would disable completely using UI app,
     
    • Agree Agree x 2
  18. StinchinStein

    StinchinStein
    Expand Collapse

    Joined:
    Jul 16, 2014
    Messages:
    736
    Pretty sure they wouldn't forbid you from upload the ZIP file on this thread.
    If you tried to upload the mod to the repository, however, they denied it because it modifies core game files.
    upload_2021-7-8_13-21-34.png
     
    • Agree Agree x 1
  19. motoxalex

    motoxalex
    Expand Collapse

    Joined:
    Jul 9, 2021
    Messages:
    2
    Continuing this question, is it possible to remove the counter-steer feature all together? I've poked around the lua but couldn't find any way to disable it.
     
    • Agree Agree x 1
  20. Amazing Kestero

    Amazing Kestero
    Expand Collapse

    Joined:
    May 2, 2017
    Messages:
    32
    But can you still update it for 0.23? Just post it in this forum. I really need this mod because I have no steering wheel.
     
  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