Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Urgent help! 403 error on loading javascript

A topic by Ed Casillas created Jun 10, 2018 Views: 2,099 Replies: 5
Viewing posts 1 to 6
(+1)

I have this HTML game: https://exagames.itch.io/runnin-late and I've been updating some stuff there. Today, I uploaded the newest version using butler, but when I go the game page, I only see a dark screen and a 403 error in the console:

I had to roll back to the oldest (and ugliest) version of the game (which is now active in the game page). Please help!

By the way, I noticed that the index.html file is not being refreshed, no matter if I use butler or a direct upload and change the executable, when I inspect the source code it remains the same as the one that fails. :S

Admin(+1)

It looks like you figured it out?

Generally this happens because you tried to use a absolute path in your game's code, or you tried to reference a file with a case-insensitive path.

Every time you re-upload your game you get a new URL for the files, so the old .html will stay around on our CDN in the cache for a while. Project pages will never show the old game URLs though

(+3)

Hey leafo! Thanks for your quick response! Yeah, I figured it out... I hope this lesson helps someone in the future, this is what happened:

I created the game with Game Maker, so the exported game includes an index.html and a folder containing its assets. It just so happens that I created a custom html to be my index file and set it as an included file. When GM exported the game, it was also exporting my custom html file inside the assets folder, so I had 2 index.html files: one at the root folder of my game and one in the assets folder. For some reason, itch was loading the one in the assets folder instead of the one at the root, so yeah, it obviously wasn’t able to find its assets in a relative path to the assets folder. Finding that the embedded game wasn’t changing te index.html source code no matter what I changed in it was key to figure this out... I deleted the unwanted index and the game is back in business.

(+1)

Thank you very much for your explanation ! i just had the exact same problem 

I'm glad it helps!

Admin moved this topic to Questions & Support
This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.