don-tnowe / godot-sprite-painter

Image editor right inside Godot 4.
MIT License
79 stars 8 forks source link

after install enable, and use pen, this error appear #1

Open bluregamer opened 1 year ago

bluregamer commented 1 year ago

res://addons/sprite_painter/src/editing_tools/tool_pencil.gd:35 - Cannot call method 'get_size' on a null value. res://addons/sprite_painter/src/main.gd:153 - Invalid call. Nonexistent function 'get_format' in base 'Nil'. res://addons/sprite_painter/src/main.gd:159 - Invalid call. Nonexistent function 'get_size' in base 'Nil'. res://addons/sprite_painter/src/workspace.gd:86 - Attempt to call function 'update' in base 'null instance' on a null instance.

apology first, i am not very familiar with github, and the rules. just an update that there is error. mean not everyone will be able to install and use it,

don-tnowe commented 1 year ago

Can the plugin still be used normally after?

If this happens when an image is opened from the file system (not on a scene) then this is a known issue, I still gotta fix this

Thanks

bluregamer commented 1 year ago

after the update on the sdk net 6.0, required by the godot4, there onward can start drawing on the image BUT it cannot be save , or is there any button to save it? error prompt when use pen click hold to draw, pen drawing do appear, and when i unclick these error appear

Can't save PNG at path: 'res://root.tscn::ImageTexture_m5xh2'. 12 res://addons/sprite_painter/src/workspace.gd:129 - Attempt to call function 'update' in base 'null instance' on a null instance. Edit image (start: (56, 43), end: (327, 133)) res://addons/sprite_painter/src/workspace.gd:86 - Attempt to call function 'update' in base 'null instance' on a null instance. Unicode parsing error, some characters were replaced with spaces: Invalid UTF-8 leading byte (89)

bluregamer commented 1 year ago

i think u can ignore my previous message., after quit and restart godot, it goes back to first senario

bluregamer commented 1 year ago

i will like to update, the paint edit is working now, the output do show some error , but image is editable now. what i did is. 1) install NET 6.0 SDK, then it work well, previously it was 7.0 so by lower it to 6.0 it work ok for me now.