Internal error with music(probably)

Started by maraki_ang3l, Sat 13/06/2009 17:42:45

Previous topic - Next topic

maraki_ang3l

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
:'(

Akatosh

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).

maraki_ang3l

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.

Akatosh

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?

maraki_ang3l

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

Akatosh

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?


maraki_ang3l

Really no one can suggest me a solution .It is very important and and I really don't know what is going on...

Dualnames

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.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Mehrdad

Use AGS3.2 beta version.maybe your problem solve.i dont test.(dont forget backup).
My official site: http://www.pershaland.com/

maraki_ang3l

No it still is hapenning the same thing

Akatosh

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.

Pumaman

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?

maraki_ang3l

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.

Pumaman

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?

maraki_ang3l

#15
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.

Pumaman

Thanks, I'll see if I can fix this for a future version.

SMF spam blocked by CleanTalk