-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Godot 4 exports to all platforms unable to load any custom resources #77886
Comments
Can you reproduce this when exporting the project to a native (non-web) platform? |
@Calinou Ok so I just tested it for macos export and I see the same issue in that as well. But its working when played in editor. |
Is it a known bug? I am u able to find any other similar bugs in the issues |
This may or may not be a bug, but the project is too large to be considered minimal. Can you create a minimal reproduction project with just one scene and one custom resource? |
@Calinou Created a minimal reproducable bug repo - https://github.com/vickylance/CustomResourceExportBug |
Reproducible in Godot 4.1.dev4 as well |
This is not a bug. You are attempting to use DirAccess to access the Exported file structure and automatedly collect all the Access Paths for your resources. This is not a great way to create an automated "res://" Array or Dictionary of the Resources in your project. The fast fix is to catch for the ".remap" file extension, and remove it. This is a very dirty fast way to do this:
|
Fwiw your fast and dirty way does the trick. For custom text resources, flipping this setting works as well. https://docs.godotengine.org/en/stable/classes/class_projectsettings.html#class-projectsettings-property-editor-export-convert-text-resources-to-binary This won't work if you're scanning for binary files however. E.g. images will need a "replace-job" on ",import". Clearly this isn't the way; but is there a way at all to approach this? ResourceLoader doesn't have any scan capabilities. |
I think this issue can be closed because now we have |
This was implemented by #96590, closing. |
Godot version
4.0.3-stable
System information
Macos-Universal - Standard build
Issue description
USER ERROR: No loader found for resource: <resource path>
Local Nodejs static server with custom headers:
Itch.io upload with SharedArrayBuffer flag
Steps to reproduce
Create a custom resource and then export to web and try serving the project locally or on itch.io, godot runtime is not able to load the custom resources.
Minimal reproduction project
Project Link - https://github.com/vickylance/CustomResourceExportBug
The text was updated successfully, but these errors were encountered: