-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Planned incompatible API changes for Godot 4.0 #71
Comments
Hi there! I don't have much experience with building godot from source, but I have tried building the plugin using scons to no avail: Would appreciate any pointers in the right direction to get this to work! |
Hi @Barskt! The binary files found on that branch are the old binary files which do not work with Godot 4.0 :( Regarding compiling the plugin yourself; you won't need to compile Godot from scratch, just the correct |
Ah, I see :/ |
You can now download the Windows and Linux binaries here. |
Thank you so much! One note to anyone else who might be interested. |
First off, amazing job. I tried to install on Alpha 6 but I get: E 0:00:00:0815 _register_extension_class: Method/function failed. Where did I go wrong? |
Hi @zenasican ! I've pushed an update to the Cheers! |
Awesome! I'm running Windows 10 at the moment. I'll try the new update asap. |
Godot 4 Alpha 6, Win10 Downloaded gd-extension and unzipped The EditorPlugin parser error is gone. The output console goes bonkers :D E 0:00:00:0989 _ready: Condition "_instance_bindings != nullptr" is true. Aside from that, it seems to work. |
Alpha 7:
godot-cpp from master: |
Hey @KirillSerogodsky ! I've synced the |
Hi, |
Hi @atngames I've updated to gd-extension to include the correct binary entries for Linux. I've added some small section in the OP to better describe how to get the Godot 4 version of the plugin working. |
You are wonderful, hard-working people - I've managed to get it to work without any issues. Let me know where I can donate to buy you a beer. |
I'm using linux and I have copied the linux filed (got from here https://github.com/2shady4u/godot-sqlite/actions/runs/3608518073) in x11 folder (renamed it as the old file .so) Assuming I'm using the 3.4 version of your plugin in my project and I want to port it in godot 4. what are exactly the steps to do it? |
Hi @git2013vb I've added a brand-new section to the OP. |
I downloaded the demo (from here https://github.com/2shady4u/godot-sqlite/tree/gd-extension) and I tried to run it - I use Debian 11 and v4.0.beta8.official [45cac42c0] - So when I try to run the demo he cannot recognise Ops. I noticed the demo do not have any binary :) I try using the one from 4.beta7.. I think it will work right? Finally it work. I checked the correct path and the correct library name (debug version for now) Thanks a lot. |
@2shady4u Is there a way we can compile this plugin in its current state for Android? Or some fixing is pending to be done before it can be compiled? |
Hi @vickylance , |
For anyone else getting "No suitable library found for GDExtension: res://addons/godot-sqlite/gdsqlite.gdextension." while attempting to export on Android, the fix is opening the .gdextension file in a text editor and adding the following lines: below [libraries]:
below [dependencies]:
|
Well, that got me 1 step closer, thanks!
|
Can you paste the contents of your .gdextension file? Also what architectures are you exporting for? Sorry I didn't notice the comment earlier. |
Gladly!
|
@2shady4u tacking on here as it seems to relate, but I can open another issue if you'd prefer. I haven't been able to find any other reference to issues reporting a lack of Web export for the new GDExtension. Readme.md doesn't list the Web under supported operating systems, but it does mention the web builds in the "How to Export" section. Is this a planned feature to be implemented, a breaking compatibility change, or a bug? * edit: Found the reference in the release notes:
|
Support for Web builds has now been added in the latest release, but it seems like it is still quite unstable (on the side of Godot). |
Closing this issue as the port to Godot 4.X+ has now matured enough. |
I've been working on the GDExtension port of this plugin on a separate branch which can be found here
This issue aims to serve as a compiled list of all planned changes that will (possibly) break backwards compatibility:
Other issues that are to be fixed and will be back-ported:
How to test the latest Godot 4.0 version of this plugin?
bin/
-folder of the demo-project. This can be done by either:How to port my Godot 3.x project to Godot 4.0?
Differences between the API can be easily analyzed by comparing the demo-project's differences between versions:
Godot 3.x: https://github.com/2shady4u/godot-sqlite/blob/master/demo/database.gd
Godot 4.0: https://github.com/2shady4u/godot-sqlite/blob/gd-extension/demo/database.gd
In summary:
has to be replaced by:
verbose_mode
-property has been removed in favor of theverbosity_level
-property. As a result, following lines of code:has to be replaced by:
The text was updated successfully, but these errors were encountered: