Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sound error #3109

Open
deathking61 opened this issue Jul 26, 2024 · 7 comments
Open

sound error #3109

deathking61 opened this issue Jul 26, 2024 · 7 comments
Labels

Comments

@deathking61
Copy link

so im working on an engine e2 (its working but there are some issues with the new wiremod)

the main issue is sound i have the base sound volume set to 0.5 and when i boost the sound volume goes to 0.80 but when i let go of the boost function the part that changes the volume it will randomly go from the 0.5 volume to 1 and its loud later on if you need it i can post the full sound code for it.

@thegrb93
Copy link
Contributor

Code or a dupe to test with would help

@deltamolfar
Copy link
Contributor

Give us means to reproduce this, as it may be e2 logic flow, not internal error

@unknao
Copy link
Contributor

unknao commented Jul 28, 2024

I don't know if its the same error that the OP is having but the "Recharge2" sound on this stops playing after a few plays.
v1_001.txt

@deathking61
Copy link
Author

deathking61 commented Jul 30, 2024

here is what im using for sound:

MAX_RPM = 12000 #for the sound volume / pitch  
Sound_Volume1 = 0.30 #sound normal
Sound_Volume2 = 0.40 #boosted 
 Sound_main = "@acf_engines/v10_petrolmedium.wav"
 Sound_main2 = "@acf_engines/v10_petrolmedium.wav"
 
    
    function void loadSounds() {
       E:soundPlay("On", 0, Engine_SoundOn:lower())
        E:soundPlay("Off", 0, Engine_SoundOff:lower())
         if (Turbo) {
        }
    }
   
    loadSounds()
   
    runOnLast(1)
}


soundPitch("On", (Engine_RPM / MAX_RPM) * 155 + (80 * Engine_Active))
soundVolume("On",(Engine_Active / 2 + Engine_Volume * 1) * (Key_Alt ? Sound_Volume2 : Sound_Volume1))
 
soundPitch("Off", (Engine_RPM / MAX_RPM) * 155 + (80 * Engine_Active))
soundVolume("Off",(Engine_Active / 2 + Engine_Volume * 1) * (Key_Alt ? Sound_Volume2 : Sound_Volume1))

this is what im using for my engine sounds when i do it like this with the new wiremod it messes up hard. when i revert back to the one im on now the issue is just gone.

@thegrb93
Copy link
Contributor

Which version are you on now?

@deathking61
Copy link
Author

where would i find the version?

@deltamolfar
Copy link
Contributor

where would i find the version?

print(_WIREVERSION) in e2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants