[SOLVED] Scripts failed to load

I can’t seem to find the other post solution for what to do if my game is having failed consoles repeating. I looked in the console log and saw that it is because of the ammo file. I have no clue to what I should do to make this problem go away, It’s like the cubemap, Models, scripts and etc. will not load due to this “module=error” problem from the ammo files. does anyone have this problem to ??

Link to the project here - PlayCanvas | HTML5 Game Engine
Link to the code project here - PlayCanvas | HTML5 Game Engine?

Hi @G-Master_Inc and welcome!

I’m curious what is the first error in the console of your browser.

this is the first error code message after i deleted the ammo.js files

but this is the error message now that I have the ammo files back

Maybe the topic below can help you, because the error seems to be related.

1 Like

So basically my device has a privacy factor that wont allow me to run any playcanvas build?

That would not be my conclusion.

Do you get this error also when you run the build directly from PlayCanvas?

As far I understand you try to load an asset that’s not part of the domain where the build is stored (because the asset was not preloaded or something). Loading that asset is blocked by the browser.

Yes I believe it’s due to something called “cross-origin isolated” that’s preventing me from playing the build, I tried to play other Playcanvas games and launch my other project and it seems like that’s the cause because the console log states

“This behavior prevents a document from loading cross-origin resources which don’t explicitly grant permission to be loaded.”



Do you know how I can fix this as it shows

Do you get this error on all projects?

You never was be able to start a PlayCanvas build without the error?

yes i do get this error on all of them and it started this morning, last night i was working on a sign up form for my game and when i woke up to play it , it was showing this error message even for other playcanvas projects in the editor

All right, then I have no idea what the reason could be. Hopefully someone else can help with this problem.

Project loads fine for me

Is there a specific scene that has issues?

Have you updated any browser extensions recently? Does this still happen with other browsers (edge, Firefox etc)

hey i’ve been busy but i think i founded the problem, i needed to disable the Cross-Origin Embedder Policy (COEP). I have no idea why this is a problem for my device but I believe that’s the problem

Do you think I should do that for my game to launch in chrome, I don’t have the edge browser or Firefox on my chrome os

NEW UPDATE this morning I ltried to play the official build and it for my device, the launcher is what’s showing this “failed to initialize module=Ammo error=Failed to load script=‘/api/assets/files/ammo.js/ammo.wasm.js?id=189923829&branchId=cee80b01-8d14-449a-ba0b-219bc32ab5aa&t=6b7ab3989e4f9f17c86e44380f9181c6’” message