Build is not working after download

So today I finally was able to download my Builds after upgrading.
I hit download, hit index.html to see if it works… and it doesn’t.

The only error message I get is

uncaught exception: abort(“abort(“both async and sync fetching of the wasm failed”). Build with -s ASSERTIONS=1 for more info.”). Build with -s ASSERTIONS=1 for more info.

I don’t know how to build with -s ASSERTIONS = 1 (is it a setting somewhere?), so if you could help me out I’d appreciate it.

Hey @Helldubs,

How did you open the index.html? By clicking the file to open to your browser?

If that’s the case that will not work since a Playcanvas build requires a remove or local server in place. Here is a tutorial on how to do that, at the end it provides a number of ways to setup a local server:

https://developer.playcanvas.com/en/user-manual/publishing/web/self-hosting/

1 Like

Thanks,
I managed to run it with the python solution so atleast I know it’s working.

I am currently trying to implement an API that requires me to literally put the function that “starts the game” in it. How would you go about doing that? I can’t find anything but there gotta be like the first function that starts everything.

1 Like

Starts the game itself or starts the loading of the game?

If the former, it can be on a UI button ‘Press to Play’ in the game. If the latter, there is a loading.js file and in it, there is a function that starts the preloading of assets.

Apparently it’s not needed with playcanvas games. All good, thanks!