nathanfranke / gdextension

GDExtension template that automatically builds into a self-contained addon for the Godot Asset Library. Updated to Godot 4.3.
The Unlicense
196 stars 27 forks source link

Crashes on Windows10 x64 #5

Open KaijuKoder opened 1 year ago

KaijuKoder commented 1 year ago

Tried running this on Windows 10 x64. Steps 1 and 2 work fine in the README, but when I get to Step 3 "Import, edit, and play project/ using Godot Engine 4+", Godot 4 lets me import the project but when I try and open it, Godot4 crashes without any error message.

c:\test\gdextension>c:\test\Godot\Godot_v4.0-beta10_win64.exe

c:\test\gdextension>Godot Engine v4.0.beta10.official.d0398f62f - https://godotengine.org
OpenGL Renderer: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2

Editing project: c:/test/gdextension/project

c:\test\gdextension>

Given Godot 4 is still in flux, don't think it's worth trying to fix this. Letting you know in case others try go the GDExtension route. It seems no better than GDNative which came before it, and just as fragile. Maybe Modules are a better way to go.

frankhale commented 1 year ago

Very likely the same thing that happened to me a while ago. Have a look at https://github.com/nathanfranke/gdextension/issues/1. It looks like godot-cpp needs to be updated.

I just found the godot-cpp commit that goes with godot 4 beta10 and it's this one: https://github.com/godotengine/godot-cpp/commit/3da6db4fe41b8f3d3aaeb0dc80f1556f83fd7fe6

KaijuKoder commented 1 year ago

Thanks @frankhale. I tried your suggestion, but still couldn't get it working. I'm probably doing something wrong with git or the versions, but the instructions are unclear, even on Godot's own documentation website.

However I did find Custom Modules much, much easier, though even they have changed in Version 4: https://docs.godotengine.org/en/latest/contributing/development/core_and_modules/custom_modules_in_cpp.html

Update: Maybe it was the versions. Was able to extensions working using https://github.com/paddy-exe/GDExtensionSummator with Godot 45 RC2 (though not BETA10 which crashed) with these instructions step-by-step: https://ko-fi.com/post/GDExtension--Godot-SUPERCHARGED--How-to-get-star-Z8Z4GLUSE. Custom modules are much less work though.

nathanfranke commented 1 year ago

I updated and did a few fixes, it works on Linux and 4.0.1-stable. I will eventually test on Windows.

Edit 08-23: I haven't forgotten but still don't quite have the free time. You can bug me here if you need it.