Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: _load: Failed loading resource #34777

Closed
git2013vb opened this issue Jan 3, 2020 · 9 comments
Closed

ERROR: _load: Failed loading resource #34777

git2013vb opened this issue Jan 3, 2020 · 9 comments

Comments

@git2013vb
Copy link

Godot version:
3.2beta4
OS/device including version:
Debian 10
Issue description:

ERROR: _load: Failed loading resource: res://addons/file-editor/file.samples/sample.csv.
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Failed loading resource: res://addons/file-editor/file.samples/sample.csv.
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Failed loading resource: res://addons/file-editor/file.samples/sample.csv.
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Failed loading resource: res://addons/file-editor/file.samples/sample.csv.
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Failed loading resource: res://addons/file-editor/file.samples/sample.csv.
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Failed loading resource: res://addons/file-editor/file.samples/sample.csv.
   At: core/io/resource_loader.cpp:278.

Steps to reproduce:
It happen with any csv file in any folder
Minimal reproduction project:

@Calinou
Copy link
Member

Calinou commented Jan 3, 2020

Can you upload a minimal reproduction project, please?

@FeralBytes
Copy link
Contributor

FeralBytes commented Jan 3, 2020

@git2013vb that error seems to be produced by your add on
"file-editor", not godot.

@git2013vb
Copy link
Author

git2013vb commented Jan 4, 2020

@git2013vb that error seems to be produced by your add on
"file-editor", not godot.

file-editor is a plugin from AssetLib. However I have same problem if I have a CSV file in project , Can be the translate one or another one (even an empty one) as you can see.:

ERROR: _load: Failed loading resource: res://datatable/test.csv.
   At: core/io/resource_loader.cpp:278.

Can you upload a minimal reproduction project, please?

edit: I added a very simple project . you will see the error if you double click in res://newfolder/test.csv
I have often this error because a plugin - godot-inheritance-dock- check all files in folders: So csv too.

load_error.zip

Godot 3.2beta5.mono - Debian 10

@Calinou
Copy link
Member

Calinou commented Jan 13, 2020

@git2013vb The .csv file included in that ZIP is empty – its size is 0 bytes.

Also, when you save a CSV file, make sure it uses UTF-8 encoding without BOM.

@git2013vb
Copy link
Author

git2013vb commented Jan 14, 2020

@git2013vb The .csv file included in that ZIP is empty – its size is 0 bytes.

Also, when you save a CSV file, make sure it uses UTF-8 encoding without BOM.

The same happen with normal csv file (translation).
I will try to set UTF-8.. Maybe is this the problem.
edit:
It is already UTF-8:
image

as you can see in another csv file not empty:

ERROR: _load: Failed loading resource: res://addons/file-editor/file.samples/sample.csv.
   At: core/io/resource_loader.cpp:278.

@henriquelalves
Copy link
Contributor

It's still happenning; apparently Godot can't load CSV's in its current build.

@Calinou
Copy link
Member

Calinou commented Apr 27, 2020

@henriquelalves Are you loading a translation CSV or a generic (non-translation CSV)? You can select the import type by selecting the CSV in the FileSystem dock, going to the Import dock, choosing the type then clicking Reimport.

@henriquelalves
Copy link
Contributor

henriquelalves commented Apr 27, 2020

I'm using a normal CSV file (I reimported it as normal CSV via Editor). I created another issue about it with a minimal example: #38245

willnationsdev clarified to me that CSV files can't be loaded as "TextFile resources", but they don't seem to be exportable as normal Resources too.

@akien-mga
Copy link
Member

Closing as duplicate of #38245.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants