Car enginesound json TurboRPM value does not increase when driving.

EmperorOfFinland

Registered
So earlier today when i was doing work with engine json files i noticed that the TurboRPM variable stays at 0rpm instead of increasing when turbo pressure and turbo spools up.

so this means that all json code that relies on getting the value to increase to 70k for example dont work. but when i edit the sound on moddev and spin the dial slider the sounds do work if i manually increase the TurboRPM value so the underlying code is working as expected like it worked before. but the car itself is unable to increase it. the turbo works as expected since the dash turbo dial increases and the power of the engine increases too. but for some reason the TurboRPM value does not increase or decrease when turbo spools up.

Functionally this means that all turbo engine sounds that rely on that value increasing dont work so there is multiple mods broken by this. most noteably my own mod and the F1 1986 Historical Edition cars. the TurboRPM value does not work on retail or on moddev.
 
Here is the code for the turbo to replicate for bugfixing

Inside sound


Code:
"multi": {
              "name": "turbo",
              "volume": {
                "key": "turboRPM",
                "value": [[0,0,0],[700000,0.6,-0.2],[140000,0.74,-0.2]]
              },
              "position": [0.35,0.18,0.3],
              "effect": "engineOpen",
              "filter": "engine",
              "events": [
                {
                  "loop": {
                          "sample": "Sounds\\F1_1982\\Turbo\\Turbo_Whistle.wav",
                          "volume": {
                            "key": "turboRPM",
                            "value": [[0,0,0],[15000,0.5,0.2],[75000,0.27,0],[170000,0.12,0]]
                          },
                          "pitch": {
                            "key": "turboRPM",
                            "value": [[0,0,0],[50000,1,0],[100000,2,0],[150000,3,0]]
                          }
                        }
                      },
                {
                  "loop": {
                    "sample": "Sounds\\F1_1982\\Turbo\\Turbo_Hiss.wav",
                    "volume": {
                      "key": "throttle",
                      "value": [[0,0.2,0],[1,0.45,0.314]]
                    },
                    "pitch": {
                      "key": "turboRPM",
                      "value": [[0,0.7,0],[125000,1.0,-0.3]]
                    }
                  }
                }
                ]
            }
          },
          {
            "multi": {
              "name": "turboDump",
              "volume": 1.0,
              "pitch": {
                "key": "turboRPM",
                "value": [[10000,0.3,0],[90000,1.5,-0.2]]
              },
              "position": [0.35,0.3,0.3],
              "effect": "engineOpen",
              "filter": "engine",
              "events": [
                {
                  "burst": {
                    "sample": "Sounds\\F1_1982\\Turbo\\Turbo_Dump_1.wav",
                    "volume": {
                      "key": "turboVel",
                      "value": [[0,0,0],[0.02,0.1,0],[0.30,0.7,0]]
                    }
                  }
                },
                {
                  "burst": {
                    "sample": "Sounds\\F1_1982\\Turbo\\Turbo_Dump_2.wav",
                    "volume": {
                      "key": "turboVel",
                      "value": [[0.12,0,0],[0.30,1,0]]
                    }
                  }
                },
                {
                  "burst": {
                    "sample": "Sounds\\F1_1982\\Turbo\\Turbo_Dump_2.wav",
                    "volume": {
                      "key": "turboVel",
                      "value": [[0.24,0,0],[0.40,1,0]]
                    }
                  }
                }
              ]
            }
          }
        ]
      }
    },



Outside sound

Code:
            "multi": {
              "name": "turbo",
              "volume": {
                "key": "turboRPM",
                "value": [[0,0,0],[700000,0.6,-0.2],[140000,0.74,-0.2]]
              },
              "position": [0.35,0.18,0.3],
              "events": [
                {
                  "loop": {
                    "sample": "Sounds\\F1_1982\\Turbo\\Turbo_Whistle.wav",
                    "volume": {
                      "key": "turboRPM",
                      "value": [[0,0,0],[15000,0.5,0.2],[75000,0.27,0],[170000,0.12,0]]
                    },
                    "pitch": {
                      "key": "turboRPM",
                      "value": [[0,0,0],[50000,1,0],[100000,2,0],[150000,3,0]]
                    }
                  }
                },
                {
                  "loop": {
                    "sample": "Sounds\\F1_1982\\Turbo\\Turbo_Hiss.wav",
                    "volume": {
                      "key": "throttle",
                      "value": [[0,0.2,0],[1,0.45,0.314]]
                    },
                    "pitch": {
                      "key": "turboRPM",
                      "value": [[0,0.7,0],[125000,1.0,-0.3]]
                    }
                  }
                }
              ]
            }
          },
          {
            "multi": {
              "name": "turboDump",
              "volume": 1.0,
              "pitch": {
                "key": "turboRPM",
                "value": [[10000,0.3,0],[140000,1.5,-0.2]]
              },
              "position": [0.35,0.3,0.3],
              "events": [
                {
                  "burst": {
                    "sample": "Sounds\\F1_1982\\Turbo\\Turbo_Dump_1.wav",
                    "volume": {
                      "key": "turboVel",
                      "value": [[0,0,0],[0.05,0.1,0],[0.30,0.7,0]]
                    }
                  }
                },
                {
                  "burst": {
                    "sample": "Sounds\\F1_1982\\Turbo\\Turbo_Dump_2.wav",
                    "volume": {
                      "key": "turboVel",
                      "value": [[0.12,0,0],[0.30,1,0]]
                    }
                  }
                },
                {
                  "burst": {
                    "sample": "Sounds\\F1_1982\\Turbo\\Turbo_Dump_2.wav",
                    "volume": {
                      "key": "turboVel",
                      "value": [[0.24,0,0],[0.40,1,0]]
                    }
                  }
                }
              ]
            }
          }
        ]
      }
    }
  ]
}
 
Last edited:
so to my understanding it has been around since the update before that time. it was working still when i originally made the files and the edit dates for my files are between 27.2.2023 and 25.3.2023 so it broke between this bug report and that time. and i have my guess that it was cause of a patch since the underlying code for the sound works but the car engine is somehow unable to raise the turborpm value on the sound side but the turbo otherwise works as normal.

It might be related to the same problem that some of the 1986 mod turbos stopped working on the old versions so there should be nothing wrong on the game side. its just that the game is unable to produce the turbo rpm value for the sound side since the only reason why the sound does not work is that the TurboRPM value does not increase since the sound otherwise works when its increased manually on the moddev UI so this means that the underlaying code is working as intended and i have not changed it at all since it was originally working and then it stopped working.

The video clearly shows the way to reproduce the bug and my guess why it does not work. This has also caused my upshift backblasts not work as well since they rely on the same TurboRPM value so it only happens when turbo is spooled.

And this bug is not yet fixed on release candinate either.
 
Last edited:
It might be related to the same problem that some of the 1986 mod turbos stopped working on the old versions so there should be nothing wrong on the game side. its just that the game is unable to produce the turbo rpm value for the sound side since the only reason why the sound does not work is that the TurboRPM value does not increase since the sound otherwise works when its increased manually on the moddev UI so this means that the underlaying code is working as intended and i have not changed it at all since it was originally working and then it stopped working.

It just want to clarify that it's definitely not related to the old '86 mod engine issue. Firstly that is simply a formatting issue with the enigne.ini and relates only to that depreciated content. But mainly, reagarding the cars we are talking about (the ones with the sound issue) are completely separate and don't share the same physics files - they were built from scratch - including the engine.ini and the new sound.json. The issue is not engine related - it's simply that the TurboRPM sound variable has been made inactive.

I look forward to it being fixed as I used TurboRPM variable to modulate a lot of parameters, taking advantage of the new sound engine.
 
Back
Top