Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: viktor on Sat 08/05/2004 20:54:34

Title: problem with musik
Post by: viktor on Sat 08/05/2004 20:54:34
First of all excouse my spellin becouse i'm not english. Im slovene  ;D
I looked in all the manuals and all the FAQ-s and I still don't get it.
Maybee it's becouse the manuals are in english  :P
For instance I have a stereo in a room and when I interact with it I want it to play musik. How do I do that. And please tell me the anwser in ONE STEP AFTER A NOTHER (or something like that).
PLEEASE... :'(
Title: Re: problem with musik
Post by: Scummbuddy on Sat 08/05/2004 21:02:54
what music file type/extension are you trying to play?

and your english is actually not that bad. yes, there are some spelling errors, but everything was legible. nicely done.
Title: Re: problem with musik
Post by: .. on Sat 08/05/2004 21:54:59
If you want it to play a piece of music.

Depending if the stereo is a hotspot/object

Open Up the Room Editor
Select the object/Hotspot that is the stereo
click the interaction button
Select from the drop down box Game - Play a sound effect
Click on the change button and type in a number (remember what it is)
Then take the music sound file and copy it to your AGS Game folder and rename it SOUNDX.wav or SOUNDX.mp3 where X is the number you typed in the Change Box thing.

Does this help?
Title: Re: problem with musik
Post by: viktor on Sun 09/05/2004 06:10:43
EEEK...
I copy the musik in to the folder rename it to SOUND1.mp3. I set the play sound efect 1. But when I test the game and want it to play the musik. Nothing hapenes. After i quit the game a mesage pops up  "sound sample load failure: can not load sound 1"

As long as this topic is open I might as well ask another question. I just want to know what kind of art program you guys use to create your rooms and characters. And in what resolution size are your characters...
Title: Re: problem with musik
Post by: .. on Sun 09/05/2004 11:55:01
Several Solutions for this. You could try renaming it to SOUND01.MP3 .. Or you could try making the extension in capital letters so the file is called SOUND1.MP3.

The problem could also be that its not in your game folder. Make sure its in the folder with ac2game.dta file and not in the AGS Folder (With AGSEDIT.exe)

As for Graphics Programs theres a thread  here  (http://www.agsforums.com/yabb/index.php?topic=5644.0)with paint programs ppl use.

My sprite dimensions are the same size as the original roger sprite just twice as big cos im in 640x480 mode.
Title: Re: problem with musik
Post by: Mr Flibble on Sun 09/05/2004 17:07:30
I think there is something about if you want to play Sound1 as music, you have to name it Sound1001.

(add 1000)

Either that , or make sure the file is in the right directory.
That is, inside the AGS folder, then inside the folder that your game is named. ( Sorry if I seem patronising .)

I use MS Paint. On a Windows95 computer. :-\
But it comes up nicely.
My sprites are about 30x65 but don't hold me to it. I don't measure them, I work by how they look.
(About 4/5 of an inch tall in X1 magnification)
Title: Re: problem with musik
Post by: Ashen on Sun 09/05/2004 17:14:06
About what Mr. Flibble said (from the manual):

If you use the interaction command, you must add 1000 to the music number so that AGS recognises it as music and not a sound effect. For example, to play music 23, use "Play sound 1023".

So, you don't actually add 1000 to the file name, just in the interaction editor.
Title: Re: problem with musik
Post by: Pet Terry on Sun 09/05/2004 17:19:40
Or then you could set object interaction to 'Run script' and put:

QuotePlayMusic(1);

EDIT: Remember that the file must be named music1.mp3 for this to work.
Title: Re: problem with musik
Post by: viktor on Sun 09/05/2004 17:50:34
Thanks guys. I finaly got it.
And thanks for the program list...