Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: maraki_ang3l on Sat 13/06/2009 17:42:45

Title: Internal error with music(probably)
Post by: maraki_ang3l on Sat 13/06/2009 17:42:45
I have finally finished my game and when I run it,I can play it properly.Now I compiled it in order to built the .exe
When i tryin g to rum my exe it says

Error :pack_fopen:unable to change datafile :not found: C:\Documents....\Compiled\music.vox


I have to mention that I don't know what this is because it is created aften the compile.I am guessing something with music
:'(
Title: Re: Internal error with music(probably)
Post by: Akatosh on Sat 13/06/2009 19:58:58
Seems like the game's music file went corrupt. Try to delete the contents of the Compiled folder, then make the game rebuild them (Build -> Rebuild all Files).
Title: Re: Internal error with music(probably)
Post by: maraki_ang3l on Sat 13/06/2009 20:15:52
I did that twice as you suggested but again the same thing.

All the music is in the file Music (Music 1 , Music 2 ....) and the sounds (Sound 1 , Sound2 ....) some are wav and some midi and they play propely when i run the game.

Isn't  that weird?I'm so worried.
Title: Re: Internal error with music(probably)
Post by: Akatosh on Sat 13/06/2009 21:46:27
Hm, that's strange indeed. And you said they all play just fine when you run the game out of the editor or with some outside program (such as Winamp)? If yes - can you run the game if you compile it just as normal, then delete the "music.vox" file manually?
Title: Re: Internal error with music(probably)
Post by: maraki_ang3l on Sat 13/06/2009 22:08:08
Well i didn't understand what you said before but Vlc plays just fine the music.vox file and when I run the game the music plays just fine.From the exe it says this error,If I delete the music.vox and run the exe the game runs without music.


    :'(   I desperately need a solution
Title: Re: Internal error with music(probably)
Post by: Akatosh on Sat 13/06/2009 22:16:53
It's definitly a problem with the music then, but if you can play Music1, Sound1 and so on with a program like the Windows Media Player or somesuch, but not from within the game, there is definitly something wrong. I guess you're using the most recent version of AGS?
Title: Re: Internal error with music(probably)
Post by: maraki_ang3l on Sat 13/06/2009 22:31:08
Yes 3.1.2 SP1
Title: Re: Internal error with music(probably)
Post by: maraki_ang3l on Sun 14/06/2009 14:47:06
Really no one can suggest me a solution .It is very important and and I really don't know what is going on...
Title: Re: Internal error with music(probably)
Post by: Dualnames on Sun 14/06/2009 14:51:19
Quote from: maraki_ang3l on Sun 14/06/2009 14:47:06
Really no one can suggest me a solution .It is very important and and I really don't know what is going on...

I'm sure Chris attention will be caught in the topic. Trust me. It will.
Title: Re: Internal error with music(probably)
Post by: Mehrdad on Sun 14/06/2009 15:18:59
Use AGS3.2 beta version.maybe your problem solve.i dont test.(dont forget backup).
Title: Re: Internal error with music(probably)
Post by: maraki_ang3l on Sun 14/06/2009 15:53:53
No it still is hapenning the same thing
Title: Re: Internal error with music(probably)
Post by: Akatosh on Sun 14/06/2009 16:29:22
The last thing I could think of would involve converting all your files to the same format, for example mp3, with a program like Audacity, and see if it still happens (if no, there probably was something kaput with your original files). I doubt this will work, though - this sounds like an internal error within the engine, and you should probably notify CJ (http://www.adventuregamestudio.co.uk/yabb/index.php?action=pm;sa=send;u=1).
Title: Re: Internal error with music(probably)
Post by: Pumaman on Sun 14/06/2009 23:15:03
Quote from: maraki_ang3l on Sat 13/06/2009 17:42:45
Error :pack_fopen:unable to change datafile :not found: C:\Documents....\Compiled\music.vox

Is that the exact error message or have you shortened it?

If that's the correct message then it looks like something is wrong with the path, what folder is the game in? If you try copying the game folder out of My Documents into somewhere else like C:\ does it work then?
Title: Re: Internal error with music(probably)
Post by: maraki_ang3l on Mon 15/06/2009 19:03:35
I had shorted the path cause it was too big

C:\Documents and Settings\maraki_ang3l\Τα εγγραφα μου\Σχολή\Game\Game\Compiled\music.vox

but Chris you are absolutely right.I moved it to C:\Game\Game\Compiled\music.vox and it works perfectly well.

I  believe the problem was caused because at the path exist greek letters...You see I had already copied my game in an other path but again there were involed greek letters.

I couldn't imagine that all this trouble was caused by the path.....  :(

Thank you ,thank you,thank you so much!!!

:D m.a.
Title: Re: Internal error with music(probably)
Post by: Pumaman on Mon 15/06/2009 19:44:28
Hmm that's interesting, it's a bit rubbish if AGS games won't run when the path has unicode characters.

Did everything work ok in the editor and when running the game through the editor, but it was just when you tried to run the compiled game that this problem happened?
Title: Re: Internal error with music(probably)
Post by: maraki_ang3l on Mon 15/06/2009 20:15:25
Yes that was the exact problem.

From the editor the game run perfectly with music but when I tried to run the .exe  is said that error.

Now that i moved it to C :/  and built the  .exe from the beginning the  .exe worked perfect .

So  I believe  that this is the problem.
Title: Re: Internal error with music(probably)
Post by: Pumaman on Mon 15/06/2009 22:34:14
Thanks, I'll see if I can fix this for a future version.