Topic was automatically imported from the old Question2Answer platform.
Asked By
plshelp
I moved my ‘scenes’ folder containing all of my scenes into a different folder by mistake, so I moved it back, and now scenes don’t work because scenes indirectly reference other scenes. For example, Race4 says that World is missing and World says that Race4 is missing so they can’t be opened. How do I adjust this so they don’t reference one another?
Also, it spits out
scene/resources/packed_scene.cpp:165 - Condition “!sdata.is_valid()” is true. Returned: nullptr
when I choose ‘open anyway’
plshelp | 2023-03-08 18:57
The pasted link isn’t working. It needs to point directly to the image file itself (*.png, *.jpg, …)
Did you try the Fix Dependencies workflow presented by the dialog?
It only lets me select *tres files but my scenes are .tscn.
plshelp | 2023-03-08 18:52
As a test, I just intentionally “misplaced” a few scene files in a test project and started Godot 3.5. I’m presented the same Error loading: main.tscn dialog you show above (though, that image link doesn’t work in the forum - I had to edit your post and cut/paste the link to see the image).
Clicking the Fix Dependencies button presents me with a Dependencies For: main.tscn dialog, with a record for each of the missing dependencies (.tscn files in my case too).
To the right of each record is a folder icon that can be used to manually locate each missing file.
Or, there’s a Fix Broken button that will attempt to automatically find the missing files within the project folder.
All of that seems to work as intended here. What’s different in your case?
jgodfrey | 2023-03-08 19:03
Ultimately, the broken references are in your main project.godot file. That’s just an ASCII-format file, so you can readily read / edit it as necessary. So, you could find the incorrect paths and fix them manually.
If you are going to hand-edit the project file, I’d strongly recommend that you back it up first.