Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Mon 12/03/2007 04:25:19

Title: Illegal exception encountered when moving from one room to another
Post by: on Mon 12/03/2007 04:25:19
I've been working on a new game, and I've been having a problem with receiving the following illegal exception error when the player moves between two specific rooms:

"An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x0043F5FC ; program pointer is +72, ACI version 2.72.920, gtags (0,63)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum."

I browsed the forums and found several similar problems, but for most of them the fix seemed to be to upgrade to the 2.72 version; since I already have that, I'm not quite sure what to do.  I've tried removing and replacing the command to move between rooms and turning the sound off and on as was also suggested in some threads, but the error persists.  Does anyone have any light to shed on this?

I'm afraid that this is my first game working with AGS, so while the scripting language isn't overly complex, I am still a beginner and likely to get lost if things get too technical.  Sorry for the inconvenience.   :-\
Title: Re: Illegal exception encountered when moving from one room to another
Post by: Gilbert on Mon 12/03/2007 05:13:58
Can you post the part of codes that you used to change rooms here, so we can investigate?
Title: Re: Illegal exception encountered when moving from one room to another
Post by: Pumaman on Mon 12/03/2007 18:38:22
Alternatively, if your game is relatively small and you can upload it for us to take a look at, that'd be good too.
Title: Re: Illegal exception encountered when moving from one room to another
Post by: on Tue 13/03/2007 00:51:47
Unfortunately, here my lack of experience doesn't help me out...  I didn't make any custom changes to the scripting, just used the room interaction function menus to make the character move (i.e., Interaction on click/Player goes to another room/Room11).  Specifically, the new room number is 11 and the offset value is 0.

Is there somewhere specific to upload the game to, or do I need to find my own hosting?
Title: Re: Illegal exception encountered when moving from one room to another
Post by: Pumaman on Tue 13/03/2007 19:11:23
It's very strange, because you shouldn't be able to crash AGS by doing something that simple. If you use the "Ctrl+X" debug key to teleport straight into the problem room, does it still crash?
Title: Re: Illegal exception encountered when moving from one room to another
Post by: on Tue 13/03/2007 22:22:21
Yes, it does.  I know the room I'm trying to move to doesn't have any crippling error that I'm aware of, since I can start the character there with absolutely no problems; in fact, I can have the character walk in from the other "adjacent" room and there's no problem.  It's only when coming from the one room that it crashes.  The room script file is empty, and the only commands come from the basic menu functions.

Maybe I should try deleting the room and replacing it?
Title: Re: Illegal exception encountered when moving from one room to another
Post by: Pumaman on Wed 14/03/2007 17:00:22
Perhaps uploading the game is the best idea -- if you could zip all the files up, then you can use the AGS hosting service here:
http://www.americangirlscouts.org/agsuploads/

to upload it.
Title: Re: Illegal exception encountered when moving from one room to another
Post by: on Thu 15/03/2007 00:51:56
I'll try to get it zipped and loaded asap.

As an interesting side note, I tried making a duplicate room from scratch--whole new room, with the same background and text.  That one crashes, too.