Debug mode crashes AGS

Started by , Thu 02/10/2003 18:53:44

Previous topic - Next topic

m0ds

CJ, and others,

I was working on a game with about 7 rooms, had it in debug mode and was able to skip rooms using CTRL+X . Then, I added two more rooms and now every time I try and press CTRL+X AGS crashes violently with the message;

Illegal exception! 0xC0000005 occured in ACWIN.EXE at EIP = 0x0043C28E ; program pointer is +6, ACI version 2.56.627, gtags (1,17)

I've tried restarting AGS, restarting the PC, turning num and caps lock on and off, but still get this error now every time.

The error also refers to the line in the Global Script which is the key press for CTRL-X. What's wrong :\

NOTE: It seems to be when it's trying to bring up of AGS's default little grey box things...

NOTE II: I deleted everything from sprite manager in the folder Main - Defaults. Perhaps that has something to do with it?

:O
m0ds

Spyros

Mods, are you making a game?
Maybe that's the reason for the crash  :P

m0ds

Yes I happen to be making this little ol' Indy game! Hehe :P

It's deffinatley something to do with AGS creating those dialog boxes.

CJ?

m0ds

Gilbert

Quote from: m0ds on Thu 02/10/2003 18:53:44
NOTE II: I deleted everything from sprite manager in the folder Main - Defaults. Perhaps that has something to do with it?

VERY much possible. Try checking:
Start AGSedit and make a new game, and mark down with a new game the sprite #s in the default folder of it (they should be 2001 thru 2061 and 1 (?) and 4 (?) I think).
Now, better backup the original game files first, then restart AGSEdit and load your game in question, import a couple of new sprites into it (just whatever sprites are ok), then right click at the sprites select "change sprite number..." and change them to the numbers you marked down (you may need to import more sprites in the process to recover all of the deleted sprites).

Now compile the game and try again and see if that's indeed the problem.

m0ds

Ta, i'll try it a little later on :)

* m0ds bows

Konichiwa, Gilbert Cheung.

Kweepa

Whoa there!
Are you saying FoY only has 7 rooms so far??
:)
Still waiting for Purity of the Surf II

m0ds

I'm on the 11th room of the demo atm (I managed to carry on, the bug is annoying but avoidable atm).

The demo will have about 20 rooms in total I think.

Kweepa

Sounds like a request for CJ - report a missing sprite rather than crashing :)
Still waiting for Purity of the Surf II

Pumaman

m0ds: the most likely cause is you've deleted the sprite for mouse cursor 6, which is the mouse pointer that comes up in the Ctrl+X window. Import a new sprite for that and you should be fine.

QuoteSounds like a request for CJ - report a missing sprite rather than crashing  

Well yes, but then this is why there is a big warning message whenever you delete a sprite :P



Kweepa

I'm curious to know why you didn't just avoid the crash, rather than put in a warning.
I mean, I know you're just writing this out of the goodness of your heart, and I'm mighty grateful for that, but as a programmer myself, it seems like both approaches would be about as easy...

Steve
Still waiting for Purity of the Surf II

Pumaman

Due to the way the engine code works, there's no easy one-line fix to trap sprite accesses that don't exist - it would require checks all over the place, such as in the mouse drawing code, the object drawing code, the character drawing code, and so forth. Doable but not something I've got round to yet.

SMF spam blocked by CleanTalk