Skip to content

Releases: godot-sdk-integrations/godot-play-game-services

v3.0.0

08 Jan 17:54
f9565c3
Compare
Choose a tag to compare

Important

This is a new major version and it breaks backward compatibility, make sure to update your code if you were using a previous version of this plugin.

Remove autoloads and make them Nodes

This is a new major version changing the way the plugin is implemented. Instead of creating several autoloads per client, now it creates one main autoload and the clients are Nodes that you can insert to your scenes. More information on how to use it in the demo project

Remove deprecated signal userSignedIn

The userSignedIn (or user_signed_in in GDScript) signal has been removed.

Use Android SDK 34

The compileSdk version has been update to use android SDK 34. The gradle plugin and gradle itself have been also updated to the latest versions.

Instructions

Download the addons.zip file and uncompress it in the root of your Godot game project.

v2.0.1

08 Jan 17:41
f5b2f48
Compare
Choose a tag to compare

Improve logs on GDScript code

As suggested by @goranovs in this Pull Request, the logs of the GDScript code when initializing the plugin have been improved to show better messages. Thanks for the collaboration, @goranovs !

Instructions

Download the addons.zip file and uncompress it in the root of your Godot game project.

v2.0.0

11 Oct 07:25
054b1cb
Compare
Choose a tag to compare

Rename all Player related class names

Important

This is a new major version and it breaks backward compatibility, make sure to update your code if you were using a previous version of this plugin.

The Player namespace used in the PlayersClient autoload is a very common name for games of all sorts, so I renamed it to be PlayGamesPlayer instead.

The GDScript classes and enums renamed are:

  • Player class turned into PlayGamesPlayer
  • PlayerLevelInfo class turned into PlayGamesPlayerLevelInfo
  • PlayerLevel class turned into PlayGamesPlayerLevel
  • PlayerFriendStatus enum turned into PlayGamesPlayerFriendStatus

Instructions

Download the addons.zip file and uncompress it in the root of your Godot game project.

v1.8.3

10 Oct 17:02
dd97d23
Compare
Choose a tag to compare

Return null when Snapshot is not found

Ass suggested by @TheSkyOne in this issue, when calling to SnapshotClient.load_game() and the snapshot is not found, the game_loaded signal will now return a null, instead of not being emitted at all as before.

Instructions

Download the addons.zip file and uncompress it in the root of your Godot game project.

v1.8.2

08 Oct 14:01
36230dd
Compare
Choose a tag to compare

Add origin field to SnapshotConflict object

As suggested by @RProduction in this issue, I added an origin field to the SnapshotConflict object coming in the SnapshotClient.conflict_emitted signal. This field value is either SAVE or LOAD, indicating what method originally triggered the Snapshot conflict.

Instructions

Download the addons.zip file and uncompress it in the root of your Godot game project.

v1.8.1

11 Sep 09:15
fb84ce8
Compare
Choose a tag to compare

Update version in plugin.cfg file

The plugin version was not updated in v1.8.0, causing confusion to users of the plugin. This patch fixes it.

Instructions

Download the addons.zip file and uncompress it in the root of your Godot game project.

v1.8.0

01 Sep 15:53
b0f46ee
Compare
Choose a tag to compare

Update plugin for Godot 4.3

Thanks to @TheSkyOne for bringing to my attention that the plugin wasn't working for Godot 4.3. I've update it to use version 4.3 of the Godot Library Dependency.

Update Google Play Games Library version

Google's play-services-games-v2 dependency was updated from version 19.0.0 to version 20.1.2.

Instructions

Download the addons.zip file and uncompress it in the root of your Godot game project.

v1.7.0

03 Mar 14:40
2fe3975
Compare
Choose a tag to compare

Send JSON strings instead of Dictionaries

The gameLoaded and conflictEmitted signals where sending an instance of the Dictionary class. Instead, they send a JSON string now, as suggested by @nepalisameer in this issue.

Instructions

Download the addons.zip file and uncompress it in the root of your Godot game project.

v1.6.0

02 Mar 21:56
d331fea
Compare
Choose a tag to compare

Load Snapshots

The loadPlayerCenteredScores method from Google's API has been added, returning the list of Snapshots for the current signed in player.

Fix crash when loading non existing save game

When calling the loadGame method with a non existing file name, the app crashed. This is fixed now, the app just prints a log with the error and continues execution.

Add new parameter to loadGame method

Added the createIfNotFound parameter to the loadGame method, with a default value of false to not break backwards compatibility. This parameter creates a new snapshot if the file name does not exist.

Add method to delete snapshots

Added new method to delete snapshots by snapshot id.

Add methods for events API

Added three new methods for events API:

  • incrementEvent
  • loadEvents
  • loadEventsByIds

Instructions

Download the addons.zip file and uncompress it in the root of your Godot game project.

v1.5.0

01 Mar 18:43
c7c2438
Compare
Choose a tag to compare

Order of autoloads

The autoloads where causing errors on first launch of the project, due to the load order and dependencies between them. The load order has now been fixed to avoid this errors. Also, the plugin is now disabled by default in the demo project. Look at the demo project documentation for further info.

Load player centered scores

The loadPlayerCenteredScores method from Google's API has been added to the plugin. This method returns a list of scores, centered in the signed in player, for a given leaderboard. There's no example in the demo app yet, but it's usage is documented in the code itself.

Load top scores

The loadTopScores method from Google's API has been added to the plugin. This method returns the top scores of a leaderboard for a given leaderboard. There's no example in the demo app yet, but it's usage is documented in the code itself.

Special thanks to @owlnewworlds for suggesting the addition of the loadPlayerCenteredScores and loadTopScores methods.

Instructions

Download the addons.zip file and uncompress it in the root of your Godot game project.