Hi everyone!
I’m having trouble running my Defold game when deploying the HTML5 bundle online.
The game runs fine in the Defold editor
It also works when using Project > Build HTML5 (the temporary local HTML5 build)
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:
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
aglitchman:
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.
Exactly the issue. Fixed now, thanks!
4 Likes