Unable to load addon script from path: 'res://addons/cartographer/plugin.gd'
opened this issue · comments
Deleted user commented
Unable to load addon script from path: 'res://addons/cartographer/plugin.gd' There seems to be an error in the code, please check the syntax.
error(4,1) Expected a constant expression
const Action = Cartographer.action
Adrien commented
Are you on Godot 3.2.2?
Just replace const
with var
and it should be fine. Will check and update later.
ssj17vegeta commented
On Godot 3.2.2, resolved by adding cartographer_singleton.gd as Singleton with autoload = true, same as in the example project.
Deleted user commented
Thanks
Adrien commented
Thanks @ssj17vegeta