blackears / cyclopsLevelBuilder

A Godot plugin to let you block in levels inside the Godot editor.
MIT License
920 stars 36 forks source link

Bug: Menu button not loading #124

Closed 3mdistal closed 3 months ago

3mdistal commented 5 months ago

I'm following the tutorial and properly loading the Autoload, etc. All functionality is there, with no errors in the console.

However, there is no menu button visible in the plugin.

Screenshot 2024-01-17 at 11 06 48 AM

The menu button is visible and there in the code (I went and checked the menu scene), but it doesn't appear in the plugin.

I'm on Godot 4.2.1 stable.

3mdistal commented 5 months ago

I went to the editor_toolbar.tscn and gave the Menu button a custom minimum size, for testing purposes. Now, I just see an unclickable gap.

This is on a brand new project, by the way, with Cyclops being the only plugin installed, just to reduce the chance of something interfering.

Screenshot 2024-01-17 at 11 21 04 AM

I am also now seeing "Can't take value from empty array." occasionally in the console.

The same behavior (minus the console error) also happens if I go and run the editor_toobar.tscn scene independently.

blackears commented 5 months ago

I don't know why that is happening. It's just a standard MenuBar control, so it should work. Maybe there's something strange with your Godot installation? What OS are you using? I'm not sure what I might be able to do about this.

The version of Godot i'm using is v4.2.stable.official [46dc27791]

The Can't take value from empty Array. is being called by Godot from something in the scene graph. It doesn't provide any further information on what is causing it, so I have little idea where to look to try and debug it. It doesn't seem to affect the running of Cyclops, though.

blackears commented 5 months ago

I just tried again with v4.2.1.stable.official [b09f793f5] and it's displaying properly there too. Are you running off of a cloned Github branch or off of the zip file from the releases?

3mdistal commented 5 months ago

I'm running off the zip file from the release. I'll try cloning it this morning, too, doing some fresh installs, etc. I completely agree—I can't find any reason in the code that the button would be disappearing.

3mdistal commented 5 months ago

I did a fresh install of Godot and then cloned the demo project. Same problem.

I'm on an M1 Pro Mac, using v4.2.1.stable.official [b09f793f5] (same as the version you tried).

I have no clue what may be causing this, but happy to screen share specific things that might help you.

Screenshot 2024-01-18 at 8 21 07 AM
keshavagrawal89 commented 4 months ago

Getting the same problem. No menu bar.

Godot 4.2 cyclopsbuilder 1.0.2 Plugin successfully enabled.

EmilienLeroy commented 4 months ago

Hi @3mdistal and @keshavagrawal89 I encountered the same issue and found a workaround to display the menu.

  1. Navigate to this file: editor_toolbar.tscn

    image

  2. Select the MenuBar node within the file:

    image

  3. Uncheck the Prefer Global Menu option:

    image

  4. Save your changes and restart Godot. The menu should now appear:

    image

blackears commented 4 months ago

I've committed the change. Let me know if this is still causing issues.

EmilienLeroy commented 3 months ago

Hi @blackears I have installed the addon from the master branch, and it work perfectly for me !

image