Open Shadowblitz16 opened 11 months ago
Duplicate of a multitude of cyclic reference issues
I am unsure if I should close this.
See:
Think this matches this:
@AThousandShips looks like the godot team are not planning on fixing this and just are just changing the error that is triggered.
That doesn't really fix the issue. Allowing scenes that reference each other is a very important thing to have
Then I'd suggest you state your opinion on those issues and tracker instead of here, as this is just one of many duplicates or tangential issues
Just putting it here for future reference, I had a cyclical preload statement, (https://github.com/godotengine/godot/issues/70985), but I received the error listed here (... referenced non-existent resource at ...
). If anyone is also stumbling into this issue, you might have a cyclical preload, which can be fixed by changing the preload call into a load call.
This is more of a core problem than a GDScript problem. The resource loading system does not support cyclic dependencies.
Godot version
v4.1.2.stable.mono.official [399c9dc39]
System information
Kubuntu 22.04
Issue description
If two packed scenes reference each other gdscript parser fails with..
I suggest that PackedScenes be lazily evaluated in the same way if they were just a string path.
Steps to reproduce
Minimal reproduction project
DumbSceneBug.zip