gilzoide / godot-lua-pluginscript

Godot PluginScript for the Lua language, currently based on LuaJIT's FFI
https://gilzoide.github.io/godot-lua-pluginscript/topics/README.md.html
MIT License
308 stars 21 forks source link

Mono: Core API Hash Mismatch Error. #53

Closed Ayush4441 closed 1 year ago

Ayush4441 commented 1 year ago

In Godot 3.5.x Mono, this error occurs when a C# solution has been built before running.

Error Message: E 0:00:00.560 _init_godot_api_hashes: Mono: Core API hash mismatch. <C++ Source> modules/mono/mono_gd/gd_mono.cpp:515 @ _init_godot_api_hashes()

gilzoide commented 1 year ago

I don't think a "Core API hash mismatch" in GDMono error would be related to Lua PluginScript. Does this error occur only when the plugin is not installed? Maybe try removing the plugin and seeing if the error persists.

Ayush4441 commented 1 year ago

The "Core API hash mismatch" error occurs only when I run Godot with the Lua PluginScript installed alongside the C# solution I've created. When I remove the plugin, the error does not occur.

gilzoide commented 1 year ago

Weird stuff, I was able to reproduce it here with Godot 3.5.3 C#.

There are some issues in the godotengine/godot with this error (like these ones), I guess registering a PluginScript (maybe it happens with any GDNative library? who knows) just changes the API hash and this warning is issued. I think there is nothing to be done in this repo, maybe not even in Godot itself.

As said in the following comment, there is most likely nothing to worry about: https://github.com/godotengine/godot/issues/40527#issuecomment-664146125

Ayush4441 commented 1 year ago

Thank you for checking into this. If this error doesn't affect my project in any way, I won't worry about it.

I appreciate your investigation.