utopia-rise / fmod-gdextension

FMOD Studio GDExtension bindings for the Godot game engine
MIT License
485 stars 52 forks source link

Plugin fails to load in Godot v4.3.beta2.official due to Parse Error #229

Closed Novark closed 5 months ago

Novark commented 5 months ago

I'm not sure if the plugin is intended to be used with versions later than 4.2, however, the release notes mention that the plugin should work with newer releases as well.

I'm running the latest Godot v4.3.beta2.official build, but the plugin does not load due to the following error:

SCRIPT ERROR: Parse Error: Class "FmodPlugin" hides a global script class.
          at: GDScript::reload (res://addons/fmod/FmodPlugin.gd:2)
ERROR: Failed to load script "res://addons/fmod/FmodPlugin.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript.cpp:2951)

Additionally, I'm getting a bunch of Windows driver warnings which may be completely unrelated to this error, but I'll include them here just in case:

WARNING: Cannot find master strings bank at res:///Master.strings.bankvoid __cdecl godot::FmodEditorPlugin::_ready(void)2
     at: push_warning (core/variant/variant_utility.cpp:1112)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/property_editors/FmodGuidAndPathPropertyEditorUi.g.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/property_editors/FmodPathEditorProperty.gd', store.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/ui/EventParametersDisplay.gd', stored as 'res://Ad.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/ui/FmodBankExplorer.gd', stored as 'res://Addons/f.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/ui/ParameterDisplay.gd', stored as 'res://Addons/f.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/property_editors/FmodGuidAndPathPropertyEditorUi.g.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/property_editors/FmodPathEditorProperty.gd', store.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/ui/EventParametersDisplay.gd', stored as 'res://Ad.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/ui/FmodBankExplorer.gd', stored as 'res://Addons/f.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/ui/ParameterDisplay.gd', stored as 'res://Addons/f.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/property_editors/FmodGuidAndPathPropertyEditorUi.g.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/property_editors/FmodPathEditorProperty.gd', store.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/ui/EventParametersDisplay.gd', stored as 'res://Ad.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/ui/FmodBankExplorer.gd', stored as 'res://Addons/f.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)
WARNING: Case mismatch opening requested file 'res://addons/fmod/tool/ui/ParameterDisplay.gd', stored as 'res://Addons/f.
     at: open_internal (drivers/windows/file_access_windows.cpp:181)

System / Build information:

Windows 11 Pro (x64) Godot v4.3.beta2.official [b75f0485b] FMOD GDExtension (4.2.0-4.2.0 [1d3d7f5])

piiertho commented 5 months ago

Hello !

Thanks for reporting. It seems your add on folder has an uppercase. Can you rename it with full lowercase ? (Addons => addons) windows can be tricky with paths and case sensitivity.

Novark commented 5 months ago

Hello !

Thanks for reporting. It seems your add on folder has an uppercase. Can you rename it with full lowercase ? (Addons => addons) windows can be tricky with paths and case sensitivity.

Whoops! Looks like that did the trick. I completely forgot about the case-sensitivity of the addons folder. It's working now.

Thank you!

piiertho commented 5 months ago

You're welcome !