I JUST finished my first little game and now it crashes weirdly

Started by barnacleboy, Mon 24/01/2022 22:05:25

Previous topic - Next topic

barnacleboy

I'd just put the finishing touches (an end screen) on my working game and suddenly it doesn't work at all.
It's supposed to load a first screen, where you click anywhere, which loads the actual game screen where the action begins. This was all working.

Now, after adding a 'game over' screen, somehow the cursor doesn't appear in the first screen, but a click still loads the next screen (the game), but it just crashes there. I'm not sure how to describe that better. It's giving no useful error and I can't really figure out what I changed that caused this.

Here's the error:
---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x00427EEA; program pointer is +3330, ACI version 3.5.1.14, gtags (0,0)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and contact the game author for support or post these details on the AGS Technical Forum.


The first screen is simply a png of the game's title with a hotspot the full size of the screen and a theme song - any click changes to the next room:
Code: ags
function room_AfterFadeIn()
{
  theme.Play();
}

function hHotspot1_AnyClick()
{
  cCrusher.ChangeRoom(1, 159, 1349);
}


The dump file is here in case it helps:  https://drive.google.com/file/d/1sAlvfsFN7uK4KHds1XSETxcPJrOPDcxH/view?usp=sharing

Crimson Wizard

program pointer is +3330 is at the character rendering. Two things come to mind:

1) make sure you did not assign a view with missing loops/frames to whatever character is present in the room.
2) do you use dynamic sprites in the character frames, and then delete them?

barnacleboy

That was the clue I needed. Somehow, almost all my sprites had disappeared...? No idea how that happened, but AGS did crash on me recently, who knows if that's related.
Anyway, I reimported all the missing sprites and all is well now. Thanks!

SMF spam blocked by CleanTalk