Page 1 of 1
Problem with my sound file
Posted: Tue Aug 18, 2020 7:22 am
by r3v3n93
A sound of my project doesn't play.
A description of my sound is:
it is .wav File
it plays perfectly when I press "Play" on Slade3
its name is less than 8 words
the other sounds work fine.
https://i.imgur.com/7g86aLN.png
https://i.imgur.com/vhOCQV5.png
Re: Problem with my sound file
Posted: Tue Aug 18, 2020 8:11 am
by wildweasel
Try pulling down the console in-game and typing in playsound Weapons/Walther. If the sound plays, then the problem may be with whatever code is invoking the sound (perhaps a typo). If the sound does not play, there might be something strange with the format you've saved it in, and we'd have to see the sound itself to know more.
Re: Problem with my sound file
Posted: Tue Aug 18, 2020 8:17 am
by Jarewill
Since it's in a .pk3 archive, include a patch to the sound file.
For example:
Code: Select all
weapons/walther "sounds/Walther.wav"
Don't forget to also include the file extension (.wav) if it has one.
Re: Problem with my sound file
Posted: Wed Aug 19, 2020 4:46 am
by MFG38
Jarewill wrote:Since it's in a .pk3 archive, include a patch to the sound file.
For example:
Code: Select all
weapons/walther "sounds/Walther.wav"
That shouldn't be necessary if the file is in the root of the sounds/ folder, though, which it is in this case. My guess is that it's a problem with the actual sound file.
Re: Problem with my sound file
Posted: Wed Aug 19, 2020 5:19 am
by r3v3n93
Jarewill wrote:Since it's in a .pk3 archive, include a patch to the sound file.
For example:
Code: Select all
weapons/walther "sounds/Walther.wav"
Don't forget to also include the file extension (.wav) if it has one.
It worked! Thank you so much.