-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
Hot reload final steps #434
Comments
Yes, it's simply not implemented yet. The equivalent for godot-cpp: godotengine/godot-cpp#1200 |
blocked for Windows 10 by upstream godotengine/godot#82601 |
Current problems:
|
Ready for testing :) |
upstream PR merged to master! |
I just checked hot reload with Godot and gdext latest master branches and instead of loading new class, I have a
Extension marked as reloadable, but attempted to register class 'SuperPlayer' which doesn't support reloading. Perhaps your language binding don't support it? Reloading disabled for this extension.
The place where error generated:
https://github.com/godotengine/godot/blob/4c3dc26367518e006f8555c12f5d2df0b8a28192/core/extension/gdextension.cpp#L431
Seems like we need to supply
recreate_instance_func
. Also, seems like that requires migration from deprecated_register_extension_class
to_register_extension_class2
.Steps to reproduce a problem:
scons dev_build=yes debug_symbols=yes platform=windows compiledb=yes -j8
for debugging from CLion.reloadable = true
to theconfiguration
section of.gdextension
filecargo build --package dodge-the-creeps--lib --features custom-godot
--editor --path <path to dodge-the-creeps Godot folder>
, wait it for loading scenecargo build --package dodge-the-creeps--lib --features custom-godot
againThe text was updated successfully, but these errors were encountered: