-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
ResourceLoader doesn't work with system paths #14879
Comments
It seems Godot has been rendered incapable of loading any resource that has not been previously imported. |
For now I ended up loading the data through the file API and then using load from jpg/png. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
same for audio files... doesnt want to load external data without previously re-imported from godot ui |
I've done some testing with this, and it seems that it's impossible to load successfully unless the .import files are present. As far as I can tell, there isn't a way to do so through code. |
This is a huge problem I am running into. I have a program that relies on the user picking a wav or ogg file from a file dialogbox. They then play it. This will not work as I get errors saying a loader cannot be found for wav or ogg files. |
@ondesic There's a proposal about this already: godotengine/godot-proposals#732 |
@Calinou The title mentions WAV. We really could use a solution for wav and ogg. Do you know what the progress on this is? |
@ondesic As far as I know, nobody started working on this feature yet. The proposal can likely be extended to loading OGG files, although OP didn't ask for it specifically. |
@ondesic In the meantime, you may want to look at this script: https://github.com/Gianclgar/GDScriptAudioImport |
Hey all, I know this thread is a bit old, but I was wondering if there is a way to generate meshes from objects in run time. We are loading up a file picker and importing an object, we want to generate a mesh from the object (which also appears to need the MD5 hash and .import files also need to be generated) We are trying to create something kind of dynamic like the settlement building in Fallout 4, but with your own objects Thanks Scott |
Loading Resources outside project works normally if they are not importable (e.g. GDScript, JSON). Closing. |
Godot version:
3.0 (e3fd61b)
OS/device including version:
Ubuntu 17.10
Issue description:
I'm currently using
image.load(path)
to load images from the users file system. I wanted to try loading any kind of resource usingResourceLoader.load
andResourceLoader.load_interactive
, but both give me an error:No loader found for resource: ...
I'm not sure if this is intended, but I expected it to work since I could use
image.load
for the same path.Steps to reproduce:
The text was updated successfully, but these errors were encountered: