In HTML5 application bundle, file game.projectc0 is CRLF/LF sensitive (SOLVED)

I have tried to put my game-in-the-making on github pages (in HTML form). And it refused to work. After studying the difference I have found that only one is that game.projectc0 file had line endings converted to Unix form.

Uploading this file in binary form fixed the issue as you can see here

https://baturinsky.github.io/SpaceGlue/index.html

So, I guess it’s a bug.

Also, if you were wondering, game is a Shoot 'em up with physics and a ship that is upgraded by gluing enemies and their parts to itself. I’ll post Dev Diary when it’s in a little more playable form.

1 Like

Ah. That explains it. I just changed the listed file size to make it work on mine. Aren’t there settings for github to make it upload the files in certain ways in regards to line endings?

Yes, .gitattributes file is supposed to deal with it, but I don’t know for sure what to write in it. Never had to deal with it before.

So, I used “upload files” button from the html github interface.

GitHub has an excellent article about how to deal with line endings on different operating systems and even more importantly when your team members use different OS:es. Read this article and make sure to adjust your Git settings accordingly: https://help.github.com/articles/dealing-with-line-endings/