Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Export Support #4

Closed
Astrol99 opened this issue Jan 22, 2024 · 1 comment
Closed

Web Export Support #4

Astrol99 opened this issue Jan 22, 2024 · 1 comment

Comments

@Astrol99
Copy link

Hi, I was using your addon and it worked great, until I tried using it in my web export and it resulted in the following error message:

No suitable library found for GDExtension: res://addons/ropesim/libropesim.gdextension. Possible feature flags for your platform: web, s3tc, wasm32, template, debug, template_debug

My game still ran but just with the ropes non-existent. I tried building my own library with the template for web into wasm files and I added these lines into the gdextension file:

web.debug.wasm = "res://addons/ropesim/bin/libropesim.web.template_debug.wasm32.a"
web.release.wasm = "res://addons/ropesim/bin/libropesim.web.template_release.wasm32.a"

But it still didn't work, so I was wondering if there will be any support for web or if its just a limitation of the Godot engine.

@mphe
Copy link
Owner

mphe commented Jan 22, 2024

According to the docs, "The default export templates do not include GDExtension support for performance and compatibility reasons".
For GDExtension support, Godot has to be compiled with dlink_enabled=yes.

In that regard, I'm not sure whether it is 1) useful and 2) sensible to provide a web build of this plugin.
It is easy to add a web build to the Github build workflow, but I think it causes more confusion than benefit.
Also I'm not really interested in testing and maintaining web compatibility.

You can try compiling a Godot version with web GDExtension support enabled and report back how well the plugin works with it.
If there is nothing broken and the performance is reasonable, I will add a web build to the workflow. Otherwise, I will close this as not planned/supported.

@mphe mphe closed this as completed Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants