Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: beomoud on Thu 03/04/2008 09:07:24

Title: Why does my game suddently crash?
Post by: beomoud on Thu 03/04/2008 09:07:24
My game suddently crashes without even letting me know what went wrong... i can't possibly figure out these error reports... can anyone help?

I get this message:

An exception 0*C 0000005 occured in ACWIN.EXE=o*7C911E58; program pointer is +200, ACI version 3.00.1..., gtags(1,5)

Please guys, i don't know what to do, as i compile my game i don't get any messages for scripting errors, it used to work... what am i to do?
Title: Re: Why does my game suddently crash?
Post by: Dualnames on Thu 03/04/2008 14:28:11
Well, try and comment some lines to see if that helps. Or use the breakpoint. i got some weird errors but i managed to find the source that way. you should keep backups each day in some part of your hard drive. anyway try and do that. That might actually do the trick.
Title: Re: Why does my game suddently crash?
Post by: Pumaman on Thu 03/04/2008 19:32:02
When does it crash? As soon as you start the game, or after you go to a particular room or click on a particular thing? If you switch from DirectDraw to Direct3D or vice versa, does that fix it?

Has it generated a crash dump file? Can you upload it?
Title: Re: Why does my game suddently crash?
Post by: beomoud on Tue 08/04/2008 12:47:47
It's all fixed now for some reason. The problem disappeared as it arose. Anyway....
Title: Re: Why does my game suddently crash?
Post by: Clarabella on Tue 08/04/2008 21:17:03
Hi! I have this same problem too!
It happens  at the loading of the room: I have a sort of a cutscene, a character animation with a music on the background. During the animation I set the mouse mode to "wait", but when the animation ends, I set it again to the default mode (walkto). Here's the function I wrote:

function room_FirstLoad()
{
Mouse.Mode = eModeWait;
cCharacter.ChangeView(3);
cCharacter.Animate(0, 200, eOnce, eBlock);
cCharacter.Animate(1, 5, eOnce, eBlock);
Mouse.Mode = eModeWalkto;
}

(the music is set as a sound on the first frame of loop 0)

When the mouse returns to eModeWalkto, as soon as I click in one point of the room, the game crashes and the following error message is displayed:

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x00442D71 ; program pointer is +6, ACI version 3.00.1000, gtags (1,1)

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.

in "GlobalScript.asc", line 68

------------

in my GlobalScript, line 68 I have this:
Character *c = Character.GetAtScreenXY(mouse.x, mouse.y);
(and then there is a list of things happening when clicking on a character, if mouse mode is this, this, or this).

I don't have idea of why it happens! That line never gave me any problem, before I put that cutscene!  ???

Note: I thought it was something related to the music, but it happens also if the music is switched off.

Note2: I use AGS 3.0
Title: Re: Why does my game suddently crash?
Post by: Pumaman on Tue 08/04/2008 21:33:41
Has it generated a crash dump file? If so, can you upload it?
Title: Re: Why does my game suddently crash?
Post by: Clarabella on Tue 08/04/2008 23:06:21
Yes, I found this .dmp file in my game directory.
Here it is:

http://www.yourfilelink.com/get.php?fid=460045
Title: Re: Why does my game suddently crash?
Post by: Pumaman on Thu 10/04/2008 21:02:08
Thanks, I'll look into it.
Title: Re: Why does my game suddently crash?
Post by: Clarabella on Sat 12/04/2008 22:53:33
Thanks to you!  :)
Title: Re: Why does my game suddently crash?
Post by: Clarabella on Thu 17/04/2008 17:30:14
I just found what was wrong with my game!
It was such a silly thing, and i discover it when I noticed that the game only crashed when character tried to move right... I didn't create a third loop for right walk in view 3!
Thanks again to you all for the help, and sorry for my stupidity  ::)
Title: Re: Why does my game suddently crash?
Post by: Pumaman on Thu 17/04/2008 17:31:30
Glad you've solved it. The final release of 3.0.1 should stop it crashing in this situation.