Skip to main content

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

Games have suddenly stopped working in the browser

A topic by Nikninja created 62 days ago Views: 648 Replies: 4
Viewing posts 1 to 2

All my games that work on browser have suddenly stopped working. I have not updated the games at all either.

It shows a grey screen and nothing else.

Im using pygame and pygbag to work on browser and it works locally but not on itch.io

it looks the same as when my file has an error and shows nothing (eg: when I try using .mp3 files instead of .ogg for pygbag)

I have no idea why this is happening since I haven't updated the games at all and they were working earlier, so I assume this might be an issue with itch, but im not sure.

(2 edits) (+1)

The problem is pygbag. You need to re-upload the files using the latest version of pygbag, and you may need to use a newer version of Python if applicable.

The best thing to do is force a pygbag update with this command (lasted version is  0.9.2):

pip install pygbag --user --upgrade

Then you need to repackage the game for the web and re-upload it to Itch.

Why does this happen? I don't have the technical details, but what I've seen is that the WASM interpreter is downloaded from GitHub when you run the game and isn't included in the files you upload. Therefore, if the pygbag library updates and stops supporting an older version (for example, 0.8), all games packaged with that version will stop working, even if you haven't touched anything.

Edit: I'm telling you from memory, but I think pygbag 0.9 requires at least Python 3.12 or higher.

oh wow this worked, thank you so much!

btw do you know how (or if) I could include the files needed for the WASM interpreter in my files?

(+1)

I can't say. In theory, it should be possible, but I've never tried it.

There's a CDN parameter in pygbag that I believe is responsible, but I've never investigated or tried modifying it.

(+1)

I see, well thank you for the help and the advice as well :)

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.