godot-cpp
godot-cpp copied to clipboard
Curve3D::sample_baked_with_rotation is not getting called
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'.
Which Godot version are you using? If you updated Godot recently, you need to rebuild your extension.
Its 4.0.x. Not 4.1. I think I've updated it a mount ago or so.
- See https://github.com/godotengine/godot/issues/75779.
I've just switched both to master branch (4.1) and got same error:
but this time it crashed because of:
I've updated to godot 4.1
godot commit: https://github.com/godotengine/godot/pull/77578
godot-cpp: https://github.com/godotengine/godot-cpp/pull/1113
I've cleaned and recompiled and some functions in Curve3D are missing. Now sample_baked cant be found also.
Node3D::look_at also missing.
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.
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.