Solved Boost by gear feature

Discussion in 'Mod Support' started by Ai'Torror, Sep 15, 2018.

  1. Ai'Torror

    Ai'Torror
    Expand Collapse
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,547
    Hi!
    Since I am now trying to redo my V10 Car Pack, I decided to give the newly implemented Boost By Gear feature a go. I can't find any reference on how to use it, searching for it in base vehicles did not help as they do not use it. Also wiki is kinda outdated, so no luck over there.
    Could someone share any ideas on how can you actually use said feature?
     
  2. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    You need to define the Wastegate pressures as an array instead of a single float, one number per gear (same way the gear ratios are defined for example)
     
    • Informative Informative x 2
  3. Ai'Torror

    Ai'Torror
    Expand Collapse
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,547
    I've tried that, but didn't have any success. Could you give me some sort of an example?
     
  4. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Arrays should be like this, first is a heading, can't remember correct keywords right now though:
    [R,N,1,2,3,4,5,6]
    boostbygearthing:[0,0,1,2,3,4,5,6],
    gearRatios:[-1,0,6,5,4,3,2,1],

    Of course you need some numbers which will make sense there, but that is what is an array in variable definition and I guess it should work.
     
  5. Ai'Torror

    Ai'Torror
    Expand Collapse
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,547
    So what I found out the boost by gear feature uses wastegateStart and wastegateRange, but wastegateStart only gives me ability to set the start of wastegate, but that would mean wastegate limit would still need to be set up for all gears at once?
    I'll experiment a bit with it once I get back home.
    The thing which I need are the key words tho.
     
  6. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Without testing, I would guess it goes so that you set wastegateStart as an array for each gear, then also set wastegateRange for each gear, then game would do start+range = limit, so you would not set limit at all?
     
  7. Ai'Torror

    Ai'Torror
    Expand Collapse
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,547
    oh so that is how the Range thing goes :D I tried to do it old way with Start and Limit :D
    --- Post updated ---
    I kinda got it working in a way that it doesn't produce any boost at 1st gear, but the game starts to have issues calculating clutch torque as well as the boost isn't getting limited in any gear other than 1st.
    Code:
     "wastegateStart":[0, 2, 2, 4, 6, 8, 15, 18]
           
     "wastegateRange":[2, 2, 2, 2, 2, 2, 2, 2]
    
    --- Post updated ---
    and using
    Code:
    "wastegateStartPerGear":[0, 2, 2, 4, 6, 8, 15, 18],
    "wastegateRangePerGear":[2, 2, 2, 2, 2, 2, 2, 2],
    
    results in no boost at any gear
     
  8. Dayz Me Rollin'

    Dayz Me Rollin'
    Expand Collapse

    Joined:
    Dec 8, 2016
    Messages:
    794
    Got it working by doing this

    upload_2018-9-18_0-25-37.png
    works flawlessly so far

    ignore the typos in the descriptions lol
     
    • Informative Informative x 2
  9. Capkirk

    Capkirk
    Expand Collapse

    Joined:
    Nov 19, 2017
    Messages:
    673
    Boost per gear only works in forwards gears, not neutral or reverse.
     
    • Informative Informative x 1
  10. Ai'Torror

    Ai'Torror
    Expand Collapse
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,547
    Thanks! Will give it a shot today.
     
  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