Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDExtension classes do not show up in editor #101053

Closed
DavidJHartman opened this issue Jan 2, 2025 · 5 comments
Closed

GDExtension classes do not show up in editor #101053

DavidJHartman opened this issue Jan 2, 2025 · 5 comments

Comments

@DavidJHartman
Copy link

Tested versions

Reproducible in Godot 4.4-dev 7

System information

Godot v4.4.dev7.mono - Windows 11 (build 22631) - Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4090 (NVIDIA; 32.0.15.6636) - 13th Gen Intel(R) Core(TM) i9-13900K (32 threads)

Issue description

After following the GDExtension documentation, the new example class does not show up in editor. I get no errors when launching the editor or the project.

Attached is the project.

Steps to reproduce

After compiling the gdexample with SCons and updating the gdexample.gdextension file, launch Godot and look for GDExample node in the "Add node" menu. It is not present.

Minimal reproduction project (MRP)

Voxel Game.zip

Could not include godot-cpp folder due to size limitations. It was compiled using Godot 4.4 dev 7 and placed in the root directory as the documentation required.

@FireCatMagic
Copy link
Contributor

This also happens to me, and it shows up in the editor documentation but not in the list when I try and make a new node.
Editor Search:
Image
All instances of the GDE nodes also just become their base classes, example if it extends Node3D it just is in the game as a Node3D.

Yet, all of my classes show up in the documentation.
Image

@FireCatMagic
Copy link
Contributor

Only fix I've found is using the 4.3 branch of godot-cpp.

@dsnopek
Copy link
Contributor

dsnopek commented Jan 7, 2025

When observing the problem, are you using the master branch (currently at 47f11bc) of godot-cpp?

If so, I think the problem is that Godot 4.4-dev7 doesn't include the changes from PR #100193 (merged into Godot master), whereas godot-cpp's master branch is already updated for it.

Godot master and godot-cpp master are working fine together in my testing, but godot-cpp master is no longer compatible with 4.4-dev7. If you switch to the 27ffd8c commit of godot-cpp, then it should work with 4.4-dev7.

@FireCatMagic
Copy link
Contributor

I was using 4.4-dev7, that most likely fixed it then

@akien-mga
Copy link
Member

Assuming fixed by using a compatible commit in godot-cpp for 4.4.dev7. The upcoming 4.4.beta1 should work with latest godot-cpp master.

@akien-mga akien-mga closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2025
@akien-mga akien-mga removed this from the 4.4 milestone Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants