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

Curve3D::sample_baked_with_rotation is not getting called #1121

Open
RonYanDaik opened this issue May 23, 2023 · 8 comments
Open

Curve3D::sample_baked_with_rotation is not getting called #1121

RonYanDaik opened this issue May 23, 2023 · 8 comments
Labels
topic:gdextension This relates to the new Godot 4 extension implementation

Comments

@RonYanDaik
Copy link

I have a class that extends Path3D.
I'm calling in the process sample_baked_with_rotation(...)
And this error appears:
the error: core\extension\gdextension_interface.cpp:990 - Hash mismatch for method 'Curve3D.sample_baked_with_rotation'.

@Calinou
Copy link
Member

Calinou commented May 23, 2023

Which Godot version are you using? If you updated Godot recently, you need to rebuild your extension.

@Calinou Calinou added the topic:gdextension This relates to the new Godot 4 extension implementation label May 23, 2023
@RonYanDaik
Copy link
Author

Its 4.0.x. Not 4.1.
I think I've updated it a mount ago or so.

@Calinou
Copy link
Member

Calinou commented May 23, 2023

@RonYanDaik
Copy link
Author

RonYanDaik commented May 23, 2023

I've just switched both to master branch (4.1) and got same error:
image

but this time it crashed because of:
image

@RonYanDaik
Copy link
Author

RonYanDaik commented May 30, 2023

I've updated to godot 4.1

godot commit:
godotengine/godot#77578

godot-cpp:
#1113

I've cleaned and recompiled and some functions in Curve3D are missing.
Now sample_baked cant be found also.

@RonYanDaik
Copy link
Author

Node3D::look_at also missing.

@dsnopek
Copy link
Collaborator

dsnopek commented May 30, 2023

If you've updated to godot & godot-cpp master, you may also need to replace the extension_api.json in godot-cpp by running this command with the godot version you are using with:

godot --headless --dump-extension-api

Periodically, this gets updated in the godot-cpp repo itself, but I think it's gotten a little stale.

@RonYanDaik
Copy link
Author

by running this command with the godot version

Thanks! That worked.

Only extension_api.json is located inside godot-cpp\gdextension

Maybe simple adding bat file with instructions will be good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:gdextension This relates to the new Godot 4 extension implementation
Projects
None yet
Development

No branches or pull requests

3 participants