Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: thezombiecow on Thu 14/08/2008 10:45:38

Title: Illegal Exception, crash on PlayMusic()??
Post by: thezombiecow on Thu 14/08/2008 10:45:38
Someone downloaded Ben There, Dan That! (http://www.zombie-cow.com/btdt) and got this on bootup:

(http://www.zombie-cow.com/images/btdt_error_01.jpg)

Room 45 is my initial title screen (first thing player sees), line 70 is PlayMusic(2);

Does anyone know if this fixable 'my end'? I've suggested having a fiddle in winsetup, there's some sound options in there, no??
Title: Re: Illegal Exception, crash on PlayMusic()??
Post by: LimpingFish on Fri 15/08/2008 22:19:38
Well, first thing would be to disable the sound altogether. Run winsetup.exe > Digital Sound (set to "no digital sound") > Midi Music (set to "Disable Music"), and make sure the "Use digital music pack if available" tick box is empty. Run the game, and hopefully the error will be gone. Then try re-enabling each of the sound settings until in winsetup until the error appears again.

I can't remember if BT, DT! uses midi or mp3/ogg for music, but if it's a midi conflict of some sort, it may be down to the user having a missing/corrupted/incompatible midi driver, though I'm not sure how this would happen....unless their PC hasn't got a soundcard! If it's just an mp3/ogg problem, it could be a codec error.

Or it could be none of the above! :-\
Title: Re: Illegal Exception, crash on PlayMusic()??
Post by: Pumaman on Fri 22/08/2008 20:13:52
What sort of music files are you using? There have been problems with the MP3 decoder, so if you're using that you could try switching to OGG.