Math + Physics + StarCraft = Zoan
I'm trying to add in sound for attacks in a turn based RPG, and some of the wavs are playing at the right time but are also sometimes playing AGAIN a second or two later.
I added a 'display text' trigger to the trigger that is playing the wav to see if it is the trigger running twice, and it turns out that the trigger is NOT running twice, but the wav is still occasionally playing twice (a second or two after it plays once).
Also, the trigger is set for force 1, which contains 4 players. I am hearing the 'phantom wav' while playing alone, and have not tested it with multiple people to see if the problem persists yet.
I'm using 13.6% of the max strings, and am at 319/1024 for individual strings. There are also a butt-load of triggers.. there are 92872 lines in the trigedit thing.
Why is the wav playing twice, and how do I fix it?
An artist's depiction of an Extended Unit Death
I could be mistaken, but I recall hearing about an issue where very short wavs can play twice in SC. The solution is to add some dead space to the end of the wav to make it longer (make it at least one second long). Try giving that a go.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
You should post the triggers for analysis.
Post has been edited 1 time(s), last time on Oct 5 2014, 7:57 pm by NudeRaider. Reason: overlooked a vital part
I'm having trouble replicating your problem. How long is the wav?
None.
Math + Physics + StarCraft = Zoan
It's just less than 0.16 seconds
Attachments:
Math + Physics + StarCraft = Zoan
At the risk of later finding out I'm wrong, I think the problem is fixed. I added some blank noise to the end of the wav, and so far haven't heard it play twice.
Find Me On Discord (Brood War UMS Community & Staredit Network)
I could be mistaken, but I recall hearing about an issue where very short wavs can play twice in SC. The solution is to add some dead space to the end of the wav to make it longer (make it at least one second long). Try giving that a go.
This was the exact same problem I had and that solution worked.
For whatever reason small WAVs do this, and the solution is just to fill out the length of the WAV.
http://www.staredit.net/topic/16343/