Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | di |
I’ve been struggling with this issue for a while now. The project works fine in Godot but after exporting, scenes don’t get loaded. At the beginning of the project, when there were fewer scenes, it was ok but at some point few of the scenes weren’t getting loaded and now most of the scenes are not getting loaded.
At first I thought it was an issue related to file names or extensions. So I iterated through directories.
func dir_contents(path):
var dir = Directory.new()
var text_1 = ""
if dir.open(path) == OK:
dir.list_dir_begin()
var file_name = dir.get_next()
while (file_name != ""):
if dir.current_is_dir():
print("Found directory: " + dir.get_current_dir() + "/" + file_name)
else:
print("Found file: " + dir.get_current_dir() + "/" + file_name)
file_name = dir.get_next()
else:
print("An error occurred when trying to access the path.")
pass
But all the scene names and extensions weren’t changed and they also didn’t move or anything.
ERROR: load_interactive: Condition ' err != OK ' is true. returned: Ref<ResourceInteractiveLoader>()
At: scene/resources/scene_format_text.cpp:1225.
Still on the exported ver this err keeps popping up. I’ve exported to OSX and iOS but on both of the os, stuck with the same issue.
Please help.
What OS are you using for development ? You can check the following :
-The casing of the directories and extensions ?
/test/MyScene.tscn is different from /test/myscene.tscn
-You are using the correct resource folder : res:// and NOT user://
-Add print statement to a auto-loaded global script
Good luck
GameVisitor | 2018-04-21 10:49
I’m currently using Mac 10.13.4
And i already checked all the things that you’ve mentioned but sadly none of them made any difference.
Thanks for the comment tho.
di | 2018-04-21 12:01
Found file: res:///scenes/1F.tscn
ERROR: load_interactive: Condition ' err != OK ' is true. returned: Ref<ResourceInteractiveLoader>()
At: scene/resources/scene_format_text.cpp:1225.
ERROR: _load: Failed loading resource: res:///scenes/1F.tscn
At: core/io/resource_loader.cpp:186.
ERROR: load: Error loading resource: 'res:///scenes/1F.tscn'
At: core/bind/core_bind.cpp:79.
This is the err message when I run it on terminal.
load(‘res:///scenes/1F.tscn’) returns null even before instancing it. Which is odd cuz when I check directories using dir_contents(path) function, all the files r in the right place.
di | 2018-04-21 12:16