utopia-rise / fmod-gdextension

FMOD Studio GDExtension bindings for the Godot game engine
MIT License
385 stars 42 forks source link

Unable to load addon script from path #174

Open stevenpi opened 8 months ago

stevenpi commented 8 months ago

Hey there, I tried to setup the project following the steps provided in the docs. Unfortunately, I'm running into some problems/confusion. I run Godot 4.1.1 on windows, therefore I downloaded the newest release and extracted the addons folder to my projects addons folder. After that, the documentation states that I have to copy the fmodlibraries to res://addons/fmod/libs/windows/, since the repository can not provide the libraries. So I installed the fmod engine api, and wanted to copy the fmod libraries, but I saw that fmod.dll & fmodstudio.dll files are already present. Do I still have to replace the libraries, or am I trying to copy the fmod libraries to the wrong location? Also when I try to enable the plugin, godot returns the following error:

Unable to load addon script from path: 'res://addons/fmod/FmodPlugin.gd'. This might be due to a code error in that script. Disabling the addon at 'res://addons/fmod/plugin.cfg' to prevent further errors.

What do I need to do?

CedNaru commented 8 months ago

Hello, It's a mistake of our part, you don't need to download and install the dynamic libraries yourself anymore. We forgot to remove that part from the documentation.

Regarding your error, the plugin has been built for Godot 4.1.2, so it's the minimum version you need to run if you want to use it. If I try to use the plugin with Godot 4.1.1, I get the following error: godot-cpp\src\godot.cpp:263 - Cannot load a GDExtension built for Godot 4.1.2 using an older version of Godot (4.1.1).