While exporting, I got this error: Cannot open icon file 'C' Fatal error: Unable to set icon

What is the file path to the icon? Usually file paths in Windows start with C:// (if I recall correctly) so it may be the beginning of your file path isn't set correctly and that's why it is unable to find the icon. From what I can gather from the error, the issue seems to be RCEdit is not pointed to the correct icon file or the file it's pointed to is not a .ico file.

@TwistedTwigleg said: What is the file path to the icon? Usually file paths in Windows start with C:// (if I recall correctly) so it may be the beginning of your file path isn't set correctly and that's why it is unable to find the icon. From what I can gather from the error, the issue seems to be RCEdit is not pointed to the correct icon file or the file it's pointed to is not a .ico file.

It is an ico file and it is in the project directory (starts with "C://")

How did you create the .ico file, what icon resolutions are in it?

Make sure the .ico file and the path to the project has a name without any spaces or special characters in it.

@Megalomaniak said: How did you create the .ico file, what icon resolutions are in it?

256 x 256 px

@Calinou said: Make sure the .ico file and the path to the project has a name without any spaces or special characters in it.

Still not working...

Wait, I got a new error: Fatal error: Unable to commit changes

@Container said:

@Megalomaniak said: How did you create the .ico file, what icon resolutions are in it?

256 x 256 px

I'd make sure it also includes 16x16, 32x32, 48x48. I might recall wrong but I think these might have been required for backwards compatibility reasons.

edit: looking at the wikipedia article for the file format apparently windows should be able to dowscale from 256 by itself since XP tho.

Assuming you are not already, maybe try exporting from Godot with admin privileges? Maybe the program isn't being given a high enough permission to access the icon or something.

2 years later