Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Sorry, last update:

I have gotten the game to load fully upon repeatedly reloading the page. However, sometimes the sounds load, other times the sounds don't load, that is, if the game loads at all. It seems to have a higher chance of loading to completion on chrome if I have the inspect element tool  open. Is there a fix for this? I'd like my viewers to not have a seemingly random chance of playing my game and playing it with sound.

"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.

Admin (2 edits) (+2)

You’ll have to look at the full error message (including the stack trace) and potentially the network tab on the browser console to see what’s going on.

For example, the Failed to fetch error likely includes the URL or path it’s trying to fetch. If it’s not pointing to a file that you have provided in your project then you have a bug in your code.

The common pitfalls article I linked talks about using relative paths over absolute paths, and talks about some of the common errors people have when they don’t correct distribute their HTML game.

Hope that helps

What do you think about the game working perfectly in Incognito? I feel like it is important to understanding the issue but I'm not very well versed in coding stuff so  I don't know. Also, the game is coded using something similar to block coding, so I don't know if I'm using relative or absolute paths or if I even have a choice. My other Construct 3 HTMLs all worked though and I didn't do anything differently to export them.