quiver-dev / quiver-analytics-godot-plugin

Track how players are interacting with your Godot game, while still respecting their privacy.
MIT License
17 stars 2 forks source link

Failed to load script "res://addons/quiver_analytics/consent_dialog.gd" with error "Parse error". #1

Open jg-shift opened 8 months ago

jg-shift commented 8 months ago

https://github.com/quiver-dev/quiver-analytics-godot-plugin/blob/f8b5fa80c3377dbfadbfbf069a2611b8a67cca92/addons/quiver_analytics/consent_dialog.gd#L17

just copied as the README says addons folder

--- Debug adapter server started --- --- GDScript language server started on port 6005 --- res://addons/quiver_analytics/consent_dialog.gd:17 - Parse Error: Identifier "Analytics" not declared in the current scope. res://addons/quiver_analytics/consent_dialog.gd:22 - Parse Error: Identifier "Analytics" not declared in the current scope. modules/gdscript/gdscript.cpp:2788 - Failed to load script "res://addons/quiver_analytics/consent_dialog.gd" with error "Parse error". (User) res://addons/quiver_analytics/consent_dialog.gd:17 - Parse Error: Identifier "Analytics" not declared in the current scope. res://addons/quiver_analytics/consent_dialog.gd:22 - Parse Error: Identifier "Analytics" not declared in the current scope. res://addons/quiver_analytics/analytics.gd:-1 - Compile Error: modules/gdscript/gdscript.cpp:2788 - Failed to load script "res://addons/quiver_analytics/analytics.gd" with error "Parse error". (User)

jg-shift commented 8 months ago

godot 4.2

agmathew commented 8 months ago

Can you verify that the Analytics node has been added as Autoload by going to Project Settings -> Autoload? This should have been added automatically when you installed the plugin.

jg-shift commented 8 months ago

No Analytics node in Autoload

agmathew commented 8 months ago

Hm, that's strange. Can you confirm that the Analytics plugin is enabled? Enabling it should automatically add the Analytics autoload.