Cant Preview scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Newby

When i try to open my Boss2.tscn i get an error saying

scene\resources\scene_format_text.cpp:838 - res://Scene/Boss2.tscn:1 - Parse Error:
Failed loading resource: res://Scene/Boss2.tscn

i dont know if i can recover it or it is corrupted
can someone help

can you share that file?

volzhs | 2018-05-15 05:23

how do i do that

Newby | 2018-05-15 09:23

You can upload it somewhere maybe.

If a tscn fails to load, that means it’s either corrupted, OR, most likely, one of the things inside failed to load in the first place. Is this the only error you get? (check in the system console)

Zylann | 2018-05-15 12:44

You can also open it in a text editor (scenes are just text files) and see if you notice anything wrong. If you don’t understand what’s there, you can still try to compare it to another scene file that you know is working properly (preferably of a similar scene) and see if you notice anything different that maybe shouldn’t be.

You can freely edit the file and save it and try to load it in Godot again. Just make sure you can undo your changes if it still doesn’t solve the problem (best thing is to make a backup copy of the original file).

woopdeedoo | 2018-05-15 18:49

Perhaps you changed the location of some resource or other dependency from that scene (a shader, a script, a texture, etc), and now the scene can’t access it when trying to open.

If that’s the case, then you can easily fix any file paths that point to the wrong place by editing the scene in a text editor.

woopdeedoo | 2018-05-15 18:55