Hello .
ive got a weird problem with the ags engine ...
im trying to put sounds in my game and im getting this kind of error ...
(in room 1) sound sample load failure : cannot load sound 2
here is the script in my dialog topic :
/ dialog script file
@S // dialog startup entry point
return
@1 // option 1
DAVY: "Comment ca va, Ralph ? "
play-sound 1
option-on 2
option-on 3
option-off 1
return
@2 // option 2
DAVY: " t'es un bon chaton "
DAVY: " tu serais meilleur avec des rognons "
play-sound 1
DAVY: "t'ennerves pas , je blaguais "
play-sound 3
DAVY: " un peu "
play-sound 2
option-off 2
return
@3 // option 3
DAVY: "mechant chat !!! "
play-sound 2
option-off 3
return
@4 // option 4
play-sound 2
option-off-forever 4
return
@5 // option 5
play-sound 2
run-script 1
option-off-forever 5
return
@6 // option 6
play-sound 1
stop
can anybody tell me why this is happening ?
PS:
the sound files must be put IN the game folder, right ?
then i must press "rebuild vox files " before saving .
It could be the type of sound file.....wav are normally good but if they are wav(mpg extensions) they cause an error after exiting the game.
erm ... what ? ???
what do you mean by " wav are normally good but if they are wav(mpg extensions) they cause an error after exiting the game. "
whats the difference between both of the types you've put ? they are both .wav sounds arent they ?
and yes i use .wav sounds downloaded from the net ... should i use another type of files for my sounds ?
thanks
He means that it's possible two files can be the same extension but have a different internal structure.
I would suggest you to play it through the AGS PlaySound() command and see if it'll work.
~Cheers
Quote from: foz on Wed 15/10/2003 23:21:18
It could be the type of sound file.....wav are normally good but if they are wav(mpg extensions) they cause an error after exiting the game.
can any one reccomend a free sound editor programme that saves wavs in the right format to avoid this....as yu can tell im having the same problem (i had thought it was to do with an animated background but im working on a game without any animated backgrounds and i get the "explorer has caused an error in "unknown" message when i exit the game..all the sounds work perfectly while the game is running ..and there's no trubble when testing the game from the editor the error only occurs when running the game as a standalone exe..)
if it's the specific type of wav extstension im using then i need to find some way of saving them in the right format..bit curious this wish i knew what the "unknown" was
EDIT:
it wasn't the sound format i had used a graphic for the gui and not imported it correctly , i re imported it with use game palette selected and it seems ok now.
which means that GOLDWAVE (an excellent freeware sound file editor) is compatible with AGS