- Edited
Basically, I have two scenes in my project and the Engine simply freezes when I boot the Editor and it tries to open them. I can "circumvent" this issue by renaming the .TSCN file of the scenes. This will make Godot open the project with no issue, simply prompting me to fix the dependencies or say that "Can't open file xxx.tscn. The file could have been moved or deleted". It can even open the "broken" scenes afterwards and edit them without any problem!!! However, the moment I go back and fix the names of these TSCN files and Reload the Current Project, it will go back to freezing.
I don't know how to even begin to debug this, because Godot isn't producing any log file that I can use. I'm not sure how could this be, but perhaps the scenes have something corrupt in them somehow, or maybe its just a 4.0 bug that I can't seem to replicate on a new project (I tried).
My repository is located here: https://github.com/Th-eo/Proto
It's built using Godot v4.0.beta2.official [f8745f2f7].
If it freezes, go to res://data/entitites/ and rename the Player.tscn and Entity_Base.tscn files to something like "aPlayer.tscn" and "aEntity_Base.tscn" so Godot can't load them immediately.
Any help welcome. It's slowing down development a lot.
Not fixed but update:
I might have been able to locate the crash in this shader: https://github.com/Th-eo/Proto/blob/main/code/entities/PaletteSwap.gdshader
I'm reverting to an earlier commit and the moment I apply it, I can't Reload the project (doing it simply to locate the issue and it worked). WHY is a shader causing the engine to not be able to load the project?
Another Update:
Engine can open, but the moment I switch to my Entity_Scene scene in the editor, it will freeze/crash, again since introducing the shader into it.