Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Wavs are playing twice! (Phantom Wavs?)
Wavs are playing twice! (Phantom Wavs?)
Oct 5 2014, 3:16 am
By: Zoan  

Oct 5 2014, 3:16 am Zoan Post #1

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?



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Oct 5 2014, 3:22 am Roy Post #2

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.




Oct 5 2014, 2:10 pm NudeRaider Post #3

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




Oct 5 2014, 4:26 pm Sacrieur Post #4

Still Napping

I'm having trouble replicating your problem. How long is the wav?



None.

Oct 5 2014, 5:37 pm Zoan Post #5

Math + Physics + StarCraft = Zoan

It's just less than 0.16 seconds

Attachments:
Hit.wav
Hits: 2 Size: 13.77kb



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Oct 5 2014, 6:46 pm Zoan Post #6

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.



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Oct 6 2014, 4:09 pm Oh_Man Post #7

Find Me On Discord (Brood War UMS Community & Staredit Network)

Quote from Roy
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/




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: DiearAnother, Moose