Immersive Vehicles (Formerly Transport Simulator)

Immersive Vehicles (Formerly Transport Simulator)

4M Downloads

Faulty "sounds": code-block queueing when using same sound file twice

SnailPerson opened this issue ยท 1 comments

commented

Shitty title but you know the issue....

To view the "blinker issue" -> https://discord.com/channels/232316230852280320/289084393442639872/1129859557238259743

The "wheel_skidding issue":
There is a block of code that makes the wheel screech when slipping and a
second block that makes the wheel screech when braking while moving quickly.
take note, both use the same file but one comes from coremod and one from OCPs assets.

If i do some drifts, the skidding noise should be heard perfectly fine, which it does.
Bildschirmfoto 2023-07-15 um 21 47 26

Bildschirmaufnahme.2023-07-15.um.21.50.40.mov

But if i now make both blocks use the same sound-file from OCPs assets instead, this happens:
Bildschirmfoto 2023-07-15 um 21 51 27

Bildschirmaufnahme.2023-07-15.um.21.53.09.mov

so for whatever reason, if two blocks of code share the same targeted sound file, the one breaks the other or both break completley

Your response:
"I know why that happens. It's because I check the first block, see the sound should be playing, and then check the second block, see the sound shouldn't be playing, and it is playing, and then I stop it. I don't check sounds against the JSON that spawned them. Please ticket."

commented

Addressed in 22.12.0.