Godot keeps switching between two scenes being corrupted?

Godot Version

4.2.2

Question

This is driving me to tears. I made a major flaw in my game design early on, and I just spent a week rebuilding the game from scratch essentially to fix it. I finally got it done, but now every time I open Godot, there’s a new scene it says that’s corrupted! It seems to have fallen into a cycle. Now when I first open it, it will say the main menu scene is corrupted. If I restart Godot, then it says my lobby scene is corrupted. Another restart goes back to the main menu being corrupted and back and forth.

I have tried deleting the godot folder, removing godot completely from my computer and restarting, pulling a previous version from github and working on that, no matter what happens I can’t get away from this error!

Please someone tell me how to escape from this hell. At this rate the only thing I can think of is scrapping it and moving on to another engine. Or just giving up on game dev as a whole.

EDIT:
For some extra info, the scenes work fine in the part of the cycle where they aren’t the ones that say they are corrupted. A bunch of sprites get their PNGs unassigned though. If I rename both of the scenes before launching the project, the scenes load just fine as well. This is so baffling!

I had a very similar error with my game. What was causing the issue for me was using the preload() function. After I switched to using load() I didn’t get the errors anymore.
I did have to go back to project selection and reload the project a few times to fix the corrupted scenes.
Hope this helps.

It’s also possible to open the .tscn files in a text editor and take a look at the indicated lines. The format is decently human readable - there’s some documentation here.

I cannot believe that something so incredibly simple (and in my opinion also stupid) was the cause.

You have saved me several hours of grief, thank you!

Yeah. I think it’s a known issue that should be fixed in the next release, but still frustrating.

1 Like

I had the same issue with one of my several projects, thank you for the information.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.