[SOLVED] HTML5 bundle fails online (but works in editor and local HTML5 build)

Hi everyone!

I’m having trouble running my Defold game when deploying the HTML5 bundle online.

  • :white_check_mark: The game runs fine in the Defold editor
  • :white_check_mark: It also works when using Project > Build HTML5 (the temporary local HTML5 build)
  • :cross_mark: But when I use Project > Bundle > HTML5 Application and upload the bundle to Netlify, the loading bar stops around 25% and the game doesn’t start

Live version here:
:backhand_index_pointing_right: https://lequizfrancais.netlify.app/

In the browser console, I get the following error (see screenshot):

I’ve tried:

  • Clearing the browser cache
  • Fully deleting and re-uploading the bundle files

Still the same issue. Any idea what could be causing this?

Thanks!

I think you might need to increase this value:

1 Like

I assume to host the game on Netlify, you uploaded it to the git repository. game.projectc is a text file and git can automatically convert line endings CRLF/LF on commit. It’s reason of the error.

If so, add .gitattributes file to the root directory of the repo:

archive/* binary

…to mark archive/ folder as a folder with binary files.

5 Likes

Exactly the issue. Fixed now, thanks!

4 Likes