Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Ero Witches

A Madoka Magica erotic fan parody HRPG · By madodev

More download troubleshooting

A topic by CrazyPerson created Mar 04, 2023 Views: 327 Replies: 3
Viewing posts 1 to 4

Heya,

very nice start to the game, looking forward to how it'll develop in the future - curious what sort of content will come up next, there's so many directions this could go.

I tried looking a bit more closely at the downloads - I don't think this is a popup blocker thing, it's a weirder web security/standards thing, by the looks of it. The main game page is being served with headers 

Cross-Origin-Embedder-Policy: credentialless
Cross-Origin-Opener-Policy: same-origin

perhaps to enable access to some modern javascript APIs, I don't see this enabled on other pages. Maybe it's behind some sort of "enable fancy embedded content" toggle?

However, the download link seems to be implemented by appending an <iframe> to the end of the document pointing at the download (?!?) and browsers now complain that the CDN server for the download does not return a "cross-origin-resource-policy: cross-origin" header - the earlier headers are explicitly enabling a new web security standard that requires embedded resources to have that header, it does not, so the browser is refusing to embed the resource, as it was explicitly instructed.

Unfortunately, troubleshooting this is probably going to be mostly on the itch.io platform, since they're both serving the project page, set up the CDN, and are likely responsible for the bizarre decision of stashing download links in an iframe. This sounds like it should be a problem for all pages set up like this. You might be able to get it to work by wiggling settings about the embedded web version, but the current second-project-download-link setup does kind of work, though it is a tad clunky. The itch desktop app is able to download the app just fine, though confusingly enough it isn't able to render the project page at all, just showing a blank page.

Come to think of it, I wonder if this could be worked around by having more than one download file available, or by enabling pay-what-you-want.

It's trying to host the download directly on the main page, but most other projects I see typically have the "no thanks, just take me to the downloads" link that bounces to a separate download page, with one or more download buttons. Since that page no longer hosts the inline web version, it probably has fewer weird shenanigans going on. Itch is a strange and fiddly platform sometimes...

Developer (1 edit)

Thanks, nice to know what exactly caused it. 

The game uses SharedArrayBuffers (to allow for multithreading). Itch warns pretty clearly in the project page that their implementation for it is experimental, and it shows. I don't really mind, as long as the second-project-download-link works.
I tried adding multiple files or pay-what-you-want, but never both together. I'll give that a try once I add the Linux version and see whether it works.

Developer

Yep, that fixed it. Thanks again!