0 votes

Here is a link to the live game:
https://44351-w21.github.io/one-screen-platformer-francescainfranca/

As the title says all the platforms in the tilemap do not appear when you run the game on the HTML5 export. I have no idea why this is. Any help is much appreciated.

I am not sure if this is related or not but I am getting this error on the engine as well,

Loaded Resource as image file, this will not work on export, 'res://icon.png'. Instead import the image file as an Image resource and load it normally as a resource.
Godot version 3.2.3
in Engine by (22 points)
edited by

Ok, thank you @exuin. I am getting this error for every unloadable asset:
**ERROR**: No loader found for resource: res://Assets/Platform/grassLeft.png. put_char @ tmp_js_export.js:8 tmp_js_export.js:8 At: core/io/resource_loader.cpp:286:_load() - Method failed. Returning: RES() put_char @ tmp_js_export.js:8 tmp_js_export.js:8 **WARNING**: Couldn't load external resource: res://Assets/Platform/grassLeft.png put_char @ tmp_js_export.js:8 tmp_js_export.js:8 At: scene/resources/resource_format_text.cpp:175:_parse_ext_resource() - Couldn't load external resource: res://Assets/Platform/grassLeft.png
I checked all names and references to the files and made sure they all match. I have been researching this error as well and can't seem to find a fix. Any ideas?

In your file system tab in the editor, make sure there is a resource at exactly that path: res://Assets/Platform/grassLeft.png (uppercase and lowercase characters match exactly as displayed in the error). If that file exists, I would try re-importing it click the file in the file system tab -> go to the scene tree portion of the editor and click the import tab -> click reimportand see if that fixes your problem.

Well, shoot I see now that it does not match. I have res://assets/platform/
When I try to change the folder names to match the errors the game won't run at all. I thought also I could try to just create another folder that has a capital A but of course, I cant do that with windows file system.

The game won't run at all after you change the folder names when launched from the editor? What kind of errors are you getting? I suggest changing the folder names then searching your GDScripts (*.gd files) for load() and preload() functions, making sure the strings they're using are properly capitalized. You could also just search your scripts for 'res://' - it might be easier.

Thank you for all your help! So in my code I never used any load() or preload() I just used the UI to import it where I needed it so I thats why I was a little confused with what you were saying. What I ended up doing is making a separate assest(2) folder for all assets except for the platforms, and changed the orginal asset folder to match what the game was looking for in the error. res://Assets/Platform Next I changed any reference to the other assets in the UI to the new folder.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.