• Godot Help
  • HELP! Scenes became invalid/corrupted after moving folders around

I was working on my project in Godot 4 when I decided to move some of my files around using Godot's built in file system. I was moving one of my main folders (UI) into another of my main folders (Scenes) when I did this, almost all of my main files for the game, both in UI and files already in Scenes got "corrupted".

I've just now saved a copy of all the files and have tried moving the UI folder back to where it was and tried reopening the copied file save, but it didn't work.

What I assume happened is that some of my Player UI (A counter scene which tracks the amount of items picked up) got invalid/corrupted somehow from the move, stuff and invalidated/corrupted my Player scene somehow, which did something weird to invalidate/corrupt my world scene somehow. Googling online has shown few people to have somewhat similar problems, and people have claimed something about changed dependencies? I didn't really follow, though...

Everything that was connected to my player scene is no longer working (shows as corrupted) except for my healthbar scene for some reason

Error message:

Running on Windows 11 on the Steam version, not sure if this will help or not. The files only started corrupting after I moved the UI folder. Code files weren't corrupted or changed.

Any help or info would be greatly appreciated, as I've been working on this project for a while now

  • Right Click on your player.tscn in the godot file explorer and click Fix Dependecies then manually attribute the dependecies.

Right Click on your player.tscn in the godot file explorer and click Fix Dependecies then manually attribute the dependecies.

    Loxyrak

    Thank you!

    I looked through my files and figured out that something weird happened to my counter scene (it showed that the dependancy was in the right place, but everything that had been connected to it was broken) so I deleted the scene and remade it and now everything works again.

    5 months later

    Here's what working for me to fix this error: close editor, search in the .editor folder for all files containing the corrupted scene's name (they are going to be name something like your_scene_name.tscn-editstate-2e5312b3e75d2338868814f479b1feeb.cfg), delete them, restart editor.