Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Dennis Ploeger on Fri 29/08/2003 17:17:06

Title: Play Music on room load weirdness
Post by: Dennis Ploeger on Fri 29/08/2003 17:17:06
Hi everyone!

Something weird is happening to my AGS lately. I've been searching for a music I don't want to play at a particular room, but in another. So I searched and searched but never found a "Play Music on room load"-entry or a PlayMusic()-command.

Then I just tried to check "Play Music on room load" and enter a number. After I saved the room that setting WAS GONE!!  ???

Is this something like a bug or did I do something wrong??

Thanks in advance.

deep

**edit**

Whoops. By the way: I'm using AGS 2.56 ;-)
Title: Re:Play Music on room load weirdness
Post by: Pumaman on Fri 29/08/2003 19:32:29
What music number did you use? The "Play music on room load" only accepts music numbers from 0-120. To play a higher numbered music, you need to use PlayMusic.
Title: Re:Play Music on room load weirdness
Post by: Archangel (aka SoupDragon) on Fri 29/08/2003 23:25:17
I've noticed this- when the music number is the same as the room number then the number will dissapear from the on room load music number edit box, but the music will still play normally ingame.
Title: Re:Play Music on room load weirdness
Post by: Dennis Ploeger on Mon 01/09/2003 07:35:05
Hi!

Jap! I've used music no 0. Just the way you said. So now I'll try using number 1 and then turn it off...
But, Chris, could you take a look at this, please?

deep
Title: Re:Play Music on room load weirdness
Post by: Pumaman on Mon 01/09/2003 21:27:20
Oh heh, yes sorry I meant 1-120. Music 0 will un-check the box when you save it.

Sorry about that, I should have realised.
Title: Re:Play Music on room load weirdness
Post by: Dennis Ploeger on Tue 02/09/2003 08:07:36
Hi!

Why is that so? Is there any reason doing that or is it just a plain bug?
Title: Re:Play Music on room load weirdness
Post by: Ishmael on Tue 02/09/2003 08:53:18
If music0.* exist in the game folder, it will be played in every room which has no 'play music on room load' defined, right? If so, it plays the music, no matter you check it and enter 0, or not check it at all...
Title: Re:Play Music on room load weirdness
Post by: Pumaman on Tue 02/09/2003 19:12:25
Music 0 is automatically played at game startup.

The fact that you can't use it in that box in the editor is a "feature", dating back to AGS 2.00. Those five tick boxes on the main Game Settings pane were some of the first things to be added to AGS, and as such they haven't aged well.