KoBeWi / Metroidvania-System

General-purpose framework for creating metroidvania games in Godot.
https://godotengine.org/asset-library/asset/2301
MIT License
1.07k stars 51 forks source link

Cannot enable plugin #53

Closed teamman270 closed 5 months ago

teamman270 commented 5 months ago

I'm relatively new to Godot, so I don't know if this could be a problem on my part or not. I followed the instructions, but these errors came up in the output when I tried to enable the plugin. I went to the script it listed, and I saw the error "Identifier "MetSys" not declared in the current scope." on lines 106-108 and 111.

I am using the most up to date version of Godot.

Errors: res://addons/MetroidvaniaSystem/MetSysPlugin.gd:106 - Parse Error: Identifier "MetSys" not declared in the current scope. res://addons/MetroidvaniaSystem/MetSysPlugin.gd:107 - Parse Error: Identifier "MetSys" not declared in the current scope. res://addons/MetroidvaniaSystem/MetSysPlugin.gd:108 - Parse Error: Identifier "MetSys" not declared in the current scope. res://addons/MetroidvaniaSystem/MetSysPlugin.gd:111 - Parse Error: Identifier "MetSys" not declared in the current scope. modules/gdscript/gdscript.cpp:2726 - Failed to load script "res://addons/MetroidvaniaSystem/MetSysPlugin.gd" with error "Parse error". (User) core/config/project_settings.cpp:341 - Property not found: editor_plugins/enabled

Godot help

Help 2

KoBeWi commented 5 months ago

Sounds like this issue again #50 See if anything in that topic helps.

EDIT: Actually I see one potential problem here that could be solved 🤔

KoBeWi commented 5 months ago

I pushed e537bb97b99bb10242c97d69548bc563ce25d841, which should fix the issue. If the addon does not load on launch, you'll need to enable it manually.

HeadClot commented 5 months ago

That PR seems to have fixed it for me.