Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Akumayo on Fri 23/06/2006 06:51:15

Title: 'Play music on room load' not working
Post by: Akumayo on Fri 23/06/2006 06:51:15
I've ticked 'Play music on room load' in every room of my game.  Musics 1, 2, 3, and 4 play when called.  However, in the last three rooms, I have music 5 set to play.  It doesn't.  I played the MUSIC5 file on a media player, and it works fine.  It's no different than the other music files as far as I can tell.  I tried rebuilding the .vox files too, and that didn't seem to help either.

Any suggestions?

-Regards, Akumayo
Title: Re: 'Play music on room load' not working
Post by: Gilbert on Fri 23/06/2006 07:08:12
Did it work if you play it using PlayMusic() or whatever action available in the interaction editor ? (too lazy to check the manual, the names may not be correct here)

What format was it in? MIDI? MOD? XM? MP3? OGG? We need more info.
Title: Re: 'Play music on room load' not working
Post by: Akumayo on Fri 23/06/2006 22:59:14
I placed PlayMusic(5); in my Player Enters Screen (after fadein) script.  Still, the music is silent.  I tried turning the speakers up to full volume, but that's not the problem, it's simply not playing.

MUSIC5 is a midi file, just like the four before it.  I'm really dumbfounded here, it's exactly like the others.
Title: Re: 'Play music on room load' not working
Post by: Khris on Fri 23/06/2006 23:11:05
What happens if you change that exact line of code to PlayMusic(4); ?
Does that work?
If yes, it's safe to say that there's something wrong with the midi. Can you upload it?
If no, there's probably something wrong with the room file. Does it work if you call PlayMusic(5); in another room?
Title: Re: 'Play music on room load' not working
Post by: Akumayo on Sun 25/06/2006 22:04:51
This is getting insane.

I changed PlayMusic(5); to PlayMusic(4);
Tested the game, silence.  So I think, 'must be something wrong with the room file.'

Out of curiosity, I change 'Play Music on Room Load [4]' to 'Play Music on Room Load [5]' in one of the rooms that gave me no problems.  It won't play either.

Perhaps the midi is corrupted somehow?  Any ideas?
Title: Re: 'Play music on room load' not working
Post by: Darkmaster400 on Sun 25/06/2006 22:28:49
Quote from: "Acqua" Akumayo on Sun 25/06/2006 22:04:51
This is getting insane.

I changed PlayMusic(5); to PlayMusic(4);
Tested the game, silence.Ã,  So I think, 'must be something wrong with the room file.'

Out of curiosity, I change 'Play Music on Room Load [4]' to 'Play Music on Room Load [5]' in one of the rooms that gave me no problems.Ã,  It won't play either.

Perhaps the midi is corrupted somehow?Ã,  Any ideas?

I once had a music problem also, I fixed it by totally uninstalling the soundcard drivers and then
install them again, and restart computer.. The drivers are available on th net if you dont have them.
I would get you to a site where to get the soundcard drivers, but I dunno what soundcard you have.
Google is your friend  ;)