Outdated Turbo simulation

Discussion in 'Programming' started by Max98, Aug 25, 2015.

Thread Status:
Not open for further replies.
  1. Max98

    Max98
    Expand Collapse

    Joined:
    Aug 18, 2012
    Messages:
    47
    Hello there :eek:..

    I've been playing BeamNG and I got this idea: Why not try to get the Turbo Code from RoR into BeamNG:


    I'll maybe release my edits when I can manage to get better results.

    For the moment, you just set:
    maxTurboRpm
    turboInertiaFactor

    And a "turbocurve" like this for the PSI amount at X turbo RPM (note that 1psi = 6% more power):
    Code:
       
    "turbocurve":[               
        ["trpm", "psi"]
        [0, -3],
        [50000, 5],
        [100000, 8],
        [200000, 17],
    ],
    
    And it simulates:
    • A turbo (???)
    • Power added to the engine
    • Negative boost
    • Turbo whistle at idle

    Imo this way it's more realistic than the hacky way I did it with RoR, as you have more control over everything.

    Release v1: Turbo-simulation
     
    #1 Max98, Aug 25, 2015
    Last edited by a moderator: Oct 21, 2015
  2. Josh

    Josh
    Expand Collapse

    Joined:
    Jul 21, 2013
    Messages:
    1,082
    This would be a awesome feature.
     
  3. jjjjhorton

    jjjjhorton
    Expand Collapse

    Joined:
    Jul 30, 2015
    Messages:
    21
    Amazing
     
  4. randomshortguy

    randomshortguy
    Expand Collapse

    Joined:
    Aug 9, 2013
    Messages:
    1,562
    Yes please. While we may not have different engine sounds we at least need boost.
     
  5. Max98

    Max98
    Expand Collapse

    Joined:
    Aug 18, 2012
    Messages:
    47


    Starting on the Blow off valve here.
     
    #5 Max98, Aug 26, 2015
    Last edited by a moderator: Oct 21, 2015
  6. NistingurA

    NistingurA
    Expand Collapse

    Joined:
    Nov 22, 2013
    Messages:
    2,092

    GG :D Great work so far. Try to make more different sounds like the one from the Cadilac escalde HERE: https://www.youtube.com/watch?v=AvceE22RPWs 12:02

    its german but ... The blow off valve XD "Like a raptor"
     
  7. Royal_Stig

    Royal_Stig
    Expand Collapse

    Joined:
    Apr 12, 2014
    Messages:
    92
    Damn son.

    Seroiuosly though, this is amazing!
     
  8. SuperNoob05

    SuperNoob05
    Expand Collapse

    Joined:
    Jan 4, 2015
    Messages:
    1,289
    The sounds alone are already enough for me to cry due to too much awesomeness.
    I just love the sounds turbos make, espacially the blow off valves, they sound amazing.
     
  9. JackAttak

    JackAttak
    Expand Collapse

    Joined:
    Sep 12, 2013
    Messages:
    567
    Aww yeah. I need some fu-tu-tu in my BeamNG.
     
  10. Max98

    Max98
    Expand Collapse

    Joined:
    Aug 18, 2012
    Messages:
    47
    Some progress here:

    PHP:
        "turbopressure":[
                    [
    "tprpm""psi"]
                    [
    0, -3],
                    [
    500003],
                    [
    1000009],
                    [
    12000014],
                    [
    15000023],
                    [
    16000025],
                    [
    17000030],
                    [
    20000035],
        ],
        
    "turbointeria":[
                    [
    "tirpm""tinertia"]
                    [
    00.7],
                    [
    500000.9],
                    [
    1100001],
                    [
    1650000.8],
                    [
    2000000.5],
                    [
    250000, -1],
        ],
    I've added the "turbointeria" curve section to try to simulate a much more realistic turbo inertia line and that actually does help a lot.

     
    #10 Max98, Aug 31, 2015
    Last edited by a moderator: Oct 21, 2015
  11. NGAP NSO Shotgun Chuck

    NGAP NSO Shotgun Chuck
    Expand Collapse

    Joined:
    Mar 6, 2015
    Messages:
    1,414
    What about boost being dependent on throttle?
     
  12. Max98

    Max98
    Expand Collapse

    Joined:
    Aug 18, 2012
    Messages:
    47
    What do you mean by "dependent on throttle"?
    This is not a supercharger, this is a turbocharger, and a turbocharger makes boost depending on the exhaust *power* of the engine.
     
  13. randomshortguy

    randomshortguy
    Expand Collapse

    Joined:
    Aug 9, 2013
    Messages:
    1,562
    This should really be officially in the game. Perhaps send a message to tdev when you're finished it, and maybe it can get put in the game.
     
  14. NGAP NSO Shotgun Chuck

    NGAP NSO Shotgun Chuck
    Expand Collapse

    Joined:
    Mar 6, 2015
    Messages:
    1,414
    I may be wrong but aren't wastegates usually set to bleed off most or all boost at lower throttle levels for various reasons?
     
  15. Max98

    Max98
    Expand Collapse

    Joined:
    Aug 18, 2012
    Messages:
    47
    Actually, if I'm not wrong, wastegates are used to bleed exhaust *power* (the turbine side) to not let the turbo go over a precisely set limit of pressure. (To not overload the engine and.. boom)
     
  16. NGAP NSO Shotgun Chuck

    NGAP NSO Shotgun Chuck
    Expand Collapse

    Joined:
    Mar 6, 2015
    Messages:
    1,414
    That's exactly what I was thinking, I just couldn't find the right words. Although, on further thought, I was wrong on the part-throttle thing, or more right for the wrong reasons. Wouldn't there just be less exhaust at part throttle, resulting in slower spool and less boost?
     
  17. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,960
    Pretty much
     
  18. Calais

    Calais
    Expand Collapse

    Joined:
    Jan 12, 2014
    Messages:
    418
    This is all I ask for.

     
    #18 Calais, Sep 1, 2015
    Last edited by a moderator: Oct 21, 2015
  19. Ukkone...

    Ukkone...
    Expand Collapse

    Joined:
    Aug 5, 2013
    Messages:
    96
    Niiice work, cant wait to have it in game !
     
  20. Max98

    Max98
    Expand Collapse

    Joined:
    Aug 18, 2012
    Messages:
    47
    Looks like you guys are liking this, so here it is.

    How to add to your car:

    Add these lines to your engine jbeam file.
    PHP:
        "turbo": {
                    
    "engopRPM":1500,
                    
    "maxRPM":200000
        
    },
        
    "turbopressure":[
                    [
    "tprpm""psi"]
                    [
    0, -3],
                    [
    500003],
                    [
    1000009],
                    [
    12000014],
                    [
    15000023],
                    [
    16000025],
                    [
    17000030],
                    [
    20000035],
        ],
        
    "turboinertia":[
                    [
    "tirpm""tinertia"]
                    [
    00.7],
                    [
    500000.9],
                    [
    1100001],
                    [
    1650000.8],
                    [
    2000000.5],
                    [
    250000, -1],
        ],
    engopRPM: Engine's RPM at which the turbo starts to spool up. Min value: 0, Max value: Max Engine RPM
    maxRPM: Turbo's max rpm.

    Edit them to your tastes and have fun.

    How to install:

    Before installing this mod, you might need to backup your game files because it might break something.
    Drop all the files on the game's root. (C:/Program Files/Steam/steamapps/common/BeamNG.drive)

    I'm releasing this under the "ISC" license.

    This does not work for 0.4.2.0
     
    #20 Max98, Sep 1, 2015
    Last edited: Nov 29, 2015
Thread Status:
Not open for further replies.
  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