Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

For those who downloaded a game from itch and faced this error can manually decompress the brotli files under the `Build` folder using : `brotli --decompress` ,then edit `index.html` file in the project root directory and remove the `.br` extensions from the `dataUrl` , `frameworkUrl` and `codeUrl` lines like in this example:

      var buildUrl = "Build";
      var loaderUrl = buildUrl + "/product1.1_WebGL.loader.js";
      var config = {
        dataUrl: buildUrl + "/product1.1_WebGL.data.br",
        frameworkUrl: buildUrl + "/product1.1_WebGL.framework.js.br",
        codeUrl: buildUrl + "/product1.1_WebGL.wasm.br",
        streamingAssetsUrl: "StreamingAssets",
        companyName: "company",
        productName: "SomeProduct",
        productVersion: "1.1",
        showBanner: unityShowBanner,
      };

we simply remove the `.br` extensions to point to uncompressed files:

      var buildUrl = "Build";
      var loaderUrl = buildUrl + "/product1.1_WebGL.loader.js";
      var config = {
        dataUrl: buildUrl + "/product1.1_WebGL.data",
        frameworkUrl: buildUrl + "/product1.1_WebGL.framework.js",
        codeUrl: buildUrl + "/product1.1_WebGL.wasm",
        streamingAssetsUrl: "StreamingAssets",
        companyName: "company",
        productName: "SomeProduct",
        productVersion: "1.1",
        showBanner: unityShowBanner,
      };