Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ethan D on Wed 01/07/2009 14:01:14

Title: Compiling the game
Post by: Ethan D on Wed 01/07/2009 14:01:14
I am having a few problems in trying to compile my game.

1) When played in full screen there is a lot more black area than in separate window mode.
2) The music is not playing from the right files but is using a much older file
I think the second one I have to do the rebuild VOX thing but I cant find it.
Title: Re: Compiling the game
Post by: Ishmael on Wed 01/07/2009 14:16:26
A lot more as in? Above and below or on the sides? Do you have the "Use letterbox mode" option enabled which makes black bars above and below the game image. In the second case it'd seem your monitor's and game's aspect ratios are different and the aspect ratio is maintained.

If you're using digital music you may need to rebuild the music.vox file, with the "Rebuild all files" option found under the Build menu.
Title: Re: Compiling the game
Post by: GuyAwesome on Wed 01/07/2009 14:19:54
About the second question: Are these the files you changed from MP3 to midi? From the manual entry on 'Distributing your Game':
Quote
NOTE: MP3, OGG and WAV music files are not included in the exe. They will instead be built into a file called MUSIC.VOX when you build the game EXE. Since OGGs, MP3s and WAVs override all other music file types, this allows you to have an Digital Music Pack which you can distribute separately to your game. If it is present in the game directory it will be used, otherwise any other music available (eg. MIDI) will be played instead.

So yeah, delete and rebuild music.vox...
Title: Re: Compiling the game
Post by: Ethan D on Wed 01/07/2009 14:24:30
Quote from: Ishmael on Wed 01/07/2009 14:16:26
A lot more as in? Above and below or on the sides? Do you have the "Use letterbox mode" option enabled which makes black bars above and below the game image. In the second case it'd seem your monitor's and game's aspect ratios are different and the aspect ratio is maintained.

The extra Black is only underneath the background sorry for not mentioning that.  I think it may be because the game is set at 320x200 so it doesnt fit right at full screen. Use letterbox is not checked

Quote from: GuyAwesome on Wed 01/07/2009 14:19:54
About the second question: Are these the files you changed from MP3 to midi? F

Yes these are Mp3 to midi Ill try the rebuilding.
Title: Re: Compiling the game
Post by: Ethan D on Wed 01/07/2009 14:28:13
I cant rebuild the VOX
Title: Re: Compiling the game
Post by: GuyAwesome on Wed 01/07/2009 15:10:01
"Can't" as in 'don't know how' ('Build' -> 'Rebuild all files', as Ishmael said - there's no 'Rebuild music.vox only' option), or as in 'did that, but it didn't do anything'?

I'm not sure how the rebuild works exactly, but I think it only checks for new, non-midi, files to be added to the vox. If there are none it leaves the vox alone, as any midi files will get bundled into the exe. If the files you DON'T want included are still there, it'll include them even if there's a midi with the same name as well - and I think that if there's no digital music at all it won't make a new vox, but equally it won't delete an existing version. So,
- Did you try deleting the old music.vox first?
- Are the MP3 versions of the tracks still in the game folder?

And that's me out of ideas, obvious as they were to begin with - I'm not far enough along with a game that music is a concern :) (In fact, haven't started one at all yet...)
Title: Re: Compiling the game
Post by: Ethan D on Wed 01/07/2009 16:09:05
Quote from: GuyAwesome on Wed 01/07/2009 15:10:01
"Can't" as in 'don't know how' ('Build' -> 'Rebuild all files', as Ishmael said - there's no 'Rebuild music.vox only' option), or as in 'did that, but it didn't do anything'?

I'm not sure how the rebuild works exactly, but I think it only checks for new, non-midi, files to be added to the vox. If there are none it leaves the vox alone, as any midi files will get bundled into the exe. If the files you DON'T want included are still there, it'll include them even if there's a midi with the same name as well - and I think that if there's no digital music at all it won't make a new vox, but equally it won't delete an existing version. So,
- Did you try deleting the old music.vox first?
- Are the MP3 versions of the tracks still in the game folder?

And that's me out of ideas, obvious as they were to begin with - I'm not far enough along with a game that music is a concern :) (In fact, haven't started one at all yet...)


I first deleted the old vox and then did rebuild all files and now no music plays at all.
The music is in midi format.
Title: Re: Compiling the game
Post by: Ishmael on Wed 01/07/2009 17:55:59
If it's midi files and they are in the correct folder rebuilding the game itself should update them automatically into the new exe.
Title: Re: Compiling the game
Post by: Ethan D on Wed 01/07/2009 18:39:45
Its working now thanks for the help everybody.