this post was submitted on 19 Jul 2023
13 points (100.0% liked)

Godot

5842 readers
6 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 1 year ago
MODERATORS
 

Godot 4.0 broke web exports without a webpage having certain headers(over my head content), but sites like itch have those things. I believe the explanation was because of having mulit-threaded support in the engine.

I have held off upgrading from 3.5 because my games I publish on my simple github page and that change on 4.0 would not work on my github page.

There was rumor of providing a single threaded web mode in future releases(4.1 was mentioned), but don't know if this happened. I check release notes every few months but haven't seen if this change has been made.

Are web exports fixed for godot now?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] alghost@lemmy.world 0 points 1 year ago (1 children)

I have managed to deploy my game to Gitlab Pages through the use of the godot-coi-serviceworker addon from the Godot addons library. Should probably work as well for GitHub.

https://github.com/nisovin/godot-coi-serviceworker/

[โ€“] alghost@lemmy.world 1 points 1 year ago

The way this works is by creating a secure context through a service worker running in the background, which allows Godot to use SharedArrayBuffer to communicate between Threads etc.

Which means you don't have to have the headers if you can't configure them for your hoster (although if you can that's still preferable as there is probably some JS overhead at least when loading the page with this).