Godot Version
4.2.3
Question
Hello! I trying to upload my project on web and i have the issue. First of all - im using box2d physics server instead of godotphysics2d. The game dont load without enabling thread support in export settings ( im using godot 4.3 and i found out that it should be fixed, but i cant figure out why my project dont running on same thread). When im running the game directly from godot HTTP server - its working just fine. When im running the project in a game portal like poki or crazy games - it starts to blink and seems like it wont run . Please! Any help!!!
I don’t think crazygames or poki supports threads in web builds.
Hey! thank you very much for your reply, maybe you know if im able to run entire game on single thread, me and my friend thinking that the issue is the addon (box2d)
Is it possible for you to test with a blank or very minimal project (without box2d), and then afterwards with that same project with box2d added?
When you were uploading your game on crazy games on “game type” you choose HTML yes?
Yea! Thank you for the reply)
1 Like
So! I tried multiple times to run the game without box2d - it works fine without enabling thread support, but when im enabling box2d it works only with enabling thread support (which i dont want to turn on - it wont run on websites). I want to keep the box2d addon, because godot physics are bad and dont want to work the way i want.Thank you for your response!
I can record a video if its necessary
I think maybe that box2d isn’t compatible with html5?can you open an console in web browser of your game maybe that will be helpful and you will understand what’s the problem
Its working when enabling thread support in export options. But it wont work on websites instead of itch (they have experimental SharedArrayBuffer support)
1 Like
Okay check this maybe will help you Box2D Physics Plugin check the supported platfromes
Its still working only when enabling thread support… but thanks for help
U can also try to check web browser console and see is there any errors maybe with this u will understand idk
No need for video, it was just a suggestion to make certain the problem was what you thought it was. But it sounds like you have tested quite thoroughly.
If Box2d doesn’t run without threads, and the websites you wanna publish on don’t support threads, it kinda sounds like you are out of luck… I was about to suggest opening an issue on Box2D’s github, but it actually looks like the creator of the godot plugin decided only 2 months ago to archive it, since they’ve switched to working on a plugin for another physics engine.
3 Likes
The console spams this error:
Error while registering service worker: Error: Service worker already exists.
at
Have you added some debugging system to your game ?I mean with print(“”) ? If no there will be no errors in web console or in godot but in reality there may be.
No, thanks for suggestion
Okay,happy to help, i am learning gdscript not too long and sadly cant help more. I hope you will solve your problemđź‘Ť
1 Like
Thanks! Good luck to you on your journey
1 Like
Recently I tried rapier - same issue, the game starts only when thread support checkbox is on. Maybe someone exported web build with some addons in a project that would work without thread support?