Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to interact with game on https://athenacrisis.com #50

Closed
buildbreakdo opened this issue Aug 9, 2024 · 1 comment
Closed

Unable to interact with game on https://athenacrisis.com #50

buildbreakdo opened this issue Aug 9, 2024 · 1 comment

Comments

@buildbreakdo
Copy link

Mouse input controls stop working, do not see the cursor on hover either. Looked in console and saw this:

image

On initial page load, error message is not present while the game is working. Have not figured out steps to reproduce. Happened once while scrolling to the bottom of the page, another time when coming back to a tab after a long period of time after a few moves.

If I was to hazard a guess, mime type for an asset on an S3 bucket that does not exist is text/html 404 not found generic error page. Would be curious if assets are lazy loaded and when a new version is deployed if the old built files are being deleted. Thought is if that occurred while someone was playing a long game and a new version was deployed, old files deleted, then the game would end up at the state of requesting a JS asset that is no longer available and receive a 404 not found generic S3 error page of mime type text/html. Potential solution is never delete the old files. Just a wild hair of a guess.. 😅

Amazing project by the way, inspired. Cheers.

@cpojer
Copy link
Contributor

cpojer commented Aug 9, 2024

Yep, that's unfortunately how it works with Cloudflare Pages at the moment. This is not a problem in the game itself since we cache all resources ahead of time for offline play.

I left a comment here about how I "solved" it for the game version before it had offline support: vitejs/vite#11804 (comment) – It's not ideal though.

For now, for the splash page, it's a wontfix.

@cpojer cpojer closed this as completed Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants