Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Alynn on Mon 20/11/2006 03:31:15

Title: Custom icon causing fatal exception error (SOLVED)
Post by: Alynn on Mon 20/11/2006 03:31:15
I've been trying to make a user.ico for my ags game. I've used 3 seperate icon editors, but for some reason everytime I put the user.ico in my game folder and compile the game exe has a fatal exception error.

I have tried 16 color, 256 color, full color, only 32X32 pixels, and different editor and each time after the game is recopiled and I have the new icon the game exe throws the fatal exception.
---------------------------
STR.exe - Application Error
---------------------------
The application failed to initialize properly (0xc0000005). Click on OK to terminate the application.
---------------------------
OK   
---------------------------

As soon as I remove the ico file and recompile the game works fine again.

Link to one of the ico's I've made (http://www.yelloweyedstudio.com/projects/AGS/skytower/images/something.ico)

I mean it's quite possible that I had 3 bad editors, but it doesn't seem likely.

Thanks
Title: Re: Custom icon causing fatal exception error.
Post by: Candle on Mon 20/11/2006 04:33:15
I just used it and it work fine for me?
Title: Re: Custom icon causing fatal exception error.
Post by: Gilbert on Mon 20/11/2006 06:55:34
Which version of AGS are you using?

From changes.txt:
QuoteVERSION 2.72, July 2006
- Added ability to use any size/resolution of icon, if you save your
Ã,  Ã, game with Windows 2000/XP.

If you're not using the latest version:
QuoteYour icon must be standard 32x32 pixels in 16-colour. If it is any other size or colour depth, the editor will give an error.

NOTE: The icon must be a proper Windows .ICO file, not just a renamed BMP file. Icon editors, such as AX-Icons from http://www.axialis.com, will convert it for you.

Title: Re: Custom icon causing fatal exception error.
Post by: Alynn on Mon 20/11/2006 09:38:48
Oops I forgot I didn't include that info

AGS Editor for Windowss
Windows XP ServicePack 2
v2.72, July 2006
(Build 2.72.651)

Also, I did try a 16 color icon as well and the results are the same.

But, in other words, I have the newest version. It should be working :(
Title: Re: Custom icon causing fatal exception error.
Post by: SSH on Mon 20/11/2006 14:26:52
Try saving your game out as a Template and create a new game from that template, then add the icon. Perhaps the game was corrupted in a wierd way that the icon affects somehow?
Title: Re: Custom icon causing fatal exception error.
Post by: Rui 'Trovatore' Pires on Tue 21/11/2006 01:28:14
I was actually having a similar problem with an icon of mine... I just thought I was the only one to experience it and therefore was the one to blame, so I didn't pay much attention to it. I simply can't run the game after compiling it with the icon, it fatal-exceptions-out on me. 32x32 32bit icon, with latest AGS, on WinXP Pro SP2.
Title: Re: Custom icon causing fatal exception error.
Post by: Candle on Tue 21/11/2006 06:13:55
Try this one Alynn and see if it works for you.
http://www.mediafire.com/?ayjnzzi3akn
Title: Re: Custom icon causing fatal exception error.
Post by: Gilbert on Tue 21/11/2006 06:44:23
I'd tested both Alynn's and candle's icons with V2.72, and they both crashed the executables for me, I'd tried changing Alynn's to 4bit (16) colour and it still crashed.

When I tested the 4-bit (since that's the only format earlier version supported) icon ith V2.71 it worked without problem.

So, I guess there're some problems with custom icons in V2.72, which might depend on the computers' settings (since only few people complained I guess that worked for some people). My guess is that the icon inclusion routine might rely on some windows components installed (something like .NET, for example maybe) to work properly, otherwise the generated executable might be corrupted. This may or may not be considered a bug, but I'll say if it really rely on something to work, it should be documented clearly.
Title: Re: Custom icon causing fatal exception error.
Post by: Candle on Tue 21/11/2006 18:28:58
I have 2.71 build 271.631
and 2.72 build 271.652 and the icon works with both builds.
Windows XP SP 2
Title: Re: Custom icon causing fatal exception error.
Post by: Alynn on Wed 22/11/2006 22:33:22
Has anone discovered anything about this yet?

On my own I've discovered that any icon I make and use as the setup icon works like a charm, but the executable is still a no go. Everything else is just about the same.
Title: Re: Custom icon causing fatal exception error.
Post by: Pumaman on Thu 23/11/2006 20:00:00
Hmm, that's strange -- your icon worked fine for me too.

Could you build a game EXE that doesn't work and upload it, so that I can check whether the EXE works on my machine; and hence whether it's a compilation problem or some sort of machine-specific runtime problem?
Title: Re: Custom icon causing fatal exception error.
Post by: Alynn on Thu 23/11/2006 23:28:54
Pumaman: do you want the un-icond or an iconed version?

The uniconed exe is at http://www.yelloweyedstudio.com/projects/AGS/skytower/STR.zip already compiled.

I started a new default game and tried it as well, this never starts either, this is the full game folder, the only thing added was a single (empty) room the normal default template stuff, and the custom icon.

http://www.yelloweyedstudio.com/projects/AGS/skytower/iconerror.zip

hope it helps you lock it down.
Title: Re: Custom icon causing fatal exception error.
Post by: smiley on Thu 23/11/2006 23:46:43
Do you use 2.72 Final instead of Final 2(the official release)?
Because of:

Quote from: Pumaman
Changes from Final to Final 2:
[...]
* Rebuilt ACWIN.EXE without compression to fix icon replace corrupting the file
[...]
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=24521.0
Title: Re: Custom icon causing fatal exception error.
Post by: Alynn on Thu 23/11/2006 23:56:40
You know honestly I have no idea my build is Build 2.72.651 but a download of the engine again wouldn't hurt me I guess....

I'll try that and see if that fixes it.

EDIT: Yup, newest build is 2.72.652, so I did have the one just before the final release, and as soon as I overwrote the old ags the icon went right in and the game loaded with no issues.

Sorry about that CJ, didn't mean to waste your time.

And thanks everyone for the help.
Title: Re: Custom icon causing fatal exception error.
Post by: Gilbert on Fri 24/11/2006 02:39:38
Hehe seems that I missed the final 2 version also, don't know why.
Title: Re: Custom icon causing fatal exception error.
Post by: Rui 'Trovatore' Pires on Fri 24/11/2006 11:29:36
Hmm, same here. Funny thing, I usually get 'em all...
Title: Re: Custom icon causing fatal exception error.
Post by: Alynn on Fri 24/11/2006 15:07:29
Quote from: Rui "Trovatore" Pires on Fri 24/11/2006 11:29:36
Hmm, same here. Funny thing, I usually get 'em all...

Like Pokemon?
Title: Re: Custom icon causing fatal exception error (SOLVED)
Post by: Pumaman on Sat 25/11/2006 17:15:18
Hehe thanks smiley, I even forgot about that build. Glad it's solved ;)