The main scene in my project became corrupt, which I assumed was due to updating to 4.0 and then 4.1. After trying to fix it, to no avail, I rebuilt the scene from scratch yesterday, only reusing the same script. During the session yesterday I had no problems with it at all. Today when I have opened Godot, it is now corrupt again, with the same error "Condition "nc == 0" is true. Returning: nullptr". I assume this must be something to do with the script as that is the only reused part - any ideas?
#Scene becomes corrupt after closing Godot with error Condition "nc == 0" is true. Returning: nullptr
3 messages · Page 1 of 1 (latest)
Having reflected on this some more, the rebuilt scene does include some other packed scenes, so the problem could be in one of those (although they all seem to open in the editor fine)
Full error message:
scene/resources/resource_format_text.cpp:283 - res://grid_battle_2.tscn:35 - Parse Error:
Failed loading resource: res://grid_battle_2.tscn. Make sure resources have been imported by opening the project in the editor at least once.
scene/resources/packed_scene.cpp:92 - Condition "nc == 0" is true. Returning: nullptr
From looking at the Godot code it seems like nc is a count of nodes, but the info given isn't enough to pinpoint which scene is causing this