Higher idle RPM for cold engines

Discussion in 'Programming' started by charl, Apr 7, 2023.

  1. charl

    charl
    Expand Collapse

    Joined:
    Aug 12, 2016
    Messages:
    96
    I made an LUA controller to implement what's in the title. Very simple, simulates higher idle RPMs for cold engines. It can simulate older engines, where there is just a set high idle that goes away after you shift into gear or press the gas, or goes down once the coolant is warm, it is quite versatile and can behave various ways. Or, it can simulate a slowly lowering idle RPM related to temperature, with it still raised in gear but less. Just download it and try it out if you are curious. This does not apply to all vehicles- not a full mod! Only applies to Gavril V8 engines, and you will have to go to the parts selector and change the ECUs to ones with "smart idle" in the title. I did this on my laptop so I can't screen record it but this is basically a proof of concept I did for fun, I tried to make a mod that did the same thing years ago when I was like 14 that was way crappier and modified game files, before I discovered the goodness of LUA controllers. I have several other cool LUA proof of concepts on my desktop at home for BeamNG.drive.
    upload_2023-4-6_21-13-22.png
    In order to use this, put the zip file in your mods folder. I made some ECUs for the Gavril V8 engines that implement this. Also, if you open the zip file and go to "/vehicles/common/pickup/pickup_ecu.jbeam" there is a part called "pickup_engine_v8_ecu_demo" that has comments next to the LUA controller parameters explaining the different parameters. The smart-idle "Late ECU" performs differently with cold engines than the older "Stock ECU" for example.

    Also, you will only notice anything if you have "start vehicle engine preheated" turned off, because otherwise the engines are already warm.

    If anybody wants to use this in a mod, feel free. I posted this with hopes that the game developers will see it and take this and implement something similar into the game someday :)

    Original April 6th 2023. Updated June 7th 2024 at request of a modder
     

    Attached Files:

    #1 charl, Apr 7, 2023
    Last edited: Jun 7, 2024
    • Like Like x 3
  2. TMccanna

    TMccanna
    Expand Collapse

    Joined:
    Jan 16, 2022
    Messages:
    1,187
    interesting concept
     
  3. MrRadYT

    MrRadYT
    Expand Collapse

    Joined:
    Jan 18, 2023
    Messages:
    205
    So is it OK if I use this in my new engine mods? If not, thats OK, and if yes, I'll give you credit. I just wanted to double check and just be sure.
     
  4. charl

    charl
    Expand Collapse

    Joined:
    Aug 12, 2016
    Messages:
    96
    Sure, go right ahead.
     
  5. MrRadYT

    MrRadYT
    Expand Collapse

    Joined:
    Jan 18, 2023
    Messages:
    205
    Thank you so much! I've been looking for something like this for ages, and this was exactly what I needed. Thanks so much again!
     
  6. charl

    charl
    Expand Collapse

    Joined:
    Aug 12, 2016
    Messages:
    96
    You’re welcome. I’m glad I wasn’t the only one wanting such things in BeamNG.drive
     
  7. wgirard4

    wgirard4
    Expand Collapse

    Joined:
    Feb 16, 2013
    Messages:
    35
    Nice works exactly like I expected it to :)
     
    • Like Like x 1
  8. xpogosam

    xpogosam
    Expand Collapse

    Joined:
    Jun 19, 2020
    Messages:
    53
    Hey!

    This is an incredibly cool concept. I've been playing around with it for one of my mods, and I was wondering if you'd be interested in working on it again? I have a very basic understanding of how LUA works, but I think adding factors for added engine load, time override, and adjusting the "idleRPMStartCoef" (which affects how much it revs up at idle) would significantly increase the realism.

    If you're interested, shoot me a message on Discord. My username is the same there as it is here.

    Thanks!

    -xps
     
    • Like Like x 1
  9. charl

    charl
    Expand Collapse

    Joined:
    Aug 12, 2016
    Messages:
    96
    I’m home from college and have time to work on it today, this weekend, and many other days. I just added you on Discord.
     
  10. charl

    charl
    Expand Collapse

    Joined:
    Aug 12, 2016
    Messages:
    96
    Updated and added requested features
     
  11. punkyb

    punkyb
    Expand Collapse

    Joined:
    Jul 9, 2024
    Messages:
    3
    To add to this. When coolant temp is low in addition to a high idle cars with automatic transmissions often alter their behaviour by holding onto gears much longer, refraining from locking the converter and avoiding engagement of the overdrive. It's all to get the engine warmer and more efficient as quick as possible. At operating temperature after a certain time of idling some engines lower their idle speed for efficiency too. I have no idea of what can or cant be implemented but thought it was worth expanding on this idea
     
  12. charl

    charl
    Expand Collapse

    Joined:
    Aug 12, 2016
    Messages:
    96
    It would probably be best to make this a separate LUA controller since these features would only apply to some engine setups, and it would get complicated fast. But maybe I will try it within the next few weeks, and if not feel free to go ahead.
     
  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