My pngs don't show in export

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Zuckey

I dynamically load my textures in the godot editor and it works fine, but when I export, they don’t show up when I start the game.

:bust_in_silhouette: Reply From: kfj001

I had this problem with a game I wrote in Godot that addressed scenes (For transitioning) by resource file name. Once bundled the game would just not run.

Anyway, was because when addressing resources by their string names, the Godot engine didn’t know they need to be bundled in like that.

In the resources tab of the Export screen, add the resources you’re trying to reference and try exporting again?

Unfortunately it didn’t work…

Zuckey | 2020-11-04 10:00

:bust_in_silhouette: Reply From: CharlesMerriam

You are probably loading them from the ‘res://’ path. Check your stderr output for “loaded resource as an image file” warnings.

See #24222 for a long discussion. The problem and workaround are in a comment

Or you might have a different issue. Good luck.

:bust_in_silhouette: Reply From: noonewon4

you have to use ico instead of png
if you are exporing

step 1
Download “rcedit-x64.exe” or “rcedit-x86.exe” in the link below

step 2
open Godot and When you opened …
Editor-> Export-> Windows → Select the directory of Rcedit
then locate to " rcedit-x64.exe" or “rcedit-x86.exe”

step 3
make sure icon must be ico file to show up
ico size needs to be multiple size
16 x 16 , 32 x 32 , 48 x 48, 64 x 64, 128 x 128 , 256 x 256
i recommend you download Gimp
Gimp is Free SoftWare You can make multiple-size ico

step 4

once you finished making ico
then open Godot …
Project → Export → Add → Windows Desktop
then click " Windows Desktop "
and Application->icon
Click the directory to find the ico
as you wish