blackears / cyclopsLevelBuilder

A Godot plugin to let you block in levels inside the Godot editor.
MIT License
1.09k stars 44 forks source link

Cyclops level builder install issue on 4.2.1 #155

Closed warsang closed 7 months ago

warsang commented 7 months ago

Hi! I'm using Godot v4.2.1 and installed from source the latest cyclops level builder plugin. I added CyclopsAutoload to my autoloads and now when I try to enable the plugin (after restarting the editor), I get:

 res://addons/cyclops_level_builder/cyclops_level_builder.gd:73 - Parse Error: Cannot assign a value of type CyclopsLevelBuilder.EditMode to variable "edit_mode" with specified type EditMode.
  modules/gdscript/gdscript.cpp:2788 - Failed to load script "res://addons/cyclops_level_builder/cyclops_level_builder.gd" with error "Parse error". (User)

I haven't really changed/done anything else. Am I missing an install step?

warsang commented 7 months ago

Looks like changing line 73 from:

var edit_mode:EditMode = EditMode.VERTEX to:

var edit_mode: CyclopsLevelBuilder.EditMode = CyclopsLevelBuilder.EditMode.VERTEX

removes the error?

blackears commented 7 months ago

I've pushed the change. I'm guessing this is due to a name conflict.