Manonox / godot-dev-blocks

Other
13 stars 1 forks source link

Getting errors on loading #1

Closed mediajolt001 closed 2 months ago

mediajolt001 commented 2 months ago

I'm seeing these errors when loading a project:

es://addons/devblocks/blocks/colored_block.gd:0 - Parse Error: Could not resolve class "BasicBlock".
  modules/gdscript/gdscript.cpp:2726 - Failed to load script "res://addons/devblocks/blocks/colored_block.gd" with error "Parse error". (User)
  res://addons/devblocks/blocks/emission_block.gd:0 - Parse Error: Could not resolve class "ColoredBlock".
  modules/gdscript/gdscript.cpp:2726 - Failed to load script "res://addons/devblocks/blocks/emission_block.gd" with error "Parse error". (User)
  res://addons/devblocks/blocks/basic_block.gd:72 - Parse Error: Cannot infer the type of "texture_folder" variable because the value doesn't have a set type.
  res://addons/devblocks/blocks/basic_block.gd:73 - Parse Error: Cannot infer the type of "full_texture_path" variable because the value doesn't have a set type.
  modules/gdscript/gdscript.cpp:2726 - Failed to load script "res://addons/devblocks/blocks/basic_block.gd" with error "Parse error". (User)

Did I not install it correctly? I just dragged-and-dropped the devblocks folder to the addons folder in my project. I am running 4.2.2 - could that also be the issue?

Thanks!

Manonox commented 2 months ago

Hm, type inference changed a bit, fixed

Manonox commented 2 months ago

https://github.com/Manonox/godot-dev-blocks/commit/a6a74768dab4fd7d146d1a01cf370fe4b58ff35b