Music Problem.

Started by Darkmaster400, Fri 23/06/2006 10:56:44

Previous topic - Next topic

Darkmaster400

Hello mates,

I have a problem playing music..
Well, I added the file onto the Music folder in the game folder.
Now I try the code:

PlayMusic(1)

It is in .mid format (in other words a midi file).

Now when I start up the game, I dont hear any music.
Well, I really doubt that I have the right interaction.

What is the right interaction to play a musicfile on Room Load??

Regards,

---
Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

GarageGothic

If you're using the interaction editor:
Player Enters Screen (before fadein) -> Game - Play Music -> Change music number to 1

Also make sure that the midi file is named music1.mid

DoorKnobHandle

"PlayMusic(1);" should work (with a comma at the end of the line), make sure that your file is called "MUSIC1.MID" in this case.

Which AGS version do you use? Make sure that your music file is in the correct location (in the game folder and not in the compiled-subfolder, as you said or, when you use a newer version >2.7, then in the special "Music" subfolder).

Edit: GG beat me.

Darkmaster400

Quote from: GarageGothic on Fri 23/06/2006 11:02:24
If you're using the interaction editor:
Player Enters Screen (before fadein) -> Game - Play Music -> Change music number to 1

Also make sure that the midi file is named music1.mid

Hmm I cant find the "Player Enters Screen" Interaction :/
Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

GarageGothic

Sorry, it's Player Enters Room

Darkmaster400

#5
Hmm, it still doesnt seem to play..Ã,  :-\

EDIT: Does it support the .mid format, or shall I convert it to .ogg format?
Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

Gilbert

Please check your window explorer's setting, would it be possible that the "hiding known extensions" option was checked (which is, by default) ?

In that case, you might have named the file music1.mid.mid instead of music1.mid .

Darkmaster400

Quote from: Gilbot V7000a on Fri 23/06/2006 12:25:48
Please check your window explorer's setting, would it be possible that the "hiding known extensions" option was checked (which is, by default) ?

In that case, you might have named the file music1.mid.mid instead of music1.mid .

Yes, I checked it already.. Hmm, the filename is now "music1.mid" <--- is it correct?
Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

Gilbert

try setting up the game to use another device to play midi files, maybe it's a driver problem.

Darkmaster400

Quote from: Gilbot V7000a on Fri 23/06/2006 12:39:56
try setting up the game to use another device to play midi files, maybe it's a driver problem.

Oh no, it wont solve it .. Hmm, I can listen to the midi file seperately in Windows Media Player.
Shall I try another version of AGS ? Maybe that will solve it  ::).
Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

SSH

Wheteher it plays in Windows Media is immaterial:

Use the game setup for the AGS game and you'll see an ioption to change the way AGS plays MIDIs: try chnaging it.
12

Darkmaster400

Oh, it cant be true.. still no sucess.. :-/
Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

SSH

Try: playign an OGG, playign a different MIDI, playing a sound-effect to see if you can eliminate the problem. Also, which version of AGS are you using?
12

Darkmaster400

#13
Quote from: SSH on Fri 23/06/2006 13:25:31
Try: playign an OGG, playign a different MIDI, playing a sound-effect to see if you can eliminate the problem. Also, which version of AGS are you using?

Arrgh.. still no success.
Oh and I think I am using the newest AGS version, version 2.71

EDIT: I think I am using a BETA. I read the FAQ and it said that the BETA releases arent as
stable as the official, where the BETA may have bugs.. Can there be bugs in the BETA version
which makes AGS not playing the music files correct?
Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

SSH

Yes, and a quite recent beta DID have such problems. Try downloading  the most recent beta, and try again. Also, you can find the version under the Help_>About menu
12

GarageGothic

Yes, I commented on this in Darkmaster400's first thread in the Tech forum (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=27076.0) but I wonder if he noticed.

Darkmaster400

To be secure of bugs, isnt it best to use the official versions?  :)
Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

GarageGothic

Unless you need special functions added after the last stable version (2.71) it's best to stick with that, yes. However, if you created the game with a later 2.72 beta version of the editor, you can't revert to a previous version. Then your only solution is to get the latest beta (RC2a) where CJ fixed the audio bugs introduced in RC2.

Darkmaster400

Arrgh... Now I got AGS 2.72RCa, but I can still not play music..  >:(
Games Process :
---------------------
Mick Fitz Episode 1 :

Story : |----------| 0 %
Graphics : |----------| 10 %
Sound/Music : |---------| 10 %
Scripting : |----------| 0 %

----------------------------------------

monkey0506

Hey Lars, if you still need help with this I'm getting on MSN now...we've discussed this same problem before.  Come on Lars, it's not that hard... :P

SMF spam blocked by CleanTalk