Itch.io embed won't work.
Asked Answered
P

16

0

On itch.io, the game works fine. However, when I embed it onto anything, it gives the same error as you get when trying to run a game in the browser.

Is there something I missed? when I run it on the itch.io website, it works fine, so why shouldn't it when it's embedded?

Presentational answered 13/12, 2023 at 1:19 Comment(0)
O
0

What's the procedure for embedding an itch.io game on another web site?

Odontoblast answered 13/12, 2023 at 2:4 Comment(0)
P
0

Odontoblast
You copy paste an embed code, like so:
<iframe frameborder="0" src="https://itch.io/embed-upload/9298398?color=333333" allowfullscreen="" width="1280" height="740"><a href="https://mr-null1.itch.io/polished">Play Polished. Teaser on itch.io</a></iframe>

Presentational answered 13/12, 2023 at 2:6 Comment(0)
O
1

The hosting server's environment probably needs to be configured for SharedArrayBuffer, etc. I wouldn't think that itch.io's server configuration would override that in an iframe.

For an HTML5 Godot export (not itch.io embedded), I was able to do that with an .htaccess file. I still had another problem because my web account didn't support HTTPS.

Header set Cross-Origin-Opener-Policy "same-origin"
Header set Cross-Origin-Embedder-Policy "require-corp"
Odontoblast answered 13/12, 2023 at 2:13 Comment(0)
P
0

Odontoblast
sorry to sound like a newbie but how would I use the .htaccess file, like where would I put it, how would I make it, how to use the code, and all of that stuff.

Presentational answered 13/12, 2023 at 2:36 Comment(0)
O
0

First, it only applies to a web server that's running Apache. Second, the server configuration has to allow per-directory configuration files, which by default are named "htaccess".

If those conditions are true, create a text file named ".htaccess" with the contents in my previous post, and placed it in the server's file system directory that contains the web page with the iframe.

Whether you can do that depends on how much access you have to your server.

There are other ways of dealing with that error you received. See this for more information:
https://github.com/godotengine/godot/issues/69020

An alternative is to use Godot 3.

Odontoblast answered 13/12, 2023 at 2:42 Comment(0)
P
0

Is there a way to downgrade a 4.1 project to 3?

Presentational answered 13/12, 2023 at 3:14 Comment(0)
O
0

Only by doing it manually.

Odontoblast answered 13/12, 2023 at 14:33 Comment(0)
P
0

Odontoblast wdym by manually?

Presentational answered 13/12, 2023 at 15:19 Comment(0)
P
0

Presentational actually nvm because of something else that won't work

Presentational answered 13/12, 2023 at 15:23 Comment(0)
O
0

Presentational wdym by manually?

Make a backup of the project, then try to open it in Godot 3. Fix any errors that appear. It could require rebuilding scenes, making changes to scripts, etc. There's no documented procedure for doing this.

Odontoblast answered 13/12, 2023 at 15:41 Comment(0)
U
0

This is an Itch-specific problem. You could try bugging guy who runs it to fix it. His twitter handle is... nevermind, he moved over to the fediverse, he still posts occasionally at https://mastodon.social/@leafo

Unifoliate answered 13/12, 2023 at 16:55 Comment(0)
P
0

Odontoblast
Okay, switching directions, how would I add these headers in a GitHub pages site?

Presentational answered 13/12, 2023 at 19:21 Comment(0)
O
0

I don't know. I'm working on my own GutHub problem. Solve that one, and I'll look into yours. 🙂
https://github.com/orgs/community/discussions/78998

Odontoblast answered 13/12, 2023 at 19:27 Comment(0)
O
0

Did you read the github issues link I posted above?

Odontoblast answered 13/12, 2023 at 21:1 Comment(0)
P
0

Odontoblast I did it earlier but that was before I decided to switch to github pages. it would be easiest that way.

Presentational answered 13/12, 2023 at 21:3 Comment(0)
P
0

Presentational so let me read it again

Presentational answered 13/12, 2023 at 21:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.