godot-cpp icon indicating copy to clipboard operation
godot-cpp copied to clipboard

Curve3D::sample_baked_with_rotation is not getting called

Open RonYanDaik opened this issue 1 year ago • 8 comments

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'.

RonYanDaik avatar May 23 '23 13:05 RonYanDaik

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

Calinou avatar May 23 '23 13:05 Calinou

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

RonYanDaik avatar May 23 '23 13:05 RonYanDaik

  • See https://github.com/godotengine/godot/issues/75779.

Calinou avatar May 23 '23 13:05 Calinou

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

but this time it crashed because of: image

RonYanDaik avatar May 23 '23 14:05 RonYanDaik

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.

RonYanDaik avatar May 30 '23 06:05 RonYanDaik

Node3D::look_at also missing.

RonYanDaik avatar May 30 '23 07:05 RonYanDaik

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.

dsnopek avatar May 30 '23 10:05 dsnopek

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.

RonYanDaik avatar May 30 '23 13:05 RonYanDaik