You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing png files as Texture, I get ERR_FILE_CORRUPT (texture.cpp:566) when I'm running the exported project, but it works fine from the editor.
It either runs the wrong (webp) unpacker, or the png unpacker fails for some reason, or the exported file is, indeed, corrupt.
The actual export succeeds, it only gives me error when I'm running the game exe.
Steps to reproduce
See description.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
It seems that the webp module was disabled for the export templates build from some obscure build script of mine.
Still, some more human readable error message would help a lot, when the image codec is not present.
Calinou
changed the title
Png export issues (ERR_FILE_CORRUPT)
Improve error message when WebP fails to load in exported project due to the module being disabled
Jul 5, 2022
For more information, i'v use Godot 3.3.2 in the past and export with module_webp_enabled=no. Cause I don't use any webp images, only PNG images. And it work.
Today I update my project to 3.5.1 with the same export template and it cause the same problem as @simplex-fx .
With module_webp_enabled=yes it's now working, it's seem newer version of Godot has implement some feature that require webp_module to handle png image.
But anyway, it's work now, thanks @simplex-fx . Saved my time 😸
Godot version
3.4.4-stable
System information
Windows 10 GLES3
Issue description
When importing png files as Texture, I get ERR_FILE_CORRUPT (texture.cpp:566) when I'm running the exported project, but it works fine from the editor.
It either runs the wrong (webp) unpacker, or the png unpacker fails for some reason, or the exported file is, indeed, corrupt.
The actual export succeeds, it only gives me error when I'm running the game exe.
Steps to reproduce
See description.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: