A few days ago I did a completely fresh install of my OS (as in literally wiped my drive completely in the process, for clarity), I have my project backed up on github with the gitignore set up with the normal things godot adds automatically.
Since pulling onto the fresh install of my OS, any time i run a scene I get a plethora of warnings, about multiple invalid UID’s. looking like this:
load: res://Enemy/Unorganized/smoll_bullet.tscn:3 - ext_resource, invalid UID: uid://c0oomjsjcrawm - using text path instead: res://Enemy/Unorganized/Assets/normBulet.png
<C++ Source> scene/resources/resource_format_text.cpp:453 @ load()
in lookin it up i read that deleting the UID_cache.bin in the .godot folder may work, so i did that but i still get the warnings.
What else could this issue be?
I had the same issue with tres-files provided by a tutor of an online course.
After importing the files I got warnings:
[…] ext_resource, invalid UID: uid://dvedwflejrat8 - using text path instead: […]
These tres-files were of type LabelSettings and contained a link to a font file. The UID of this link didn’t match the UID of the imported font file in my project. This is because the UID in these tres-files contained the UID of the imported font file from the tutors project.
In this case I was able to solve this issue with two alternative methods:
Find one Node where this resource is used (in my case Label). In Inspector: Open drop-down menu of resource (in my case Label Settings). Select Save to save the resource again. Now UID is replaced with the right one.
Open import-file of the source file (in my case fontfile.ttf.import) and all tres-files in a text editor of your choice. Replace the UIDs accordingly, in my case: Copy UID of import-file and replace UID in key [ext_resource type="FontFile ..." in all tres-files.
Hope that helps to understand and solve the issue even if it may affect other types of resources in your project.