Page 1 of 1

.ico file not working as Icon...

PostPosted: Thu Sep 13, 2007 9:51 pm
by Sgt. Sparky
I have an Icon(.ico file) that I made with version 3.2 of my painter program(I have not posted this version yet.),
but I keep having one problem: every Icon I make with it works with every program I have that can view Ico files exept GE.
Meaning: every time I add my painter Icon I made with my program as an Icon for my program and I try to export it the exported version does not have my icon, instead it simply has the GE icon... :(
any Ideas? :(

Re: .ico file not working as Icon...

PostPosted: Thu Sep 13, 2007 10:08 pm
by makslane
Can you post the icon?

Re: .ico file not working as Icon...

PostPosted: Thu Sep 13, 2007 11:16 pm
by J Maker
samething happens to me but i use just plain paint :| it's SOO frusterating and i export it as a .ico

Re: .ico file not working as Icon...

PostPosted: Fri Sep 14, 2007 12:06 am
by Sgt. Sparky
makslane wrote:Can you post the icon?

okay,
Here it is(it is in a .zip because extention .ico is now allowed. :( ) :

Re: .ico file not working as Icon...

PostPosted: Fri Sep 14, 2007 1:38 am
by makslane
I think there are something wrong in this icon file.
Some techinical details now...

The icon file starts with a header thats contains three values:

Reserved: Reserved (must be 0)
Type: Resource Type (1 for icons)
Count: How many images?

In your file, the Reserved and Type is wrong.
Loading the file in a HEX editor, I can see there is not a real .ico file, but a BMP file!

So, Game Editor can't export the icon.

Read more at:
http://msdn2.microsoft.com/en-us/library/ms997538.aspx
http://www.bsdg.org/SWAG/WIN-OS2/0058.PAS.html

Re: .ico file not working as Icon...

PostPosted: Fri Sep 14, 2007 1:42 am
by Sgt. Sparky
allright, thankyou. :D

Re: .ico file not working as Icon...

PostPosted: Sun Sep 16, 2007 12:32 pm
by Fuzzy
some programs would accept bmps as ico. At one point windows would look at the header of a file and decide what it was. it would ignore the extension in some cases, so there was a security issue as people would hide viruses in things like screen savers.