1. GPU Fatal Error? Intel HD Graphics 620/630 Crashes? Help us solve them!
    Dismiss Notice

WIP Beta released Anti-Lag System

Discussion in 'Content Creation' started by gt02, Sep 11, 2018.

?

It's a good idea to continue developing this mod?

  1. Yes, that's awesome

    97.6%
  2. The dev's are already doing something similar

    2.4%
  3. No, who wants an Anti Lag system

    0 vote(s)
    0.0%
  1. gt02

    gt02
    Expand Collapse

    Joined:
    Feb 10, 2016
    Messages:
    12
    Hi,
    I'm working on an Anti-Lag system (ALS).
    The mod is integrated with the jbeam of the vehicle so you can easlly edit variables without modifing the lua file.

    Code:
    "ALSTime" : 2, //How long the ALS should stay active in seconds
    "ALS" : true, //If false the Anti-Lag System will be completelly disabled
    "ALSExhaustPower" : 180000, //How mutch exhsaust power does the ALS make?
    "ALSPressure" : 32, //The pressure which the turbo should keep while tle ALS is active, (can be an array)
    "ALSInstantLoadDrop" : 0.7, // if the engine's load drops very quickly by 70% the ALS kicks in
     "mainEngine":{
         "turbochargerLuaFileName" = "powertrain/ALSturbocharger"
     } // used to make the game use the custom turbocharger.lua file
    
     
    #1 gt02, Sep 11, 2018
    Last edited: Oct 11, 2019
    • Like Like x 10
    • Informative Informative x 1
  2. TedGuijt

    TedGuijt
    Expand Collapse

    Joined:
    May 10, 2017
    Messages:
    102
    Really nice mod to use in rally cars Good job!
     
  3. Harkin Labs Gaming

    Harkin Labs Gaming
    Expand Collapse

    Joined:
    Jan 17, 2016
    Messages:
    504
  4. gt02

    gt02
    Expand Collapse

    Joined:
    Feb 10, 2016
    Messages:
    12
    I'm aware that devs are developing a two-step system but mine is an anti-lag system so it keeps the turbo spooled up even when you shift gear!

    Thanks for the positive feedback! In about a week you'll be able to use it in every stock BeamNG car and even in the bus o_O!
     
    • Informative Informative x 1
  5. Harkin Labs Gaming

    Harkin Labs Gaming
    Expand Collapse

    Joined:
    Jan 17, 2016
    Messages:
    504
    I know that 2-step and Antilag are different things, but they often go hand in hand. As far as we know, the developers are developing a 2-step rev limiter, but they could also have antilag in the works behind closed doors.
     
  6. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    637
    I have a may be stupid question. What does ALS pressure % means? I simply cannot figure it out how it affect performance. And what's its recommend value%??
     
  7. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    637
    The ALS does not work 0.15 update, any fix?
     
  8. gt02

    gt02
    Expand Collapse

    Joined:
    Feb 10, 2016
    Messages:
    12
    Hi, sorry for the late reply...
    ALS Pressure % indicates the pressure where the ALS System operates, in percentual to the boost pressure of the current gear. You can verify it by revving the engine all the way to readline in second or third gear pressing the cluthc.
    I havn’t had enough time to test the mod in the latest update. I'll test it as soon as possible.
    BTW thanks for the report!
     
  9. Diamondback

    Diamondback
    Expand Collapse
    Moderator
    Staff Member

    Joined:
    Apr 8, 2014
    Messages:
    1,321
    Haven't looked into what exactly you are doing in your mod but the turbocharger.lua got reorganized a bit, not many logic changes but code was moved around etc. You'll most likely will have to port your changes over to the new version.
     
  10. Yota

    Yota
    Expand Collapse

    Joined:
    Mar 10, 2017
    Messages:
    61
    Just noticed this, it disables a lot of the controls of the T series. (airbags and rollback flatbed)
     
  11. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    637
    Suggestion: Make an "altitude compensation" option, increase boost with altitude to make the engine power constant.
     
  12. gt02

    gt02
    Expand Collapse

    Joined:
    Feb 10, 2016
    Messages:
    12
    Hi,
    That's a great suggestion. However, I'm not sure if the altitude in BeamNg affects the engine's power... If it does I'll try to implement such a feature
     
  13. default0.0player

    default0.0player
    Expand Collapse

    Joined:
    Nov 30, 2018
    Messages:
    637
    Altitude in Beam does affect engine power.

    Wastegate IRL is trying to maintain a constant boost pressure above the existing manifold pressure. Thus if you're at sea level and the boost is 1.5bar, the manifold pressure is 2.5bar. When you're at high elevation where the atmospheric pressure is 0.5bar, the manifold pressure would be 2.0bar, the engine only losts 20%power.Where an NA losts it's 50%power.
    However in BeamNG both turbo and NA engine lost the same 50% power if the atmospheric pressure is 0.5bar.

    The pictures above show that both turbocharged and N/A engine lose the same amount(about one third) torque at 2470 meters above sea level
     
    • Like Like x 1
  14. gt02

    gt02
    Expand Collapse

    Joined:
    Feb 10, 2016
    Messages:
    12
    Great! I'll start to work on the update ASAP, thank you!
     
    • 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