Illegal Exception (SOLVED)

Started by EJ, Sat 09/04/2005 09:57:01

Previous topic - Next topic

EJ

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

Ishmael

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
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

EJ

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!!

strazer

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?

EJ

Yes I'm sure, the answer to the las three questions is no.


Pumaman

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.

EJ

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.


Pumaman

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.

EJ

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?

Pumaman

That sounds fine -- if you could email that directly to  cj@adventuregamestudio.co.uk  I'd appreciate it, thanks.

EJ

I've sent you the file.

Thank you very much for your interest.

Pumaman

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?

EJ

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.





Pumaman

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?

EJ

I disabled sound and music in Setup but the crash still happens.

May be some problem with my PC and/or OS configuration?

Pumaman

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.

EJ

OK, I'll try that. I'll comment any results for your knowdlege.

Thank you very much, Pumaman. 

EJ

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.

Pumaman

That's good to hear :)

Do let me know if you have any further problems.

SMF spam blocked by CleanTalk