Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: JD on Thu 25/12/2003 02:34:17

Title: AGS Crash
Post by: JD on Thu 25/12/2003 02:34:17
I was just importing some sprites and bang:

(http://home.quicknet.nl/qn/prive/jjj.dekker/error.gif)

When I tried to rerun AGS it told me its christmas and the only way
to get it running again was to set the date back  ::) I hope that
isn't the cause for the crash  ;)
Title: Re:AGS Crash
Post by: Khaveen on Thu 25/12/2003 02:42:38
Heheheheheheehehhehe, CJ, that's AWESOME!! HAHAHAHAHAH!!!  :D :D
(Just tried running agsedit.  :P)
Title: Re:AGS Crash
Post by: Damien on Fri 26/12/2003 23:40:55
I read your posts and ran the engine on 25th, but nothing happened, engine ran normally as always. I was messing around in it and when i clicked on "Views" i got similar (the same?) message and program crashed. Then, i opened the program again and clicked views and it happened again, then i opened it one more time and clicked everything else to see if it wil crash again, and it did when i klicked sprites. Then, i was playing some more in the program...     (Several hours later)   ...and then it crashed again when i clicked sprites. The next time i ran it everything was OK i could click sprites, views, everything worked. I thought it may be because of the easter egg, but when i checked my comp. date it said it was 22nd, so i guess that's not the cause of the crash.

You still there? ;D
Title: Re:AGS Crash
Post by: JD on Fri 26/12/2003 23:48:19
Heh well it only happened once here! So I don't really know the cause.
Perhaps when CJ returns he can look into it...
Title: Re:AGS Crash
Post by: Pumaman on Tue 30/12/2003 17:56:00
def: has it happened since, or was it just a one-off? Do you remember at what point in the import process it happened? (ie. was it when you clicked "import file" or when you selected the region to import?)

Damien: that doesn't sound good - does it happen on a regular basis? Is your game small enough to upload for me to take a look at? What AGS version are you using?
Title: Re:AGS Crash
Post by: JD on Tue 30/12/2003 19:06:08
Well it's the first time it happened. And it hasn't happened ever since. It happened when I double clicked on a sprite.
Title: Re:AGS Crash
Post by: Pumaman on Tue 30/12/2003 19:07:53
What, just to view the sprite's properties once it was imported?
Title: Re:AGS Crash
Post by: JD on Tue 30/12/2003 20:40:31
Yes, I believe I imported a few sprites, and double clicked on one. It hasn't happened ever since.
Title: Re:AGS Crash
Post by: Damien on Tue 30/12/2003 21:57:10
So, I noticed my backgrounds were rather huge (10mb), so i wanted to import them into the ags editor and see how much will their size change when compiled inside the game.
Ok, so here's what i did. Step by step.
1. I selected start a new game and then blank game
2. selected 640x480 resolution
3.Changed game pallete to 32 bit
4. Created 4 backgrounds, one of them was animated (6 images), but I imported only 5 because that's the limit
5.For the animated background i choosed fulscreen preview to see how it looks
6.Made some walkable areas for room1¸
7.saved
8.tested
9.clicked on views and it crashed

Here is teh picture of my comp crashed (1024x768):
http://version5.illicitdev.net/uploads/348/images/Crash.gif (http://version5.illicitdev.net/uploads/348/images/Crash.gif)

10.I ran asg again, loaded what i have saved and it was all there, i clicked views and nothing happened, everything was ok.

Ps. I have winows Xp, and i used ags 2.6
Title: Re:AGS Crash
Post by: Pumaman on Tue 30/12/2003 23:44:58
Hmm, so if you then load that game into the editor, load room 1, and do a full screen preview - then go back to the Views pane, does it crash then?

If so, could you upload the game so I can take a look?

Also, when you say one of the backgrounds was animated, do you mean you imported an animated PNG file? If so, that could be the cause of the problem since AGS doesn't handle image files with multiple frames.
Title: Re:AGS Crash
Post by: Damien on Tue 30/12/2003 23:58:24
No, only the first time i run the engine, set the game palette to 32 bit, and all that, only then game crashes. When i load the game with this settings everything runs ok, i can see the views. Also full screen preview has probably nothing to do with that, when i opened it after loading the game it never crashed (on all backgrounds). Maybe it's that 32 bit conversion?

For animated backgrounds i use bmp images
Title: Re:AGS Crash
Post by: Pumaman on Wed 31/12/2003 00:14:34
I just tried going through the steps you listed, but it didn't crash for me. If you import a simple blank image for the main background and for the 4 animated background frames, does the problem still happen?

If you go to Views before doing any of the background importing, does it crash then?
Title: Re:AGS Crash
Post by: Damien on Wed 31/12/2003 00:25:24
It's the 32bit pallete conversion!!!!

So, I:
1.Create a blank game (640x480)
2.Click views
-Nothing happens, everything is OK-

3.Convert game palette to 32 bit
4.Click views
-Guess what, CRASH!-

Edit:
If i save the game after changing the pallete to 32bit and then rerun the program and load the game, then everything runs normally.
Title: Re:AGS Crash
Post by: Inkoddi on Wed 31/12/2003 00:28:19
whoa, it actually crashes, but not if you don't click Views before you change color depth...
Title: Re:AGS Crash
Post by: Pumaman on Thu 01/01/2004 15:03:41
Hmm strange, I did that a couple of times but it didn't crash. What version of Windows are you running? (98/2k/XP ?)
Title: Re:AGS Crash
Post by: Gankkizz on Thu 01/01/2004 18:13:52
It happened to me too. I'm using XP
Title: Re:AGS Crash
Post by: Damien on Thu 01/01/2004 18:15:30
Xp
Title: Re:AGS Crash
Post by: Scorpiorus on Sat 03/01/2004 15:44:05
Quote from: Damien on Wed 31/12/2003 00:25:24
It's the 32bit pallete conversion!!!!

So, I:
1.Create a blank game (640x480)
2.Click views
-Nothing happens, everything is OK-

3.Convert game palette to 32 bit
4.Click views
-Guess what, CRASH!-

Edit:
If i save the game after changing the pallete to 32bit and then rerun the program and load the game, then everything runs normally.

hmm, the crash with clicking on the view panel has happened to me. But I worked in 16bit colour and didn't switch to 32bit at all. I was just navigating the tree and clicked on the view panel. I'm on Win2k. I'll be trying to replicate.
Title: Re:AGS Crash
Post by: Pumaman on Fri 09/01/2004 23:07:25
It's possible this is the same odd crash as used to happen to some people in the game engine.

I'll switch the image scaling code to the version the engine uses and see if that clears up the problem.