I had a quick question with a game that I am trying to release on itch.io and I'm wondering if anyone has any advice. I'm running into problems when I try to export the game from Construct 3 and play it in itch.io. It works perfectly when playing it through the Construct 3 play tester.
I have downloaded the game for HTML and it is around 50 MB. Itch.io (on Chrome) displays the entire loader and loads to completion, however, the screen then goes black and the game won't start. Using the inspect element tool, I can see lots of red error messages appear in the console section. "Uncaught (in promise) TypeError: Failed to fetch" is the most common error; it occurs hundreds of times each time I try and fail to load the game. "Error loading resource: TypeError: Failed to fetch" is also very common. The number of errors seems to fluctuate each failure, for example, I had 1433 errors last time, but I've had closer to 600 as well.
Additionally:
-The game can sometimes load, start, and play properly if I repeatedly reload the page until no red errors occur.
-The game also works all of the time in an Incognito Tab. In this instance, it provides the message "Failed to register service worker". No red errors occur. I also can't save as I am using Incognito.
-On Safari the game will work all the time from what I can tell, however, memory restrictions prevent it from being a viable option as Safari auto reloads pages that take lots of memory.
-I have tried exporting the game to gamejolt which also doesn't work and many errors occur in the console tab of the inspect element tool.
I'm not very knowledgeable on this subject and I'm wondering if there are any fixes for this problem? I have multiple demos for the game available on itch.io as well, none of which have any errors despite the same export method being used. Is this a problem with itch.io or Construct? The game was originally built on Construct 2 but has always ran using the C3 runtime. Should this make a difference? Most of the demos I've released use the C3 runtime as well.