Failed Loading Resource

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

I’m trying to save the player path as a variable, so I can instance it by code:

var player = load("res://scenes/Player/Player.tscn") as PackedScene

It works well at the godot editor, but crashes at the export for windows.

:bust_in_silhouette: Reply From: avencherus

If that’s all there is to it, I would suggest checking that the .tscn file or the folder is exactly the same upper/lower case. I have noticed that the editor is case-insensitive with resource paths, but builds are not.

Yeah I checked this, but the problem wasn’t it. But it’s fixed now:

For some reason it worked after I just created another scene and make the player again, with the same resources and scripts. Now the problem is gone.

Thank you anyway :smiley:

Aryn | 2019-06-18 22:16

Same issue…
as i started following the file name snake_case after some time of the project…
fixed by recreating the levels
deleted and reimported art files with snake_case

paruthidotexe | 2021-08-27 00:24

Thanks for that, helped me find my issue which was incorrect capitalisation in a PackedScene preload path.

uvmain | 2022-02-25 03:34