Changing automatic aggression

Discussion in 'Content Creation' started by TheInsider, Feb 12, 2018.

  1. TheInsider

    TheInsider
    Expand Collapse

    Joined:
    Sep 8, 2013
    Messages:
    112
    Hey guys,

    I am trying to figure out how to change the automatic aggression info.

    Does anyone know how to change this?

    To clarify I mean the setting you can see when you open Shift Decision Debug.

    Hope someone can help me, thanks in advance.
     
  2. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
  3. TheInsider

    TheInsider
    Expand Collapse

    Joined:
    Sep 8, 2013
    Messages:
    112
    But I don't really see here how to change the shift points or aggression of the transmission. I am also not really a pro in programming so I might just look wrong haha
     
  4. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    That part is what you need to spy on those in game vehicles, there really is not much information about those values around.

    I did test and figure out many of them, but it is so many weeks ago, that I have forgotten that already.

    I do remember than some of the values did work opposite way that you would of though and that affected how quickly aggression adapts, unless I remember wrong.

    At least these parameters do exist:
    "aggressionHoldOffThrottleDelay":2.5,
    "shiftAggression":1,
    "aggressionSmoothingUp":2
    "aggressionSmoothingDown":0.2
    "gearboxDecisionSmoothingUp":2
    "gearboxDecisionSmoothingDown":2

    I did attach a file for hopper, you put it in documents\beamng.drive\vehicles\hopper and then you have new automatic transmission for Hopper.

    Edit values in that file to change how transmission behaves.

    Middle of something right now, so need to write more about values later.
     

    Attached Files:

  5. Michaelflat

    Michaelflat
    Expand Collapse

    Joined:
    Jul 10, 2014
    Messages:
    1,543
    ^^^^
    [it's a good idea to open the shift points app in the UI]
    "aggressionSmoothingUp" will change how fast the agression factor increases [bigger numbers are faster]
    "aggressionSmoothingDown" will change how fast the agression factor decreases [bigger numbers are faster]
    "aggressionHoldOffThrottleDelay" changes how long after you have throttle on the agression drops (floor it and you will see it sticks for a while then decreases factor).
    "gearboxDecisionSmoothing" adjusts how much of a delay there is for the "decision", is not necessary for when you use the aggression factor.

    there are two distinct modes of transmission in the game, the old and the new (electronic / mechanical)
    "useSmartAggressionCalculation" (false/true) is whether it is electronic or not. You can tell between the two when driving as the electronic ones will have that hold delay (floor it and let off and it doesn't shift up for a while) whereas something that doesn't have it will not do the delay (eg. Moonhawk).
     
  6. TheInsider

    TheInsider
    Expand Collapse

    Joined:
    Sep 8, 2013
    Messages:
    112
    Okay thanks guys! I have been playing around a bit now, and I really enjoy it :)

    I only have two question, I am messing around with the ETK transmission and notice there are four points I can change:

    "aggressionSmoothingUp":0.2
    "aggressionSmoothingDown":1
    "gearboxDecisionSmoothingUp":0.2
    "gearboxDecisionSmoothingDown":1

    Whats the diffrence between gearboxdecision and agression?

    And my other question is can I also change the parameters of the Sport setting?
     
  7. Michaelflat

    Michaelflat
    Expand Collapse

    Joined:
    Jul 10, 2014
    Messages:
    1,543
    agression is the thing that calculates the shiftpoints, so works for electronic transmissions (better than decision)
    but on older transmissions (mechanical) you would put the decision in for a lag, so for example where it holds the RPM after you have floored it.

    Think of it like this...
    Aggression is the calculation, so calculates the shiftpoints and the transmission adheres to them
    Decision is the lag time between the "aggression" changing and the transmission changing gear
     
  8. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Aggression is kind of modifier for gearbox decision.

    Gearbox decision is deciding of shifting up or down, while aggression alters of which rpm this gearbox decision happens.

    What Michaelflat writes about lag is that smoothing part of the keywords, how long delay there will be until change it slows down shifting decision or aggression change.

    So if you floor the throttle your throttle input is 1.0, but smoothing is delaying that so smoothed value will take more time to reach 1.0.

    Gearbox decision decides which gear to shift and aggression value alters shift rpm, smoothing adjustment changes delay it takes for these two to change.

    However those are not hold off delays, there is always a change, only speed of change is altered by those values.

    In file I attached, you need to make this change for those parameters to work I believe.
    "useSmartAggressionCalculation":true,

    Sport setting just makes shifting to happen at what is defined by highShiftUp and highShiftdown parameters, you need these in to file for that:
    "highShiftUpRPM":5000,
    "highShiftDownRPM":3500,
     
  9. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    It actually just adds an offset to the calculated aggression. It still blends between low and high shiftpoints based on the final aggreasion value.
     
  10. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Ah, that is good to know.

    Of course that is only when using aggression, so if we set "useSmartAggressionCalculation":false, then it probably is acting bit differently?
     
  11. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    I'd have to look it up but even with the non smart logic it just offsets it I think.
     
  12. ItsTheLittleAcura!

    ItsTheLittleAcura!
    Expand Collapse

    Joined:
    Feb 9, 2018
    Messages:
    116
    Can I program my own custom aggression offset in the shift-logic lua and change it based on the ESC mode?
     
    • Like Like x 2
  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