Are my Resources corrupt?

Godot Version

4.5

Question


I suddenly started getting these errors for all kinds of different tres files. These files won’t open in the inspector, but I can go into the file, take out a line, save it, and then it will open in the inspector. I tried deleting the .godot folder. That actually re-breaks the resources I fixed. What gives?

It appears no one here has an idea. If you provide more information, maybe? Like, what line do you “take out” to fix the resource? Who puts a reference to pelts.tres into your camp_leather.tres? Surely it’s not Godot?

1 Like

So it looks like maybe you deleted pelt.tres outside the engine and then when you tried to load up camp_leather.tres it couldn’t load. Then when you load everything that depends on camp_leather.tres they can’t load. So re-create pelt.tres so that it can be found, then delete it in the editor.

That’s my best guess.

This error happens when you have circular references (if, for example camp_leather.tres uses pelts.tres and pelts.tres uses camp_leather.tres)

2 Likes