awkwardpolygons / cartographer

A GPU powered Terrain editor and renderer for Godot Engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin fails to load due to syntax error.

EzraT opened this issue · comments

commented

OS: Linux Mint 20 x86_64
Plugin version: 0.7.0
Godot version: 3.2.2.stable

Whenever I try to enable Cartographer in the plugins menu, Godot displays the following pop-up error message:
image

And the following console output:
image

Thanks in advance, this plugin looks great!

You need to enable the cartographer singleton. Check the example's settings. I should add this to the readme.

commented

You need to enable the cartographer singleton.

Thanks, I tried that before and it gave me the same error, but I see where things went wrong now, the project needs to be reloaded after the singleton is added, after that the plugin loads.

I'm a bit confused though, isn't the plugin supposed to add the singleton on init by itself?
The init function of the plugin.gd tries to load it with:
add_autoload_singleton("Cartographer", "res://addons/cartographer/cartographer_singleton.gd")

What use does this have if you need to load it manually anyway?

add_autoload_singleton just adds it to the autoload list, you still have to enable it, as for the reasoning, I don't know.