Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: EJ on Sat 09/04/2005 09:57:01

Title: Illegal Exception (SOLVED)
Post by: EJ on Sat 09/04/2005 09:57:01
Hi. My name is Emilio, I'm from Spain and this is my first message.

I've just started some time ago with AGS and it's GREAT!!

In fact it's so great that allows an olympic dumb (me) to make a game, although my level of english language is similar to Cheetah the Monkey.

So I'm making a game, it's unfinished yet, but I know, THIS is the time, I'm gonna make millions.

But I've got an error when I'm testing the game that I haven't been able to solve:

When the main character leaves a certain room (at the moment, it happens only with room2), he is supposed to re-enter the main room (intro, room0), but the game-testing crashes, and an "Illegal exception" message appears.

I've tried changing the way of leaving the room (walking off the lef screen edge, walking onto a region), I've removed music from room0, I've tried both "player goes to a different room" and "player goes to a different room at spefecific coordinates", and I've tried many different coordinates.

This is the error:

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x77F41F72 ; program pointer is +6, ACI version 2.62.772, gtags (0,27)

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.



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

When I make changes, the message changes too a little bit, but it still appears. So I'm so incredibily dumb, I can't figure if where is the problem and how can I get a solution.

I'm running Windows XP. My AGS version is 2.62 (build 2.62.509)

I've made a searh about "illegal exception" in the forum, but it seems that in some cases it can't be solved, or at least it isn't easy.

Thank you for any possible help, that will be greatly appreciated when I finally become a millionaire.

And thanks to Chris Jones for this wonderful invention: AGS... "Allowing Genius to Show".
Title: Re: Illegal Exception
Post by: Ishmael on Sat 09/04/2005 10:08:37
Far-fetched, but do you happen to have room changing command in the "Player leaves screen" interaction? I accidentaly did that once, and took a while to figure out what caused the engine to crash :P
Title: Re: Illegal Exception
Post by: EJ on Sat 09/04/2005 10:45:05
No, that is not the case, but thank you for you reply.... it will help me to avoid that "player leaves screen" stuff. That's a good point.

For being the first in answering,  you'll get a hanfdul of euros when I become enormously and awfully RICH!!
Title: Re: Illegal Exception
Post by: strazer on Sat 09/04/2005 10:57:27
Are you sure the error is in room 2?
Does it happen if you enter room0 first?
Does it happen if you change to other rooms than room0?
Does it happen if you change to room0 from other rooms than room2?
Title: Re: Illegal Exception
Post by: EJ on Sat 09/04/2005 11:33:46
Yes I'm sure, the answer to the las three questions is no.

Title: Re: Illegal Exception
Post by: Pumaman on Sat 09/04/2005 12:44:11
Hmm, any chance you could send me the game files so that I can have a look? The engine should never crash like that, I'd be interested to find out what's causing it so that I can fix it.
Title: Re: Illegal Exception
Post by: EJ on Sun 10/04/2005 23:46:26
Pumaman:

Thank you very much. Sure I can send you the files (I guess I should send you the game project folder, isn't it?). Please tell me how do you prefer the files to be sent: by e-mail?

I've been thinking about the crash: maybe there's a stupid error that I've made, but I can't find it.

Title: Re: Illegal Exception
Post by: Pumaman on Mon 11/04/2005 20:11:39
If you zip up the game folder (but not the Compiled folder within it), and email me that would be fine, so long as the zip file isn't bigger than 1 MB or so.
Title: Re: Illegal Exception
Post by: EJ on Wed 13/04/2005 20:45:21
I zipped the game folder without the acrprst backup file, and without the compiled folder, and I've got a 1.805 Kb zip file.

Is that ok or I did something wrong?
Title: Re: Illegal Exception
Post by: Pumaman on Wed 13/04/2005 22:44:00
That sounds fine -- if you could email that directly to  cj@adventuregamestudio.co.uk  I'd appreciate it, thanks.
Title: Re: Illegal Exception
Post by: EJ on Thu 14/04/2005 23:08:58
I've sent you the file.

Thank you very much for your interest.
Title: Re: Illegal Exception
Post by: Pumaman on Sat 16/04/2005 14:23:01
Thanks, got it.

I tried teleporting to room 2, then walking off the left and it correctly sent me back to room 0.

Is there any particular sequence of actions that I need to do to reproduce the crash? Do I need to enter the room properly rather than using Ctrl+X for the problem to appear?
Title: Re: Illegal Exception
Post by: EJ on Sat 16/04/2005 19:54:16
Well, when I test the game, I simply do what the player is supposed to do: walk into the room0 region that takes me to room2, that is, the right cave door in room0 (no more special action or object needed to get in room2, just "walk through" the door)

then I get the showel from the floor, just like any player would do, and I try to get back to room0 walking off left edge, but then happens the error.

But, when I do teleport to room2, I also can get back to room0 normally, just walking off. But, if I start the game and enter room2 properly, then I can't walk off to room0 without crashing. 

I can't figure what makes the difference.




Title: Re: Illegal Exception
Post by: Pumaman on Sun 17/04/2005 23:08:32
Strange -- I just tried this and it worked fine, there was no crash when I walked back out of room 2.

Could you try disabling sound and music in Setup and see if it makes any difference?
Title: Re: Illegal Exception
Post by: EJ on Fri 22/04/2005 00:53:35
I disabled sound and music in Setup but the crash still happens.

May be some problem with my PC and/or OS configuration?
Title: Re: Illegal Exception
Post by: Pumaman on Fri 22/04/2005 21:18:27
One thing you could try is downloading the 2.7 Pre-Final from the sticky thread in this forum, and try it out on a backup of your game. It's possible it is a bug that has since been fixed.
Title: Re: Illegal Exception
Post by: EJ on Fri 22/04/2005 23:28:20
OK, I'll try that. I'll comment any results for your knowdlege.

Thank you very much, Pumaman. 
Title: Re: Illegal Exception
Post by: EJ on Thu 28/04/2005 08:04:11
Pumaman:

I've downloaded the 2.7 Beta, I've "converted" the game, and it works!

If I see any change, I'll tell you, but, at the moment, the crash seems have disappeared.


Thank you very much for your kind and helpful advices.
Title: Re: Illegal Exception
Post by: Pumaman on Fri 29/04/2005 23:38:34
That's good to hear :)

Do let me know if you have any further problems.