Sound effects aren't loading! help please (SOLVED)

Started by nads, Sat 26/07/2008 18:08:24

Previous topic - Next topic

nads

Hey, just need some help with my sound effects in the game. I wanted to have a simple sound effect of someone typing on a keyboard, and I have used the Interactions menu in my room and used "Game - Play Sound Effect" and put the correct number of the sound file (wav file is named SOUND0.wav as well) I have also tried Rebuilding VOX/Music and speech sounds as well and when i test the game, the sound doesnt play and comes with (In room 3): Sound Sample load failure: Cannot load sound 0. I also have put the sound files in the Sounds folder as well. I am using AGS v2.72 as well. can someone tell me what I am (if anything) wrong? please help!

cheers
- nads

Creator

Quote from: nads on Sat 26/07/2008 18:08:24
Sound Sample load failure: Cannot load sound 0.

I think that your trying to play "Sound 0" instead of "Sound 1". Try changing the number in the interaction editor to match with the number of the sound file.

An easier way would be to use the Run Script command and type in:
Code: ags

PlaySound(1); // Plays keyboard typing sound


Much more simple.

nads

sorry what was meant to be sound0.wav i fixed that in the post above.. I really don't know how to use the code those... where would i put it in the script, cause i have just been using the interaction editor for everything.

Khris

Just change the sound's number to something other than 0.

If you want to use the code, add a RunScript action to the event, then press the Edit script button and put the code in the window that opens.

nads

#4
and i just put that

PlaySound(1); // Plays keyboard typing sound

and thats it..

sorry for the dumb questions.. i have never done much/any scripting before.. and it seems abit eek to get stuck into.. but for some of the stuff i want to do in this game i think i am going to have to learn...

EDIT: I just did it and it still doesnt work... mmm.. and i have tried changing the sound numbers as well...

Gilbert

Check whether the "hide known extensions" option (or whatever it is called) is checked in your Windows Explorer settings. If it is checked, uncheck it.

It is possible that the file is named sound1.wav.wav instead of sound1.wav because of this stupid setting (it's Window$ that's so stupid to come with this as a default, not the users). If this is the case, just rename it properly to sound1.wav.

nads

yeah its unchecked.. the file is named correctly and everything.. its really weird.. because i have a music file to play in the background and that works fine! i took out the music to see if it was a clash between to two that was causing a error but it still didnt work... i might try converting them to .mp3 or something. i dont know, this is really bizare

Gilbert

Note also that if it's a WAV file, make sure it's in standard non-compressed Microsoft WAVE format, otherwise it won't work.

Wav files are a bit obsoleted anyway, they're only useful for testing during developing (to save time compressing non-final samples). Try MP3, or much better, OGG, instead.

nads

yeah i might try that...i just recorded sounds viva my mp3 player. so it might be in some compressed wav format or something. I'll give that a try and report back i guess

nads

sorry for double posting but the issue has been solved. i just transfered them to mp3 thanks ilbot Gilbot, KhrisMUC and Creator for putting up with such a simple question!

SMF spam blocked by CleanTalk