run the example, get the "Failed loading resource" error?
hi there,
what's wrong with the traceback? I just run the example with the command: scons platform=windows-64 example
(venv) PS E:\pro\godot-python> scons platform=windows-64 example
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
E:\pro\godot-python\build\windows-64\platforms\Godot_v3.2.2-stable_win64.exe --path examples\pong
Godot Engine v3.2.2.stable.official - https://godotengine.org
OpenGL ES 3.0 Renderer: GeForce GT 730/PCIe/SSE2
Pythonscript 0.50.0+dev (CPython 3.8.5.final.0)
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
At: scene/resources/texture.cpp:502
ERROR: Failed loading resource: res://.import/separator.png-f981c8489b9148e2e1dc63398273da74.stex.
At: core/io/resource_loader.cpp:278
ERROR: Failed loading resource: res://separator.png.
At: core/io/resource_loader.cpp:278
ERROR: poll: res://pong.tscn:4 - Parse Error: [ext_resource] referenced nonexistent resource at: res://separator.png
At: scene/resources/resource_format_text.cpp:440
ERROR: Failed to load resource 'res://pong.tscn'.
At: core/io/resource_loader.cpp:208
ERROR: Failed loading resource: res://pong.tscn.
At: core/io/resource_loader.cpp:278
ERROR: Failed loading scene: res://pong.tscn
At: main/main.cpp:1936
WARNING: cleanup: ObjectDB instances leaked at exit (run with --verbose for details).
At: core/object.cpp:2135
scons: done building targets.```
The traceback indicates it cannot load separator.png (which is one of the resource in the examples/pong/ folder).
It doesn't seems to be related to Godot-Python itself (the error comes from Godot while it is loading pong.tscn.
Can you make sure the separator.png file is still at the right place ?
Another check you can do: as you may have noticed the pong example contains all scripts in both gdnative and python, so you can replace all the .py scripts in the tscn files by there .gd equivalent (for instance in ball.tscn, replace [ext_resource path="res://ball.py" type="Script" id=1] by [ext_resource path="res://ball.gd" type="Script" id=1]).
This way no python script is loaded at all: if you still have your traceback it very unlike it's related to Godot-Python ;-)
@touilleMan Thank you for your reply. The traceback still exists, but I haven't got to keep running it.