Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Ethan D

#241
The game didnt crash it just reloaded the first page.  When you say turning on the
GUI do you mean making it visible?
#242
I tried this
SaveGameSlot(1, "Test");
and it didnt show up in the list box.
#243
I had the game run the test save and it didnt show up.  Any idea why that wouldnt work?
#244
Im not sure what is wrong I used an article on the AGS help site but I cant get this part to work properly.  No errors come up but it doesnt actually save anything and no name appears in the list box.  The code below is for the save button.  Any ideas?


function Button8_OnClick(GUIControl *control, MouseButton button)
{
int totalSaves = lstSaveGames.ItemCount; //number of saves on list
String saveName = txtSaveName.Text; //holds value of txtSaveName

//Check for a save name. If none, tell them.  Else, go on.
if(saveName == "")
{
   Display("Enter a name for your save file.");
   return;
}
//If there is no saved games yet, just save it.
if(lstSaveGames.SelectedIndex == 1)
{
   SaveGameSlot(totalSaves+1, saveName);
   gSaveGame.Visible = false;
}
else
{
   int checkSave = 0; //runs through the list and checks for double entries
   while(checkSave != totalSaves)
   {
     if(saveName == lstSaveGames.Items[checkSave]) // one matches, so overwrite it.
     {
       //if so, overwrite the selected save game
       gSaveGame.Visible = false;
       SaveGameSlot(savegameindex[checkSave], saveName);
       return;
     }
     checkSave++;
   }
   //if we've made it here, then there is no match; just save to a new slot.
   if(totalSaves < 20)
   {
     gSaveGame.Visible = false;
     SaveGameSlot(totalSaves+1, saveName);
   }
   else
   {
     Display("The maximum number of saved games has been reached; overwrite or delete some old ones.");
   }
}
#245
Advanced Technical Forum / Problem found
Thu 02/07/2009 22:09:59
I found that when your editing a GUI and you put for the font a number that does not correspond with an actual font in the game (in my case 0, 1, or 2) it displays the font that corresponds with 0 in the editor. However, when actually running the program if the GUI tries to display itself this appears.

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x0043FC07 ; program pointer is +379, ACI version 3.12.1074, gtags (446,5)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and post the details on the AGS Technical Forum.



Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.

An error file CrashInfo.dmp has been created. You may be asked to upload this file when reporting this problem on the AGS Forums. (code 0)
---------------------------
OK   
---------------------------

Obviously to fix this problem all you have to do is to change the font to something that actually works.  The only problem is that the editor doesn't say what the problem is so I had no idea for about five minutes.

So this is more of a suggestion for a future version of AGS than anything. 

Thanks.
#246
Its working now thanks for the help everybody.
#247
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.
#248
This is the second to last update on progress I am making as you can see its very near done for testing, however I still would like to have at least one more tester.

#249
I cant rebuild the VOX
#250
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.
#251
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.
#252
I changed the volume in the mixer and it is working great now.

Thanks
#253
I cant seem to get any of my MIDI files music tracks playing.  I have some in mp3 format and those worked fine but now that I have them in MIDI they aren't working. I'm still doing it the same way its just not playing.  

I have the music saved as Music1.mid
and the code im using is PlayMusic(1);
so i cant figure out why it wont play
#254
I think I got what I was looking for. Thanks
#255
Is there a faster way to change an objects size other than by reimporting it with more or less blank space?
#256
Thanks for the comments, I'm still looking for a few more testers.
#257
I should have the game ready for testing in a  couple of weeks so if anyone wants to play test let me know.

Thanks
#258
Thank you very much.
#259
Is it possible to change an area that was walkable a no walk zone?

#260
Ill try that to. Thanks again
SMF spam blocked by CleanTalk