-
Notifications
You must be signed in to change notification settings - Fork 333
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
Fix e2 soundcore & sound emitter from not playing soundscripts & sounds with sound characters. #3125
Conversation
This should be merged, already ran into this bug lol |
@thegrb93 if you are still concerned about the pattern not working, here's an image of it working. |
It's not removing those characters for the string that goes into the sound functions though, just the string that checks if the path exists. |
Also I'm pretty sure sure some non-alphanumerical characters are allowed for file paths. I'm not sure what removing them from the front of the string accomplishes |
who names their sound directories in the way that would purposely break sound characters? |
Let me know if my commit works for ya, and can merge if so |
Nope, sound characters don't work. |
what sound character? |
i tried both ^ and ) |
and what about those doesn't work? |
What are sound characters? Some kind of syntax in the path? |
https://developer.valvesoftware.com/wiki/Soundscripts See the sound characters section. |
Those aren't things the sound-emitter or e2 sound lib should care about. |
And yet it does, why choose to break something that has always worked in e2 and sound emitter before? |
Those should be handled another way, not using the sound path. Valve are fucking morons for doing it that way. You can add some inputs or new logic somewhere that handles them, but wire users shouldn't have to manipulate the sound path like that for different effects. |
Why change something that's worked for years and years with the justification that you can just bloat e2 later to fix the issue? |
Because it should be done in a better way and this incentivizes improving it. |
This is the hand the source engine has dealt us, you don't need to fix what's not broken. |
What effects are actually needed? |
Is there no other way to do those effects in glua? |
It looks like the '?' char was already banned due to crashing or something. I'm surprised the other chars were even allowed. |
So when i try to change something that's backwards compatible (like in #2693) i get told for it immediately but when you do it it's ok? |
It's not as if some new method of controlling sound characters can't coexist with the way sound characters have been used for 10+ years now. |
Everything that doesn't crash the game is well and good. |
The file.Exists change broke it, not me. We need a fix that can verify both the flags and the path. |
Fixes a design oversight introduced by #3122 not accounting for soundscripts & sound paths with sound characters in them.