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

Function not found when exporting to Webassembly #2524

Open
allgru opened this issue Feb 2, 2025 · 0 comments
Open

Function not found when exporting to Webassembly #2524

allgru opened this issue Feb 2, 2025 · 0 comments
Labels
Bug 🐞 Something isn't working Needs testing More feedback/testing would be good

Comments

@allgru
Copy link

allgru commented Feb 2, 2025

When exporting the game with Godot 4.3 as Webexport and starting the game in the browser there occurs an error. It looks for the to_string function but can not find it.

I could find them in the following files:

  • addons/dialogic/Resources/character.gd
  • addons/dialogic/Resources/event.gd
  • addons/dialogic/Modules/Choice/event_choice.gd
  • addons/dialogic/Editor/Common/sidebar.gd
  • addons/dialogic/Resources/timeline.gd

In the code the following is present:

func _to_string() -> String:
return "[{name}:{id}]".format({"name":get_character_name(), "id":get_instance_id()})

Steps to reproduce the behavior:

  1. Add Speakertextbox style
  2. Create characters and add timeline
  3. Add to Node ( Dialogic.start("timeline") )
  4. Project -> Export
  5. Add... -> Web
  6. Options -> Extensions-Support: on -> Export Project ...
  7. Run game in browser

Error in Console:
LinkError: imported function 'env._ZNSt3__29to_stringEx' signature mismatch

  • OS: Windows, Firefox 134.0.2
  • Godot Version: 4.3 (August 2024)
  • Dialogic Version: 2.0-Alpha-16

Unfortunately not quite sure where the conversion happens and why the function is not added to the Webassembly. Without Dialogic Export is running. Could also be a Godot 4.3 issue.

@Jowan-Spooner Jowan-Spooner added Bug 🐞 Something isn't working Needs testing More feedback/testing would be good labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 Something isn't working Needs testing More feedback/testing would be good
Development

No branches or pull requests

2 participants