This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

We are setting up a gallery of games powered by a CMS. To manage this we need to host the html in a templated file / page type and then load the .pck file.

I've tried taking the html of the game and templating the const MAIN_PACK so that can be populated from the database for the given game. I then initialise the engine with a path to the .wasm file, the theory being that if all the games are from the same engine we can reuse the html framework, the .js file and the wasm file and just swap out the .pck file.

I've got it loading the .pck and .wasm file with the progress and loading indicators showing. but it always fails with an alert:

Could not load game data at path '.'. Is the .pck file missing?

Looks like something I haven't found is expecting the pck file in a certain place.

Any pointers on how I can achieve this and what other variables need to change in the javascript or elsewhere to get this working?

in Engine by (25 points)

1 Answer

0 votes

I've had a similar problem when loading the pck from a different location. Please try again with the 3.2.1 release, which fixed it for me.

by (14 points)
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 Frequently asked questions and 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 [email protected] with your username.