[HTML5] Game files on another directory (SOLVED)

cmakeshiftcmakeshift Posts: 1Member
edited April 17 in Exporting

edit: Whoops, never mind. My issue came from a bug that was fixed 6 days ago in 3.2.1.

Hello all. Thanks to the developers and the community for this amazing FOSS engine!

Any tips for keeping the games resources (wasm, js, pck) somewhere separate from the HTML file? I ask because I am generating the HTML dynamically using a web framework, based on the standard template, but the game data has to be somewhere else, possibly a CDN. I'm using Godot 3.2.

On my test, every request seems to succeed with status OK (200), but the engine initialization fails with the following alert:

Error: Couldn't load project data at path ".". Is the .pck file missing? If you've renamed the executable, the associated .pck file should also be renamed to match the executable's name (without the extension).

Here is a screenshot of all of the requests succeeding:

And here are the errors as in the console:

Any help is much appreciated. A more in-depth explanation of how Godot loads all these files and creates a fake filesystem with them for the WASM runtime would be super-extra-awesome. Thanks!

Tags :

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file