blackears / cyclopsLevelBuilder

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

Tool menu doesn't activate when selecting a CyclopsBlock #193

Closed GameBeastProductions closed 2 months ago

GameBeastProductions commented 2 months ago

I decided to give this a try in a new project, but I can't get it work properly in Godot 4.3. I saw the issues with loading the plugin (#192) and installed the latest (master) build, but the tool menu doesn't activate when I select a CyclopsBlock node: Screenshot_20240820_210447 The menus at the bottom work fine, it's just the one at the top that doesn't show up.

Here's my system info according to Godot: Godot v4.3.stable - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Sat Jul 27 14:46:06 UTC 2024 - X11 - Vulkan (Forward+) - integrated AMD Radeon 780M (RADV GFX1103_R1) - AMD Ryzen 9 7940HS w/ Radeon 780M Graphics (16 Threads)

Edit: Just thought I'd add, I have tried all the usual troubleshooting stuff mentioned on the wiki, like restarting the editor several times and deleting/re-adding the autoload scene. Still having the problem.

Edit 2: I've been able to reproduce the issue in Godot 4.2.2 so it doesn't appear to be Godot 4.3-related.

GameBeastProductions commented 2 months ago

I've figured out what was wrong. The CyclopsConfig resource (I think it's in data/configuration.tres?) was missing a list of tool scripts, so the plugin never loaded any of the tools. I stuck in a quick and dirty workaround in my addon installation which dynamically loaded the scripts in the tools directory to populate the list with and this fixed the issue for me.

GameBeastProductions commented 2 months ago

On closer inspection, I think the initial errors I got when I first loaded the plugin (before the class database was recompiled) caused Godot to wipe my configuration file. I replaced mine with the configuration from the repo and fixed the issue properly.