• Building
  • Change file icon of exported game (taskbar and application icon work, only file icon doesnt't work)

So I wanted to export my game, but I could not figure out how to change the file icon. I set the icon in project setting and also in export setting). Also I downloaded rcedit and linked it with godot.

On export I am getting this error message: ERROR: recognize: res://default_env.tres:1 - Parse Error: At: scene/resources/resource_format_text.cpp:1190

My icon is 16x16 and I am exporting to windows

I haven not tried changing the file icon for Windows exports, so I do not have personal experience in this area.

Are you using an .ico file? If so, does it have icons for 16x16, 48x48, and 256x256? Apparently those are all required, at least based on the documentation. Also, have you rebooted your computer? According to this GitHub issue, it could be that file explorer is using a cached icon and needs a reboot.

6 days later

Oh, I have only 16x16 ico icon, so I will try to scale it up and make more ico files, but how can I assign more native icons? There is only selection of one file

Sorry for me not understanding how ico works. I converted the icon on some website from png to ico rather than make ico file in gimg and then it worked

3 months later

It is a bit of a pain, but you must dink with the icon in multiple spots.

First, create an .ico file. Make sure that it has all the required formats for Windows: 16, 32, 48. I like to add a 256 as well. There are a lot of online icon editors you can use. I use GIMP.

Copy your .ico file to somewhere in your project. I keep the .ico under res://Icons/Windows.

Second, open the Export dialog and set your icon under Application→Icon.

Third, open your main scene and make sure _ready() sets the icon (and window title!) properly. Something like:

 func _ready():
    if OS.get_name == "Windows":
        OS.set_native_icon("res://Icons/Windows/app.ico")
    else:
        ...

Finally, you need to generate a Windows executable from the export menu. Once you have the .exe, you need to manually change the icon to use your game’s icon. This requires a special tool. I use Resource Hacker (get the patch from rammichael.com/resource-hacker-fx too). Several other similar tools exist. Enjoy googling.

Good luck!

export the game create the .ico in some web (16, 32, 48, 64, 128, 256 sizes are required) open the exported .exe with resource hacker and replace the icon for your .ico save and close. done

if you dont see changes move the the files to another folder. Its just a cache thing.

6 days later

if you dont see changes move the the files to another folder. Its just a cache thing.

Alternatively, you can export the executable with a different name every time.