Closed JOELwindows7 closed 3 years ago
I should create pull request simply to fix this missing
Yeah! pull request!!
https://github.com/MightyPrinny/godot-FLMusicLib/pull/7
https://github.com/MightyPrinny/godot-FLMusicLib/pull/6
Keys for the test:
Thank you
Thank you
no problem. glad to help.
Which causes if the project exported, only Windows version will suffer from error no such method
Checked file:
both files above forgot to load Dependency
.dll
files for Windows version of the Native Library. It seems for Windows version, the.dll
library is separated hence the mainFLMusicLib.dll
requires dependencies which included next to it. for other platform, such as Linux, and Android, already had all in one.so
file, so I suspect that it no longer require to have dependency.previous detail: https://github.com/godotengine/godot/issues/42777
Generated error
bellow is the debug console output of exported application which is FLMusicLib demo.
to even clarify, I also implemented the FLMusicLib into my own project, made the implementation to use that when the music file is the format for the GMEPlayer, and it resulted the same.
Invalid call. Nonexistent function 'play_music' in base 'Nil'
fixing problem
FLMusicLib.gdnlib
and pay attention to GDNative Library bottom window..dll
files on theDependency
field.Solution
FLMusicLib.gdnlib
should looks likesingleton=true load_once=true symbolprefix="godot" reloadable=true
[entry]
Android.armeabi-v7a="res://FLMusicLib/Android/armv7a/libFLMusicLib.so" Android.arm64-v8a="res://FLMusicLib/Android/armv8-64/libFLMusicLib.so" Windows.64="res://FLMusicLib/Windows/x64/FLMusicLib.dll" Windows.32="res://FLMusicLib/Windows/x86/FLMusicLib.dll" X11.64="res://FLMusicLib/Linux/x64/libFLMusicLib.so.1.0.0"
[dependencies]
Android.armeabi-v7a=[ ] Android.arm64-v8a=[ ] Windows.64=[ "res://FLMusicLib/Windows/x64/libopenmpt.dll", "res://FLMusicLib/Windows/x64/openmpt-mpg123.dll", "res://FLMusicLib/Windows/x64/openmpt-ogg.dll", "res://FLMusicLib/Windows/x64/openmpt-vorbis.dll", "res://FLMusicLib/Windows/x64/openmpt-zlib.dll" ] Windows.32=[ "res://FLMusicLib/Windows/x86/libopenmpt.dll", "res://FLMusicLib/Windows/x86/openmpt-mpg123.dll", "res://FLMusicLib/Windows/x86/openmpt-ogg.dll", "res://FLMusicLib/Windows/x86/openmpt-vorbis.dll", "res://FLMusicLib/Windows/x86/openmpt-zlib.dll" ] X11.64=[ ]