Since upgrading my project from Godot 4.0.3 to 4.1, whenever I export my game, its main character loses her textures! Everything looks normal when I test the project from the editor.

When I export for Windows or Android (probably other platforms - unable to test) and run the exported game, her textures are missing.

I've tried clearing the material override, and re-saving the material override, but neither has worked. Importing the model into a new project and exporting from that, she retains her textures.

Anyone know what could be causing this?

I've been continuing to hit my head against this today and it's worse than I thought. I'm trying to reapply the character's meshes' material, but they keep turning significantly darker than they're supposed to be. Then the material resource file disappeared between sessions, and I had to save a new one from an instance from a mesh I hadn't reapplied the material to yet. Now that's turning dark, too.

It seems completely bugged and broken and I don't know what to do.

    snowy-fox It seems completely bugged and broken and I don't know what to do.

    Create a minimal project showing the issue and report an issue. It ill be better for everyone, you included.

      I've noticed the texture compression settings can be an issue, especially on mobile. Using lossy compression (0.7 is fine) is the most compatible but worst performance. Basis is the best quality, and can work well, but might not be supported everywhere (I had some issues with 4.0, maybe fixed in 4.1). But generally VRAM compression will give the best performance. You want to go into the advanced settings for textures and enable S3 and ETC import, and then restart the editor. This should in theory work, at least for desktop and mobile.

        cybereality I just tried enabling Import S3TC BPTC under VRAM Compression (Import ETC2 ASTC was already enabled), but no dice. I don't see anything about lossy compression - did you mean lossless? In either case, that didn't work, either.

        I'm thinking the cause of the issue is that I moved the resource files shortly before updating to Godot 4.1. I just checked the debug when running the Windows export, and it's showing exactly the resource that it's failing to find. It's definitely the PNG texture that's not being found (and I find it really weird that the engine's finding it just fine in the editor and while testing, but not when exporting).

        I've also occasionally been seeing "invalid UID" warnings when starting the editor.

        At this point, I'm thinking my only real recourse is to just scrap the current implementation, reimport the character model and texture (in the correct place this time), and rebuild her again. I kind of want to make a small tweak to the model anyway, so this is an opportunity to do that.

        JusTiCe8 I get you, but I don't know whether I can even recreate the issue, since I don't know exactly what the cause was. I updated to 4.1, and my character's textures broke. There were a lot of other steps up to that point, and I don't know which ones led to the textures breaking.

        I already tried creating a minimal project to import the model again and verify that it wasn't just some kind of incompatibility issue between the model and 4.1, and it worked fine there.

        Having made some tweaks to her model, I'm now in the process of rebuilding the character to ensure Godot knows where her texture is. She seems to be finding the whole process somewhat disorientating.

        Fortunately, rebuilding the character wasn't too much of a headache. And, I'm happy to report, the game now exports with the textures loading correctly! Everything should be clean now.

        Thanks for the suggestions, anyway, guys.