Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

I am struggling to upload an HTML file?

A topic by Devs created Apr 21, 2023 Views: 311 Replies: 8
Viewing posts 1 to 5

I got the Better Minimal WebGL Template, selected it in the Unity Editor, and hit build. I then sent the package to a compressed folder and uploaded it. Strangely, the game will not play in WebGL? It works fine as a Windows download. Are there additional steps I can take to resolve this issue?

Thanks.

Admin

Do you have any sort of error message you can share? Make sure you review your browser console for additional information.

I have no errors. Do you need me to send you the .zip?

(1 edit)

I don't... The game successfully uploaded to Unity Play, even. I don't know what's going on. Now I don't know as this is my first attempt,  but do WebGL games and downloadable Windows games have to be set up as different projects? I know I wanted to run the HTML and add the downloadable file underneath it. I don't know if that would cause a problem?

When you upload a zip for a browser game, you must tick the box that says this file will be played in the browser. It won't work if you didn't tick that box.

I'm not sure if it will matter if other files are included, probably not.

I'm sorry, but the checkbox is already ticked.

(1 edit)

Okay... I just re-uploaded it for the unth time and now it finally takes the game? I have no idea what I did, but it's working now.

Edit: NVM, it won't load again.

If you’re using Unity and building to WebGL, are you compressing with Brotli or Gzip? Brotli doesn’t seem to work at all. Gzip is the way to go on itch.

I set it to none as nothing really worked. Somehow it finally did the trick. Weird.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.