GodotNuts / GodotFirebase

Implementations of Firebase for Godot using GDScript
MIT License
517 stars 74 forks source link

The plugin dosn't want to work in Godot v4.2.1 ?? #374

Closed CodeCrusherMedo closed 7 months ago

CodeCrusherMedo commented 7 months ago

Describe the bug i have godot engine v4.2.1 and i follow every thing in the starting guide but when i try to run a basic script, it doesn't want to work. it gives me an error in the editor

To Reproduce Steps to reproduce the behavior: i just make a simple UI scene with a button and attach a scipt to it so when i press the button it get data from firebase database

var firebaseob = Firebase.Firestore.collection("/Novels Info")

Screenshots i got this error when i try to get the script to work :

image

Environment:

I am not sure what is happening

CodeCrusherMedo commented 7 months ago

i also notice something else in a lot of the add-on scripts, it give me some sort of error "couldn't find type something":

image

image

image

image

CodeCrusherMedo commented 7 months ago

just now I try to use Godot v4.1.1 and no errors. so i thing the plugin isnot comapatable with 4.2.1 yet ??

WolfgangSenff commented 7 months ago

It works fine in 4.2.1 (I just ran it in my test harness - you can find the test harness in our repo, including one with 4.x support on a different branch). I think probably you either downloaded the 3.x version by mistake, or it has cached your build. If you try closing Godot, then going into your project's folder and deleting your .godot folder, then re-opening your project in 4.2.1 or whatever version, it should work I think.

WolfgangSenff commented 7 months ago

Looks like you didn't do 3.x, so try the .godot folder delete thing. This is a common issue with Godot when upgrading projects or things like that. When and where did you download the plugin? Like I said, I have it working just fine, no changes needed, in several projects, would be weird if it only didn't work for you because the plugin is wrong.

CodeCrusherMedo commented 7 months ago

thanks alot it work just fine after i delete the .godot folder thing thanks alot 😊