Relative Content

Tag Archive for godotgdscript

Godot 4 Scenes randomly corrupting on launch

Whenever I launch my Godot 4 project, some specific scenes in my game will corrupt themselves, such that whenever I try to open the scene it displays a popup with the text:
Scene file 'scene.tscn' appears to be invalid/corrupt.
In the console this error message is also displayed upon attempting to open the scene in the editor.
Failed to instantiate scene state of "scene.tscn", node count is 0. Make sure the PackedScene resource is valid.
I am not sure what is causing this, it will happen without me changing the scene at all, just opening and closing the editor. Most importantly, the project still runs perfectly fine, I am able to see the scenes within my game running normally when I test it, while the files are supposedly corrupted.