The issue has been resolved. The issue was caused by Vite, which is configured by default to change the path to find the javascript and css files to a static path instead of a relative one. Changing the build settings to produce relative paths instead fixes the issue.
thebigswede
5
Posts
1
Topics
1
Followers
A member registered May 30, 2023 · View creator page →
Creator of
Recent community posts
itch.io Community » itch.io » Questions & Support · Replied to No Time To Play in html game not loading
I am trying to publish my game https://thebigswede.itch.io/earth-defense-force-nasa which I created using the three.js library. I packaged my application using vite build to create a standalone folder containing all the game assets and dependencies, which I then compressed and uploaded to the game page.
However, when the game loads the only thing that appears is a grey screen. Inspecting the page shows that the js and css files failed to load with the error code "Failed to load resource: the server responded with a status of 403 ()"
Nasa's Cosmic Crusade: Invasion of the Space Zombies jam comments · Replied to Aristides in Nasa's Cosmic Crusade: Invasion of the Space Zombies jam comments
Nasa's Cosmic Crusade: Invasion of the Space Zombies jam comments · Replied to Aristides in Nasa's Cosmic Crusade: Invasion of the Space Zombies jam comments