Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Ethan D on Mon 09/03/2009 00:27:37

Title: AGS crashing every time at certain point in script
Post by: Ethan D on Mon 09/03/2009 00:27:37
Hey I was working on my game and I was checking to see if I had done the scripting right and out of nowhere the game closed itself and this appeared:

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x004230B8 ; program pointer is +72, ACI version 3.12.1074, gtags (66,17)

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

I checked in my script to see if that was the problem and I dont see anything wrong and I dont even remember changing anything there before I started testing it so I think it could be a bug in AGS.

If anyone can help me out please let me know soon so I can get back to my game.

-Thanks
Title: Re: AGS crashing every time at certain point in script
Post by: Gilbert on Mon 09/03/2009 00:45:03
Can you post the part of the script around which the crash happens? Otherwise it'd be very difficult for us to check whether it's indeed a bug or an error in the script.
Title: Re: AGS crashing every time at certain point in script
Post by: Pumaman on Mon 09/03/2009 20:49:46
Yes, please post the script that causes this, and also if you could upload the CrashDump file that would be really useful.
Title: Re: AGS crashing every time at certain point in script
Post by: Ethan D on Mon 09/03/2009 21:58:48
The actual section of the code that it messes up at is

wait(50);
cNathan.ChangeRoom(9, 134, 156);
Im not sure if its crashing at the room change or right before it but the screen definately fades out before it crashes and it doesnt fade back in it just closes.
As for the crash fileI'm not sure where to find it I looked but I have no idea where it could be.

Title: Re: AGS crashing every time at certain point in script
Post by: Trent R on Mon 09/03/2009 22:24:11
What function is the code in? A hotspot? rep_exec?

Also, the file you're looking for is called CrashInfo.dmp, like the error says. I think it's in your game's directory.


~Trent
Title: Re: AGS crashing every time at certain point in script
Post by: Ethan D on Tue 10/03/2009 00:43:37
Its under a rep_exec and it checks for five different variables for the script.  The thing is it was working fine for a few weeks and I was just going through that room to check another section of the script and it messed up there, so I still dont know what went wrong.

Edit:  I found the file but i dont know how to upload it.
Title: Re: AGS crashing every time at certain point in script
Post by: Dualnames on Tue 10/03/2009 09:18:28
Quote from: Float On on Tue 10/03/2009 00:43:37
Its under a rep_exec and it checks for five different variables for the script.  The thing is it was working fine for a few weeks and I was just going through that room to check another section of the script and it messed up there, so I still dont know what went wrong.

Edit:  I found the file but i dont know how to upload it.

Use rapidshare, megaupload, whatever, just google for "upload file"
Title: Re: AGS crashing every time at certain point in script
Post by: Gilbert on Tue 10/03/2009 09:37:36
Or, better:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=3584.0 (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=3584.0)

Just read the rules and don't upload non-AGS related junks there.
Title: Re: AGS crashing every time at certain point in script
Post by: Ethan D on Wed 11/03/2009 21:19:12
I tried uploading it that way it didnt work.
Title: Re: AGS crashing every time at certain point in script
Post by: Ethan D on Wed 11/03/2009 21:21:21
Alright I got it on rapidshare.

http://rapidshare.com/files/208109827/CrashInfo.3.12.1074.dmp.html

Anybody have any idea what i should do?
Title: Re: AGS crashing every time at certain point in script
Post by: Dualnames on Fri 13/03/2009 12:34:22
Re-hosted it here, in case it's needed.

HERE (http://ledzepforever.googlepages.com/CrashInfo.3.12.1074.dmp)
Title: Re: AGS crashing every time at certain point in script
Post by: Pumaman on Fri 13/03/2009 23:19:28
Hmm this is strange, can you make sure that you haven't deleted the sprites for any objects in the new room that it is going into?

If you're still having the problem, could you please upload the game EXE file from the Compiled folder after building the game so that I can investigate this further?
Title: Re: AGS crashing every time at certain point in script
Post by: Ethan D on Sun 15/03/2009 23:38:49
Thank you so much for your help I checked the views for the characters and one for some reason had lost its sprite (not sure how) but anyway I can now actually work on this.

-Thanks again.