GodotModding / godot-mod-tool

Tool to improve the development experience when creating Godot mod-loader mods.
MIT License
41 stars 3 forks source link

Can't enable plugin because of missing `ModToolStore` autolaod #71

Closed KANAjetzt closed 1 year ago

KANAjetzt commented 1 year ago

Ste — 02/07/2023 16:16 very weird issue to have - i can't enable the addon because the toolstore is missing. and that is missing because i haven't enabled the addon can't enable because of error in plugin.gd > error from tools_panel.gd > error from input.gd (requires the store)

KANAjetzt commented 1 year ago

The plugin can't be enabled due to the static type of tools_panel: ModToolsPanel. Removing that type allows the plugin to be enabled.

That type doesn't work because ModToolsPanel has the variable context_actions: FileSystemContextActions, and FileSystemContextActions depends on ModToolStore. However, ModToolStore is not loaded yet because the autoload is added in the _enter_tree() function of plugin.gd. ?! 👀

KANAjetzt commented 1 year ago

temporarily fixed by #75

https://github.com/GodotModding/godot-mod-tool/pull/76#discussion_r1257462938