godot-pixel-painter icon indicating copy to clipboard operation
godot-pixel-painter copied to clipboard

Error in code, can't activate Plugin

Open lufemas opened this issue 4 years ago • 3 comments

When I try to activate the plugin a get this message:

Unable to load addon script from path: 'res://addons/painter/painter plugin.gd' There seems to be an error in the code, please check the syntax.

I took a look on the code and is on line 173, probably you need to change the !(selected_object[0] extends Sprite) for !(selected_object[0] is Sprite)

I'm trying to fix it, but I didn't look all the code.

lufemas avatar Mar 23 '20 17:03 lufemas

Line 240 too:

var img = Image(ns.x, ns.y, false, Image.FORMAT_RGBA)

Image isn't declared. I dont know if it is outdated.

lufemas avatar Mar 23 '20 17:03 lufemas

you can fix this using var img = Image.create(ns.x, ns.y, false, Image.FORMAT_RGBA)

ghost avatar Oct 24 '20 22:10 ghost

however the plugin remains broken because it was made for an older version of Godot. You would need a lot of refactoring to get it compatible with 3.2.3

ghost avatar Oct 27 '20 16:10 ghost