Iakobs / godot-play-game-services

A Godot 4.x plugin for integration with Google Play Game Services
MIT License
120 stars 7 forks source link

Unable to enable the plugin #4

Closed Draethos closed 9 months ago

Draethos commented 9 months ago

I downloaded the plugin and put it in the demo project to try it out as I have no idea how to work with java so I needed the demo, but it keeps giving me this error "res://addons/addons/GodotPlayGameServices/export_plugin.gd’. This might be due to a code error in that script. Disabling the addon at ‘res://addons/addons/GodotPlayGameServices/plugin.cfg’ to prevent further errors."

Iakobs commented 9 months ago

Hi @Draethos !

It does that the first time you open the project, I'm still not sure why. It is usually solved by reloading the project in Godot.

If the problem persists, please try to attach a screenshot of the godot logs.

Just take into account that to test the plugin you will need to configure it with your App Id (more information in the README of the repository), and you also will need to run the game in an android device (real or emulated), which implies installing an android build template:

imagen

And then running the game like this:

imagen

Draethos commented 9 months ago

I reloaded the project and it sent the same thing, i even tried both versions of the plugin

Iakobs commented 9 months ago

Can you attach a screenshot of the output of the logs in the editor? It's difficult to help without more information :)

Draethos commented 9 months ago

Which logs exactly? Because all I'm getting is the "res://addons/addons/GodotPlayGameServices/export_plugin.gd’. This might be due to a code error in that script. Disabling the addon at ‘res://addons/addons/GodotPlayGameServices/plugin.cfg’ to prevent further errors."

Iakobs commented 9 months ago

ok, that's weird. I was refering to the output in the editor:

imagen

But if that's the only thing you get, then that's weird. When and where do you see this error? Can you explain to me the steps you take from the beginning, so I can try to reproduce the error?

Thanks a lot!

Draethos commented 9 months ago

Yes of course. So I took the addons.zip that you can download and put it into the demo folder's addons folder. I went into Godot and then Project --> Project Settings --> Plugins --> Enable. When I try to enable the plugin it sends me this. Screenshot (739)

Iakobs commented 9 months ago

The first thing I can see is that you are not using version 4.2 of Godot. This plugin is only for Godot 4.2 or higher (well, 4.2 is the highest right now 😛 ), could you try installing Godot 4.2 and trying there?

Draethos commented 9 months ago

Yea ill try. Itll take me some time cause ive got bad internet.

Iakobs commented 9 months ago

no worries! just let me know if that solves your problem, no hurries!!

Draethos commented 9 months ago

It did solve the problem. Thank you so much mate. Have a great new year

Iakobs commented 9 months ago

yay!! I'm glad it works now! Have a great year you too!