kiwijuice56 / sand-slide

Fast falling sand game made within Godot and utilizing beta GDExtension features
https://kiwijuice56.itch.io/sand-slide
MIT License
75 stars 12 forks source link

[Web Export] LinkError: imported function 'env.__addtf3' signature mismatch #4

Open Brennanzuz opened 1 day ago

Brennanzuz commented 1 day ago

I'm on a Linux (Ubuntu 22.04) system and I have done the following to test out your game!

git clone https://github.com/kiwijuice56/sand-slide.git
cd sand-slide
git submodule update --init
scons
scons platform=web

In Godot 4.3, everything loads and no errors are printed to the output. In the sand-slide/game/bin/fallingsand folder, I have:

Exporting the game to release/web_build/index.html (default settings as you have left it) and then running the game with the "Remote Debug" button on the top-right will give the error in the browser console:

LinkError: imported function 'env.__addtf3' signature mismatch

Am I missing any steps to compile and run on the web?

kiwijuice56 commented 1 day ago

Thanks for the report, I've been having this issue as well. You followed all of the steps correctly; The only solution I have right now is to use Godot 4.2.2 stable and possibly switch to an older sand-slide commit if the process of downgrading to 4.2.2 doesn't go smoothly. I haven't been able to debug why this occurs, as Emscripten gives very little information on what went wrong during the WASM compilation. I've tried every Godot 4.3 snapshot as well as older versions of Emscripten and they all seem to have the same error.

Brennanzuz commented 7 hours ago

Ah, that's a shame, but thanks for letting me know! Very cool game btw! (I'm surprised megido did not overload my computer XD)