kdik / godot-speech-to-text

MIT License
27 stars 3 forks source link

exporting a game #4

Closed LeviOS31 closed 1 year ago

LeviOS31 commented 1 year ago

i have a problem with exporting the game. when i export the game for windows and i start it when i get to the scene that has the speech to text in it the game just closes like it crashes. i already put the addons/speechtotext/model in both the same map as the exported executable and in the data map that gets exported with the game but none have worked. i also get a error that it cant open the addons file. Knipsel image image both addons directories are filled with what you said was needed even if i deleted one it didnt make a difference

LeviOS31 commented 1 year ago

also this is what i found in the log file

Mono: Log file is: 'C:/Users/levio/AppData/Roaming/Godot/mono/mono_logs/2023-01-09_14.49.20_3516.log'
godot-speech-to-text plugin loaded
ERROR: Condition "_first != nullptr" is true.
   at: ~List (./core/self_list.h:108) - Condition "_first != nullptr" is true.
ERROR: Condition "_first != nullptr" is true.
   at: ~List (./core/self_list.h:108) - Condition "_first != nullptr" is true.
WARNING: ObjectDB instances leaked at exit (run with --verbose for details).
   at: cleanup (core/object.cpp:2070) - ObjectDB instances leaked at exit (run with --verbose for details).
ERROR: Resources still in use at exit (run with --verbose for details).
   at: clear (core/resource.cpp:417) - Resources still in use at exit (run with --verbose for details).
LeviOS31 commented 1 year ago

i hope the crash has something to do with the plugin in and that i'm not bothering you with some errors that have nothing to do with the plugin

kdik commented 1 year ago

Hey, I'm not sure if this is error you are getting is related to this plugin, but try these two things.

For windows, add these three dlls from the addons/speechtotext/lib/win32 to the root folder of the exported game

dlls_in_export

Also check that the addons folder structure looks like this

export_structure

Let me know if this does or does not help!

LeviOS31 commented 1 year ago

it worked thank you so much man.