Custom icon causing fatal exception error (SOLVED)

Started by Alynn, Mon 20/11/2006 03:31:15

Previous topic - Next topic

Alynn

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

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

Thanks

Candle

I just used it and it work fine for me?

Gilbert

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.


Alynn

#3
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 :(

SSH

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?
12

Rui 'Trovatore' Pires

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.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Candle


Gilbert

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.

Candle

I have 2.71 build 271.631
and 2.72 build 271.652 and the icon works with both builds.
Windows XP SP 2

Alynn

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.

Pumaman

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?

Alynn

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.

smiley

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

Alynn

#13
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.

Gilbert

Hehe seems that I missed the final 2 version also, don't know why.

Rui 'Trovatore' Pires

Hmm, same here. Funny thing, I usually get 'em all...
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Alynn


Pumaman

Hehe thanks smiley, I even forgot about that build. Glad it's solved ;)

SMF spam blocked by CleanTalk