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

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

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

    0 vote(s)
    0.0%
  1. gt02

    gt02
    Expand Collapse

    Joined:
    Feb 10, 2016
    Messages:
    25
    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
    
    UPDATE: From version 1.2 you no longer need to copy my entire mod to use the ALS in your custom engines, here's how:
    Code:
    "slots": [
        ["type", "default", "description"]
        ["ALS_turbo_diesel","Empty", "Intake"],
    ],
    It is this easy: just create a slot with type "ALS_turbo_diesel" if you're adding it to a diesel engine, "ALS_turbo" otherwise.
    Of course my mod needs to be installed in order to use this method.
    If the vehicle is not one of the stock BeamNG ones, you still need to copy the vehicle specific files over to your mod.
     
    #1 gt02, Sep 11, 2018
    Last edited: Apr 14, 2020
    • Like Like x 11
    • Informative Informative x 1
  2. TedGuijt

    TedGuijt
    Expand Collapse

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

    Harkin Gaming
    Expand Collapse

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

    gt02
    Expand Collapse

    Joined:
    Feb 10, 2016
    Messages:
    25
    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 Gaming

    Harkin Gaming
    Expand Collapse

    Joined:
    Jan 17, 2016
    Messages:
    551
    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:
    1,925
    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:
    1,925
    The ALS does not work 0.15 update, any fix?
     
  8. gt02

    gt02
    Expand Collapse

    Joined:
    Feb 10, 2016
    Messages:
    25
    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
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,957
    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:
    86
    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:
    1,925
    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:
    25
    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:
    1,925
    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:
    25
    Great! I'll start to work on the update ASAP, thank you!
     
    • Like Like x 2
  15. alextreme

    alextreme
    Expand Collapse

    Joined:
    Aug 7, 2014
    Messages:
    1
    can u add particulates edit in your mod :) so we can fake running rich with turbo
     
  16. gt02

    gt02
    Expand Collapse

    Joined:
    Feb 10, 2016
    Messages:
    25
    I sure could, but this mod is not about tuning the engine (AFR, Ignition time, etc..) it's about boost controllers and anti lag. I don't think it would make much sense to implement something like this even though it woludn't be hard...
     
  17. WCKD

    WCKD
    Expand Collapse

    Joined:
    Aug 21, 2020
    Messages:
    1
    How do I equip the boost by speed controller
     
  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