Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Ultima992 on Thu 24/02/2011 22:38:38

Title: KQ3 Redux: Bug Crash - Mountain Fall off... [SOLVED]
Post by: Ultima992 on Thu 24/02/2011 22:38:38
 :o good lord survey before posting and registering.. how FUN  :=

anywho



I was walking down the mountain and walked over to fall off... (yes intentionally) Then got the option to restore or restart, I clicked restart and got this error message

0xc0000005 occurred in ACWIN.EXE at EIP=0x0043B2aa; Program pointer is +25 ACI version 3.20.1110, gtags (3,8)
Title: Re: Bug Crash - Mountain Fall off...
Post by: Calin Leafshade on Thu 24/02/2011 22:39:39
Is this in a specific game or just in life in general?

I suggest staying away from cliff edges.
Title: Re: Bug Crash - Mountain Fall off...
Post by: Ultima992 on Thu 24/02/2011 22:48:58
heh it is possible as life in general... but we are here to talk about technical problems.
King Quest 3 Redux.
Title: Re: Bug Crash - Mountain Fall off...
Post by: Calin Leafshade on Thu 24/02/2011 22:54:16
I suggest you post in their game thread then:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=42955.0
Title: Re: Bug Crash - Mountain Fall off...
Post by: Ultima992 on Thu 24/02/2011 22:58:23
beautiful idea.  ;D
... i was directed here in the first place  ::)
Title: Re: Bug Crash - Mountain Fall off...
Post by: Pumaman on Sat 26/02/2011 13:30:25
The 3.2.1 release fixes a few crash bugs with the engine, unfortunately I think it's come just too late for the KQ3 release...
Title: Re: Bug Crash - Mountain Fall off...
Post by: Dualnames on Sat 26/02/2011 14:10:45
Quote from: Calin Elephantsittingonface on Thu 24/02/2011 22:54:16
I suggest you post in their game thread then:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=42955.0

The best approach would be to actually pm them. Your bug however has probably much to do with a bug I had with H2G2 that for a reason the engine corrupted the savegame done at a certain point. I coded a workaround approach with the same result, not sure if there's much there to be done, or if the workaround is much of a hassle. But chances are this has nothing to do with AGDI.
Title: Re: Bug Crash - Mountain Fall off...
Post by: AGD2 on Sat 26/02/2011 18:47:07
I'll try compile the new version of KQ3 Redux(hopefully in a few weeks) with the newest AGS engine release, and fix up some other bugs and issues that have been found in the process. Hopefully that will fix this crash.
Title: Re: Bug Crash - Mountain Fall off...
Post by: AGD2 on Sun 27/02/2011 03:32:45
Just tried recompiling King's Quest 3 Redux in AGS 3.2.1 and still got the crash error when restarting the game, unfortunately:

QuoteIllegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x0043B2CA ; program pointer is +25, ACI version 3.21.1113, gtags (8,1)

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.

And here's a link to the CrashInfo.dmp file:

http://www.agdinteractive.com/temp/CrashInfo.3.21.1113.dmp

Note that restarting the game doesn't actually call the RestartGame function, but does RestoreGameSlot(998); instead.
Title: Re: Bug Crash - Mountain Fall off...
Post by: Dualnames on Sun 27/02/2011 14:06:43
I used the same way for restart (a slot) and here's the bug I got returned.

Quote
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x005195E1 ; program pointer is +77, ACI version 3.12.1073, gtags (29,0)

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.

Title: Re: Bug Crash - Mountain Fall off...
Post by: Pumaman on Sun 27/02/2011 22:08:30
How do you reproduce this? I tried walking down the cliff and falling off, but the Restart button worked fine. Any specific conditions that cause this?
Title: Re: Bug Crash - Mountain Fall off...
Post by: AGD2 on Mon 28/02/2011 02:44:27
It seems like it can happen at random any time the game restarts (not just when walking off the cliff), but it doesn't occur every single time.
Title: Re: Bug Crash - Mountain Fall off...
Post by: Monsieur OUXX on Mon 28/02/2011 13:48:24
sorry for polluting...
...but I have to salute how hard-core you guys are, starting over in a Sierra game every time you die instead of loading you latest saved game!  :=
Title: Re: Bug Crash - Mountain Fall off...
Post by: AGD2 on Mon 28/02/2011 14:06:53
Actually, with the crash, it's more like having two "quit" buttons on the GUI, so some players might need even notice the difference. ;)
Title: Re: Bug Crash - Mountain Fall off...
Post by: Dualnames on Mon 28/02/2011 14:16:48
Quote from: Ouxxey_games on Mon 28/02/2011 13:48:24
sorry for polluting...
...but I have to salute how hard-core you guys are, starting over in a Sierra game every time you die instead of loading you latest saved game!  :=

Once a ninja always a ninja.  ;)
Title: Re: Bug Crash - Mountain Fall off...
Post by: AGD2 on Thu 03/03/2011 15:41:52
Here's another similar illegal exception crash that somebody posted in our Technical Forum, which occurs under different circumstances:

After launching the game I alt-tabbed.
When I alt-tabbed back I hit 'Esc' to skip the intro credits.
Then this happened:

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x00412A30 ; program pointer is +373, ACI version 3.20.1110, gtags (0,10)

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.

in "room227.asc", line 114
Title: Re: Bug Crash - Mountain Fall off...
Post by: Alan v.Drake on Thu 03/03/2011 16:36:49
Quote from: AGD2 on Thu 03/03/2011 15:41:52
Here's another similar illegal exception crash that somebody posted in our Technical Forum, which occurs under different circumstances:

After launching the game I alt-tabbed.
When I alt-tabbed back I hit 'Esc' to skip the intro credits.
Then this happened:

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x00412A30 ; program pointer is +373, ACI version 3.20.1110, gtags (0,10)

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.

in "room227.asc", line 114

My bet the problem is Audio related, remember that when skipping you risk null pointer references.
Title: Re: Bug Crash - Mountain Fall off...
Post by: tzachs on Thu 03/03/2011 21:19:25
Quote from: AGD2 on Thu 03/03/2011 15:41:52
in "room227.asc", line 114

And what do you have written in that line?
Title: Re: Bug Crash - Mountain Fall off...
Post by: AGD2 on Fri 04/03/2011 13:35:02
I'm not sure if it's related to the audio, but I also used to experience this illegal exception often, even when I didn't skip past with the Esc key. After the EndCutscene(); command, lines 113 and 114 are:

 gStonewall.Visible=true;
 Wait(10);

When I changed the gStonewall GUI's "Visibility" setting in the editor from "Pause Game When Shown" to "Normal, Initially Off" it seemed to greatly reduce occurrences of this crash. Unfortunately, it didn't eliminate them completely, though.

It's strange because of all the games I've compiled with AGS, none of them seem to produce any illegal exceptions, except for King's Quest III Redux.
Title: Re: Bug Crash - Mountain Fall off...
Post by: Alan v.Drake on Fri 04/03/2011 15:56:44
When exactly are you saving into the restart slot ? I have experienced some weird stuff while trying to load a game saved during a room load function... might be related, who knows ?

- Alan
Title: Re: Bug Crash - Mountain Fall off...
Post by: tzachs on Sat 05/03/2011 14:16:40
I have no idea what the problem is, but if it always fall on the visible = true line, maybe you can replace it with using transparencies instead, and see if that solves the crash.
Title: Re: Bug Crash - Mountain Fall off...
Post by: Pumaman on Sat 12/03/2011 16:36:55
Quote from: AGD2 on Mon 28/02/2011 02:44:27
It seems like it can happen at random any time the game restarts (not just when walking off the cliff), but it doesn't occur every single time.

Hmm, I still can't replicate this, but I've made a change that might fix it. Can you please try this ACWIN:
http://www.adventuregamestudio.co.uk/acwin.zip?v=new
and see if the problem still happens?

Quote
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x00412A30 ; program pointer is +373, ACI version 3.20.1110, gtags (0,10)
in "room227.asc", line 114

This looks like the GUI Background crash in 3.2, hopefully this one actually is already fixed by 3.2.1.
Title: Re: Bug Crash - Mountain Fall off...
Post by: AGD2 on Sun 13/03/2011 21:26:33
Thanks, I've compiled the game with the new acwin.exe and so far it hasn't crashed under the same circumstances.

This may be related to different circumstances, but KQ3 Redux has always been more laggy on my system that our other KQ remakes. That is, when watching the intro sequence, he game would pause slightly every few seconds and the music would glitch a little. This unwanted effect also seems to be gone when using this latest acwin.exe.

There's something else I forgot to mention, which persists, however. When watching KQ3 Redux's intro sequence, whenever the screen crossfades to a new room, the music volume level seems to spike louder momentarily after the room's fade-in finishesl. I'm guessing this happens when LegacyMusicVolumeAdjustment is set to Loudest. Just reporting it in case the volume spike is an unintended bug.

Anyhow, I'll keep testing a bit more with this new acwin.exe and let you know if the crash seems to be fixed.
Title: Re: Bug Crash - Mountain Fall off...
Post by: Pumaman on Sun 20/03/2011 19:33:50
Thanks, let me know if you're happy that the new acwin isn't crashing, and I'll build a Final 2 release.

QuoteThere's something else I forgot to mention, which persists, however. When watching KQ3 Redux's intro sequence, whenever the screen crossfades to a new room, the music volume level seems to spike louder momentarily after the room's fade-in finishesl. I'm guessing this happens when LegacyMusicVolumeAdjustment is set to Loudest. Just reporting it in case the volume spike is an unintended bug.

Interesting thanks, has anyone else had this problem?

Also, are you using an old-style PlayMusic or a new-style audioclip.Play() for the music in the intro?
Title: Re: Bug Crash - Mountain Fall off...
Post by: AGD2 on Mon 21/03/2011 05:46:19
Well, it hasn't crashed since using the new acwin, so I'm assuming whatever you did must have fixed it. :)

QuoteAlso, are you using an old-style PlayMusic or a new-style audioclip.Play() for the music in the intro?

Ah, yes, it was using the old-style format. I changed it to the new type and it fixed the volume spiking issue.
Title: Re: Bug Crash - Mountain Fall off...
Post by: Pumaman on Mon 21/03/2011 22:33:26
Ok thanks, glad it's solved! I'll upload 3.2.1 Final 2 now.
Title: Re: Bug Crash - Mountain Fall off...
Post by: strazer on Thu 31/03/2011 12:47:01
Ultima992: Looks like the crashes have been fixed since AGS v3.2.1 Final 2. So either wait for an updated version of the game to download or, in the meantime, copy the latest acwin.exe from the AGS folder to the game folder and run it like this:

"acwin.exe kq3.exe" (or whatever the name of the game executable is).