Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

The WebGL version of my game is not loading

A topic by TechTerraGames created Aug 14, 2020 Views: 13,731 Replies: 6
Viewing posts 1 to 4

Can any body tell me what I can do to fix it?

Moderator(+1)

Maybe, if you describe the problem in more detail. Which game it is, what you tried to do, and what is happening.

(+4)

In the Unity Engine, i built my game, zipped the folder and uploaded it on itch.But when i clicked run game, It loaded till the last bit and it stopped 

Moderator(+1)

I don't work with Unity, but check your browser console for any errors.

(+59)

I was having that problem. I was able to work around as follows:

In Unity (version 2020.1.3) I went to Project Settings -> Player and under Settings for WebGL, the Publishing Settings, and set Compression Format to Disabled.

It appears what is happening is a javascript file something.js is being compressed to something.js.gz, which is normally fine, but when it is uncompressed, the uncompressed version is still something.js.gz, and is thus not recognized as a javascript file by the web server. Seems a bug in the latest Unity version. Disabling compression gets around this for now.

I figured out the problem in Firefox by selecting Tools -> Web Console and looking at the error messages, and it told me which file it didn’t like, and I examined it with 7-zip.

(+5)

Yeah, that fixed it for me! Thanks.

(+1)

I think that when you were uploading the zip folder, you didnt mark the "this file needs to be executed in browser" 

Maybe click that option and then try. It may work

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