Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Grapefruitologist on Sun 29/01/2006 02:58:48

Title: Problem with Adding Music (Solved)
Post by: Grapefruitologist on Sun 29/01/2006 02:58:48
Hi, I'm not sure if this should be here or in the technical forum, but I thought since I was a beginner, it should go in the begginer's forum.
I tried to add music to one of the rooms, and I rebuilt the VOX files and everything, added the .wav files named "MUSIC0" and "MUSIC1" to my game's folder before I rebuilt them, but then I tried to test the game, and nothing happened... no music.
Title: Re: Problem with Adding Music
Post by: Barbarian on Sun 29/01/2006 05:46:26
With recent versions of AGS, make sure your music files are stored within the "Music" folder that is automatically created when you make a game. Another user recently had a similar problem:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=24727.0

I don't know if it's that's what was wrong in your case though.
Title: Re: Problem with Adding Music
Post by: Gamemakur on Sun 29/01/2006 20:36:03
It has to be in midi form. You either can make your own midi with a program, convert wave to midi, or just go to vgmusic.com to get midi tunes.









"I went up high as i flyed in the sky."
Title: Re: Problem with Adding Music
Post by: monkey0506 on Sun 29/01/2006 20:58:57
It doesn't have to be midi.  AGS supports WAV, OGG, MP3...and maybe some other types.  It definitely doesn't have to just be midi.

[EDIT:]

Hmm...I beat Ashen's post by one minute...but he quoted the manual.  Who wins?  You decide!
Title: Re: Problem with Adding Music
Post by: Ashen on Sun 29/01/2006 20:59:35
No, it doesn't only have to be MID:
Quote from: The Manual:PlayMusic(...)Changes the currently playing background music to MUSICx.OGG, MUSICx.MP3, MUSICx.MID, MUSICx.MOD or MUSICx.XM (where X is MUSIC_NUMBER). The game will search for the files in that order until it finds one to play.

This is also true of the interaction editor 'Game - Play music' command, although that says it can play WAV. Converting to MP3 or OGG is probably easier than to MID.

Title: Re: Problem with Adding Music
Post by: Grapefruitologist on Mon 30/01/2006 23:37:04
I don't see any music folder, and I tried to put it in a different folder and it didn't do anything when I said "rebuild VOX files". But this time I did that and it said it was rebuilding them. So I'm pretty sure it's in the right folder.
Just to see if it would work, I created a music folder in the main folder of AGS, one in my game's folder, and another in my game's Compiled folder. I copied my music in all of them, and it still didn't play anything...
Title: Re: Problem with Adding Music
Post by: Ashen on Tue 31/01/2006 00:17:32
I think the 'Music' folder is only 2.71+.
Anyway - it's auto-created, so if it's not there you don't need to worry about it - just leave the files in the game folder.

What format are the files? Note that .WAV doesn't seem to be in the supported list for PlayMusic(..), although it can be used with PlaySound(..).


monkey: I believe I win, as I am a moderator and could delete your post. So there :P
Title: Re: Problem with Adding Music
Post by: Grapefruitologist on Tue 31/01/2006 00:47:37
Thanks! It works now.
Title: Re: Problem with Adding Music (Solved)
Post by: Scorpiorus on Thu 02/02/2006 15:43:24
Yeah, there was a problem playing a WAV file when it's compiled into the music.vox file.

But since AGS 2.71 (the current official version) this problem should be fixed.