HTML5 build not finding game.projectc0 (SOLVED)

My HTML5 game works fine when played locally, but after uploading everything to my webserver the browser console reports being unable to find “try_game.png” and "game.projectc0"
No idea what to do here.

Are your files there? Are they accessible?

Edit: Did you run your html5 bundle locally? If not, try that too.

Running the html5 bundle locally works, but only in Firefox (but that’s fine)
I upload the files using Filezilla, and according to that, “game.projectc0” is there. try_game.png is not.

Only runs in Firefox? What other browsers did you try?

Well, the try_game.png is just a splash screen, and it is missing when you run it locally too. You should be able to ignore that.

If your files are there, what are their file permissions?
Does the layout of the files match what you have on disc locally?
What service do you upload to?

Could it be a file permission issue of some kind? Is it a webserver you own and control yourself? Could you perhaps try to upload the files to GitHub pages and see if it works from there?

I sort of fixed it! I used my school’s web hosting service, which I did not have full control over. turns out, it doesn’t like Defold’s filetypes like .project0

Set MIME with those files as “application/octet-stream”, then the problem fixed.

1 Like