Automobilista 2 Custom Force Feedback - Overview & Recommendations

Discussion in 'Automobilista 2 - General Discussion' started by Karsten Hvidberg, May 30, 2020.

  1. Stakanov

    Stakanov Well-Known Member AMS2 Club Member

    Joined:
    Feb 7, 2020
    Messages:
    594
    Likes Received:
    821
    Very interesting file @Danielkart ... flying over the different values, smoth, etc. of this harmony, I have been sharing the following modification for 3 months:

    (tyre_fl_stretch (* front_tyre_stretch_feel grip_fl FL_stretch angle_d_l wheel_diam_FL 0.5))
    (tyre_fr_stretch (* front_tyre_stretch_feel grip_fr FR_stretch angle_d_r wheel_diam_FR 0.5))


    for me the grip fl_fr function in the front strech tyre is essential to implement and i use in my file long since ;)

    Instead for this.....
    (grip_l (max 0 (- grip_fl (* rear_grip_loss_feel (- 1 grip_rl)))))
    (grip_r (max 0 (- grip_fr (* rear_grip_loss_feel (- 1 grip_rr)))))
    (grip_l (max 0 (- grip_fl (*front_grip_loss_feel (- 1 grip_fl)))))
    (grip_r (max 0 (- grip_fr (*front_grip_loss_feel (- 1 grip_fr)))))

    i don't know if it is correct but I also find this additional code interesting ...,

    EDIT: maybe correct is this...
    (grip_l (max 0 (- grip_rl (* rear_grip_loss_feel (- 1 grip_rl)))))
    (grip_r (max 0 (- grip_rr (* rear_grip_loss_feel (- 1 grip_rr)))))
    (grip_l (max 0 (- grip_fl (*front_grip_loss_feel (- 1 grip_fl)))))
    (grip_r (max 0 (- grip_fr (*front_grip_loss_feel (- 1 grip_fr)))))


    I will deepen o_O or maybe the best option is @Karsten Hvidberg opinion code... :whistle:

    Regards Daniel :)
     
    Last edited: Mar 25, 2022
    • Useful Useful x 2
    • Agree Agree x 1
  2. Danielkart

    Danielkart Well-Known Member

    Joined:
    Jun 25, 2021
    Messages:
    1,286
    Likes Received:
    1,333
    Yes absolutely to implement skakanov. It connects the front axle with the steering
    Regards Stakanov
     
    • Like Like x 1
  3. Stakanov

    Stakanov Well-Known Member AMS2 Club Member

    Joined:
    Feb 7, 2020
    Messages:
    594
    Likes Received:
    821
    I have studied and tested the code, if I have not made any mistakes the correct formula for "GRIP_LOSS_FEEL" should be this:

    (grip_l (max 0 (- grip_fl (*rear_grip_loss_feel (- 1 grip_rl)))))
    (grip_r (max 0 (- grip_fr (*rear_grip_loss_feel (- 1 grip_rr)))))
    (grip_l (max 0 (- grip_rl (* front_grip_loss_feel (- 1 grip_fl)))))
    (grip_r (max 0 (- grip_rr (* front_grip_loss_feel (- 1 grip_fr)))))


    (ie karsten's original plus the other two lines of code for the front)

    this is because the loss of grip at the rear is calculated as the difference between the front and the rear, the coefficient that we insert amplifies or reduces the feeling of loss of the rear ... on the contrary, therefore, the loss of grip front is the opposite, that is the difference between the rear and the front and also here the other coefficient that we insert always measures the intensity but of loss of the front ;-)

    -------------------------------------------------------------

    EDIT: This lines in the file instead with two grip_front_left and right (or if you want with 2 grip_rear) in the same line ....

    (grip_l (max 0 (- grip_fl (*front_grip_loss_feel (- 1 grip_fl)))))
    (grip_r (max 0 (- grip_fr (*front_grip_loss_feel (- 1 grip_fr)))))

    is NOT how mutch LOSS GRIP but how IS the BOOST OF FEEL GRIP, then the formula works but at the opposite you think, then you can change the descriction like this if you want in the file....

    (grip_l (max 0 (- grip_fl (*front_grip_boost_feel (- 1 grip_fl)))))
    (grip_r (max 0 (- grip_fr (*front_grip_boost_feel (- 1 grip_fr)))))

    and the same for the rear
    (grip_l (max 0 (- grip_rl (*rear_grip_boost_feel (- 1 grip_rl)))))
    (grip_r (max 0 (- grip_rr (*rear_grip_boost_feel (- 1 grip_rr)))))


    then if you want you can insert 4 more lines of code and 2 other variables ... that is to say how much you want to increase the sensation of grip at the front and at the rear ... but I do not think it serves or rather I know of redundant ;)

    ----------------------------------------------------------------

    Sorry for my english :(
     
    Last edited: Mar 25, 2022
    • Informative Informative x 3
  4. Danielkart

    Danielkart Well-Known Member

    Joined:
    Jun 25, 2021
    Messages:
    1,286
    Likes Received:
    1,333
    Very interesting Stakanov. No problem is also not my mother tongue. Very cool with front_grip_feel , and interesting. I've tested your combinations before. I think we're on the right track, that the file will be much better
     
    • Agree Agree x 1
  5. Danielkart

    Danielkart Well-Known Member

    Joined:
    Jun 25, 2021
    Messages:
    1,286
    Likes Received:
    1,333
    Man müsste diese 2 Punkte umsetzen. Vielleicht ist es für karsten das nächste Update möglich
     
    Last edited: Feb 14, 2023
  6. Stakanov

    Stakanov Well-Known Member AMS2 Club Member

    Joined:
    Feb 7, 2020
    Messages:
    594
    Likes Received:
    821
    @Danielkart I sent you a test file with this code and other implement ... if you can and you feel like it, tell me what you think ... I need feedback on DD. ;)
     
  7. Danielkart

    Danielkart Well-Known Member

    Joined:
    Jun 25, 2021
    Messages:
    1,286
    Likes Received:
    1,333
     
  8. Danielkart

    Danielkart Well-Known Member

    Joined:
    Jun 25, 2021
    Messages:
    1,286
    Likes Received:
    1,333
    Yes of course i will test it. But I'm not free until tomorrow. Where is your file ? What do you use for a base ?
     
  9. Stakanov

    Stakanov Well-Known Member AMS2 Club Member

    Joined:
    Feb 7, 2020
    Messages:
    594
    Likes Received:
    821
    @Danielkart thanks ... all info are in private message ... the file is WIP but no specific optimization ... then is for all the bases or to modify to your tast ;)
     
    • Like Like x 1
  10. Michael Enright

    Michael Enright Well-Known Member AMS2 Club Member

    Joined:
    Jul 3, 2019
    Messages:
    1,209
    Likes Received:
    335
    So does that mean you replace the top 4 lines with the bottom 4 lines, or add them? Thanks
     
  11. Stakanov

    Stakanov Well-Known Member AMS2 Club Member

    Joined:
    Feb 7, 2020
    Messages:
    594
    Likes Received:
    821
    Hey @Michael Enright I use only the first 4 lines of code ... the other 4 is ok but a little redundant, use only if you want boost the grip in the front or in the rear .... at this moment for me is not necessary but possible

    Then i use only this...
    (grip_l (max 0 (- grip_fl (*rear_grip_loss_feel (- 1 grip_rl)))))
    (grip_r (max 0 (- grip_fr (*rear_grip_loss_feel (- 1 grip_rr)))))
    (grip_l (max 0 (- grip_rl (* front_grip_loss_feel (- 1 grip_fl)))))
    (grip_r (max 0 (- grip_rr (* front_grip_loss_feel (- 1 grip_fr)))))


    With 2 variable in the fle
    (front_grip_loss_feel 0.150) #How much front grip loss decreases feel of grip
    (rear_grip_loss_feel 0.125) #How much rear grip loss decreases feel of grip


    ---------------------------------------------

    Another Advice if you like, after this code ....

    (grip_fl (- 1 slip_fl2))
    (grip_fr (- 1 slip_fr2))
    (grip_rl (- 1 slip_rl2))
    (grip_rr (- 1 slip_rr2))


    Insert this

    (grip_fl (smooth grip_fl grip_tyres_smooth))
    (grip_fr (smooth grip_fr grip_tyres_smooth))
    (grip_rl (smooth grip_rl grip_tyres_smooth))
    (grip_rl (smooth grip_rl grip_tyres_smooth))


    and in the file insert another variable ...

    (grip_tyres_smooth 0.008) #How much smooth the feel of grip on tyres

    Regards Michael
     
    • Like Like x 3
    • Creative Creative x 1
  12. Stakanov

    Stakanov Well-Known Member AMS2 Club Member

    Joined:
    Feb 7, 2020
    Messages:
    594
    Likes Received:
    821
    @easy81 i'm in test ... when i finish i public here ;-)
     
    • Like Like x 2
    • Friendly Friendly x 1
  13. Manolo

    Manolo Member

    Joined:
    Sep 28, 2021
    Messages:
    83
    Likes Received:
    57
    Hey @Stakanov I haven't seen you participate in a long time, I hope everything goes well. ;)

    I have been using the "grip" as recommended by you since january and I am happy to have included it in all the files that Karsten has published to date.lately I have implemented your code for the scrub on 4 distinct wheels and I am not bad, then I do not deny that I have copied some values from the various very kind users.:)

    The front with the grip feels very connected to the road (no float) and with the smooth you regulate the strength of the sensation, I practically use Karsten's latest 5.0.1.3 file with these modifications ... and now I'm curious, what you have in mind...

    regards Manolo
     
    • Like Like x 1
  14. Stakanov

    Stakanov Well-Known Member AMS2 Club Member

    Joined:
    Feb 7, 2020
    Messages:
    594
    Likes Received:
    821
    Hey @Manolo, I read the forum often and as usual the files always go forward, so congratulations and many many thanks to the compilers. ;)
    So let's say that it's okay, I have ups and downs, the organs are in no particular order and therefore often after 15-30 minutes of play I feel on the Disneyworld without paying any ticket, I would say excellent :D
    About the file so I'm going a little slow but I hope to publish it as soon as possible or at the latest in a few days ... I'm just waiting for some feedback to make sure I don't have any anomalies for the user.

    Hi dear
     
    • Friendly Friendly x 2
    • Like Like x 1
  15. Kuku

    Kuku Flying Kiwi AMS2 Club Member

    Joined:
    Aug 30, 2020
    Messages:
    1,635
    Likes Received:
    1,013
    This is very interesting, and inputting into my current use file is promising, and no random pull effect.

    I need to try some fine tuning of tyre resistance and grip loss but time is limited .
    But it definitely offers a progression in the file, I look forward to having more time another day.
    Nice work guys.

    Ps : nice to see you Stakanov.
     
    • Like Like x 2
    • Friendly Friendly x 1
  16. Stakanov

    Stakanov Well-Known Member AMS2 Club Member

    Joined:
    Feb 7, 2020
    Messages:
    594
    Likes Received:
    821
    Hey @Kuku Maddog pleasure reciprocated. ;)

    When you can, in your test you don't forget to put in the code even this in bold for complete grip upgrade.
    (tyre_fl_stretch (* front_tyre_stretch_feel grip_fl FL_stretch angle_d_l wheel_diam_FL 0.5))
    (tyre_fr_stretch (* front_tyre_stretch_feel grip_fr FR_stretch angle_d_r wheel_diam_FR 0.5))


    Within a few one or two days I will publish a somewhat anomalous o_O file but that I like a lot (personal opinion for sure) ... :)
     
    • Like Like x 3
    • Informative Informative x 1
  17. Danielkart

    Danielkart Well-Known Member

    Joined:
    Jun 25, 2021
    Messages:
    1,286
    Likes Received:
    1,333
    The file is mainly for dd wheels, Fanatec dd1/dd2 optimized
    Have fun
    A big thank you to Stakanov for his support and the creative exchange . The custom files turned out fantastic
     

    Attached Files:

    Last edited: Mar 27, 2022
    • Like Like x 4
    • Friendly Friendly x 1
  18. Stakanov

    Stakanov Well-Known Member AMS2 Club Member

    Joined:
    Feb 7, 2020
    Messages:
    594
    Likes Received:
    821
    OK guys, the kart tuning remain WIP or not touch, but the file is now complete, functional and tuned and i attached here this rFuctor 5.0.X.X 4W.GRIP.MOD with also the last original Karsten's file rFuctor 5.1.0.3 for fast comparisation in the game and in Notepad++. ;)

    This time the file is unique for everyone (DD, High or Low End, Gear or Belt) and I have not made any specific optimization for the Logitech bases, indeed the total tuning of the file was made by your values that you mainly use DD bases and good even for me.
    Perhaps only the bump, scrub and tear scales are for my steering wheel G920 but good for all, also I added just a pinch of tightening but it is so small that it might not even be noticed by many DD users and, if you don't like it, you can easily reduce and/or reset them as you wish.
    Under, in the spoiler, you find the technical description. ;)

    ###########################################################
    Name: rFuktor 5.0.X.X 4W.GRIP.MOD
    Mod and Tuned by Stakanov for all wheels

    ###########################################################
    # ADVISES FOR LOGITECH G923/G920/G29

    1) In game setting, select "Custom" with this starting value:
    GAIN 95* - LFB 25 - FX 65 (+/- 10 to taste) - DP (Damping) 15.
    *Then, in the car setting, use +/- % of Gain for car to taste!!!
    2) Logitech HUB Setting
    Last version with default value
    (900° and all sensitivity to 50)
    3) AMS2 Game Menù Setting
    900° - All deadzone to 0 - All sensitivity to 50 except the throttle on range 20-30
    If you use manual clutch try to set also this slide of sensitivity on range 20-30

    # ADVISES FOR OTHER LOW/MED GEAR/BELT WHEELS (Logitech or No)
    1) In game try to start with your usual value or with this starting range-value:
    GAIN 50-95* - LFB 05-25 - FX 35-65 - DP (Damping) 05-15.
    *Then, in the car setting, use +/- % of Gain for car to taste!!!


    # ADVISES FOR DD & HIGHEND WHEELS
    1) In game try to start with your usual value or with this starting range-value:
    GAIN 30-80* - LFB 00-20 - FX 30-60 - DP (Damping) 00-15.
    *Then, in the car setting, use +/- % of Gain for car to taste!!!

    ###########################################################

    Not wanting to write a kilometric post, I make it short, specifying that the characteristics of this file are:
    - Original used file and logical function is a mix beetwen 5.0.1 and the 5.0.1.2, the code below and the value-bases is from last 5.0.1.3;
    - The new Implementation on the front wheels of the Grip function and the insertion of all the other variables and lines of code for its management (smooth effect, grip_loss front and rear, etc);
    - New Code: Added and duplicate all the lines of code to calculate the forces also of the rear of the car when use or even if not utilized (future use);
    - Changes to the lines of code that previously calculated and simulated the rear by taking the values from the front. Now the same lines take the values of the rear physics of the car and if there are two values simultaneously on the front and on the rear, the most relevant or highest is chosen for the outpoot;
    - I specify that the above modifications are only for the calculation of the functions to be sent to Karsten's MOMENTUM RACK which continues to work perfectly as before except for 2 small coefficients and an implementation in the Yaw;
    - The SCRUB are now for 4, one for wheels and not only two for front and rear
    - Little modify to Custom Lock Stop, i don't now if is placebo but use of "wheeldir" seem most correct when you go at the start or at the end of run in the wheel;
    - note for the expert, the file can be modify easy as always, and then you can chage this in what you want (pure 5.0.1, with powerstering or without, etc.), if you don't like something, just overlay your replacement code or value at your tast.
    I exclude the code for the rear which has only been duplicated and I list here the one added and / or modified compared to the original......................

    (bump_weight_scale (/ 500 (/ (max (+ corner_FL corner_FR) (+ corner_RL corner_RR)) 9.8)))
    (brake_weight_scale (/ 500 (/ (max (+ corner_FL corner_FR) (+ corner_RL corner_RR)) 9.8)))

    (grip_fl (smooth grip_fl grip_tyres_smooth))
    (grip_fr (smooth grip_fr grip_tyres_smooth))
    (grip_rl (smooth grip_rl grip_tyres_smooth))
    (grip_rr (smooth grip_rr grip_tyres_smooth))

    (load_df (+ (* 0.66 (min rel_weight_FL rel_weight_FR rel_weight_RL rel_weight_RR)) (* 0.33 (max rel_weight_FL rel_weight_FR rel_weight_RL rel_weight_RR))))

    (grip_l (max 0 (- grip_rl (* front_grip_loss_feel (- 1 grip_fl)))))
    (grip_r (max 0 (- grip_rr (* front_grip_loss_feel (- 1 grip_fr)))))

    (travel_l (+ travel_l (* 0.00010 brake_feel (max 0 FL_long))))
    (travel_r (+ travel_r (* 0.00010 brake_feel (max 0 FR_long))))

    (angle_d_l2 (* angle_d_l 30))
    (angle_d_r2 (* angle_d_r 30))

    (tyre_fl_stretch (* front_tyre_stretch_feel grip_fl FL_stretch angle_d_l wheel_diam_FL 0.5))
    (tyre_fr_stretch (* front_tyre_stretch_feel grip_fr FR_stretch angle_d_r wheel_diam_FR 0.5))

    (rack_momentum_l (* 25 (spring tyre_l 100000 1 1) (max mom_FL mom_RL)))
    (rack_momentum_r (* 25 (spring tyre_r 100000 1 1) (max mom_FR mom_RR)))

    (x (* (if (min 0 x) -1 1) (* (- 1 (/ 1 (+ 1 (* lfb_slider_strength 15 (abs x))))) (+ lfb_slider2 (* (abs x) (- 1 lfb_slider2))))))
    (x (* (if (min 0 x) -1 1) (* (- 1 (/ 1 (+ 1 (* lfb_slider_strength 15 (abs x))))) (+ lfb_slider2 (* (abs x) (- 1 lfb_slider2))))))
    (x (* (if (min 0 x) -1 1) (* (- 1 (/ 1 (+ 1 (* lfb_slider_strength 15 (abs x))))) (+ lfb_slider2 (* (abs x) (- 1 lfb_slider2))))))

    (yaw_l (* yaw_l (max grip_fl grip_rl) (max grip_feel_front grip_feel_rear) (max rel_weight_relaxed_FL rel_weight_relaxed_RL)))
    (yaw_r (* yaw_r (max grip_fr gtip_rr) (max grip_feel_front grip_feel_rear) (max rel_weight_relaxed_FR rel_weight_relaxed_RR)))

    (steer_spring_strength 0.75)

    (rear (+ (* left2 mom_RL2 (if RL_bump_offroad 0 1)) (* right1 mom_RR2 (if RR_bump_offroad 0 1))))
    (scrub_effect (* scrub_scale (+ FL_scrub FR_scrub RL_scrub RR_scrub)))
    (road_effect (* road_rolling_slip_feel 4 (sin road_feel_pos) 0.02 (power kmh 0.5) 0.1 (+ 0.4 (* 1 (abs (* steerPct 1.3))))))

    (road_features (* road_features master_road (* 1.6 (power fx 1.6))))
    (effects (* effects master_effects (* 1.6 (power fx 1.6))))

    (wheel_dir‎‎ (if output 1.0 -1.0))
    (stops (bumpstop wheel_dir 0.15 0.5 0.2 1.0))

    I hope you like, it is obvious that the file can still be developed, tuned, corrected and implemented, but for now for me it represents the best basis (personal opinion for sure) .... thanks to all those users/friends who have had the patience to help me, since I can't do long sessions of tests .... good night to all!!! ;)

    EDIT: I replace the file for typing error ... re-download the file!! ;)
    SORRY!!! :mad::D
     

    Attached Files:

    Last edited: Apr 13, 2022
    • Like x 8
    • Winner x 6
    • Friendly x 2
    • Informative x 1
    • Creative x 1
  19. newtonpg

    newtonpg Active Member AMS2 Club Member

    Joined:
    Dec 29, 2018
    Messages:
    704
    Likes Received:
    216
    Thank you!
    While I'm still fine-tuning the ingame settings, I can say that this is by far the best custom file for my TM-TX.
    Ingame: 70 / 5 / 40 / 5
     
    • Like Like x 1
    • Agree Agree x 1
    • Friendly Friendly x 1
  20. Manolo

    Manolo Member

    Joined:
    Sep 28, 2021
    Messages:
    83
    Likes Received:
    57
    @Stakanov for affection and friendship, unfortunately, I am not impartial and I have known many changes in preview for some time, but know that I am trying in every way to send all the cars out of control, off the road, skidding, I spin, burn out and more. but the coherence of the steering wheel is disarming. o_O
    Seriously, congratulations for me you have outdone yourself. I repeat the GRIP implementation I already knew (the front wheels are now on the road), but the duplication of the formulas for the calculation of the rear forces, the SCRUB on 4 wheels together with the TEAR even on 4 wheels and, not for last, the use of the MAX function in the simultaneous presence of a front and rear force (not to confuse the Karsten's Momentum Rack) IS BRILLIANT. ;)
     
    • Like Like x 2
    • Friendly Friendly x 1

Share This Page