Why does my game suddently crash?

Started by beomoud, Thu 03/04/2008 09:07:24

Previous topic - Next topic

beomoud

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?

Dualnames

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.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Pumaman

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?

beomoud

It's all fixed now for some reason. The problem disappeared as it arose. Anyway....

Clarabella

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

Pumaman

Has it generated a crash dump file? If so, can you upload it?

Clarabella


Pumaman



Clarabella

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

Pumaman

Glad you've solved it. The final release of 3.0.1 should stop it crashing in this situation.

SMF spam blocked by CleanTalk