Problem with Adding Music (Solved)

Started by Grapefruitologist, Sun 29/01/2006 02:58:48

Previous topic - Next topic

Grapefruitologist

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.
(\ _ /)
(o.o )
(>< )
This is Bunny
Copy Bunny into your signature to help him on his way to world domination!
http://youtube.com/watch?v=IIO2qpSsUTA
http://youtube.com/watch?v=Rg-p7xaeYes

Barbarian

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.
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

Gamemakur

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."
I went up high as I flied in the sky.

monkey0506

#3
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!

Ashen

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.

I know what you're thinking ... Don't think that.

Grapefruitologist

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...
(\ _ /)
(o.o )
(>< )
This is Bunny
Copy Bunny into your signature to help him on his way to world domination!
http://youtube.com/watch?v=IIO2qpSsUTA
http://youtube.com/watch?v=Rg-p7xaeYes

Ashen

#6
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
I know what you're thinking ... Don't think that.

Grapefruitologist

(\ _ /)
(o.o )
(>< )
This is Bunny
Copy Bunny into your signature to help him on his way to world domination!
http://youtube.com/watch?v=IIO2qpSsUTA
http://youtube.com/watch?v=Rg-p7xaeYes

Scorpiorus

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.

SMF spam blocked by CleanTalk