Failed loading resource

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

Hi, opening res://src/gameplay.tscn fails to open and throws this error

 scene/resources/resource_format_text.cpp:843 - res://src/gameplay.tscn:1 - Parse Error: 
 Failed loading resource: res://src/gameplay.tscn

The scene was not renamed.
I’m using Godot v3.2.2

:bust_in_silhouette: Reply From: klaas

the file seams to be corrupt. If i read the src correctly it happens when godot reads the initial tag to get the type of file it is reading. But parsing the first tag fails.

First tag of a scene must look like …
[gd_scene load_steps=5 format=2]

but can have different values.

Have you edit it with a texteditor? Maybe a BOM header has been added (first invisble byte of the file).

indeed, the scene file was corrupt. After looking inside the file, the file is mysteriously empty, but never have i edited it

Vincent William Rodr | 2020-08-31 08:57