Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: tyb51 on July 12, 2015, 09:30:34 AM

Title: Another android native 'Saved games' issue
Post by: tyb51 on July 12, 2015, 09:30:34 AM
Seeing someone posting about android native, I've decided to also ask some help around android native-plugin.

Could anyone who owns this plugin explain to me what the workflow is to save and load your data. (I managed to get my Easy Save 2 byte-data into 1 string, which i can supposedly save). But then when I actually get to the upload and download to/from the cloud part in my workflow everything seems useless.

The 'create snapshot'-action doesn't really do anything for me, and by opening the Saved Games UI with the 'AN_GameSavesEventsListener'-action and pushing save, there doesn't seem to be happening anything. Also in the original action there was no way to load/save your actual data (but I've added that part myself).

Lack of documentation is also very frustration with this plugin.  >:(Because the names of the actions don't really tell me what they do.

I've looked into the load action which are also very unclear on what they actually do. But I think opening the native Saved Games UI  and tapping the save should be enough. (again I added the load data part myself, which was absent)

Back to the main question: anyone could share a screenshot or something on how to get this to work?

PS: if someone has an easy way to implement the deprecated 'cloud save' that would also be an enormous help, as I had this new 'Saved Games'-ui bulsh*t. (Srry for my language  ::) )
Title: Re: Another android native 'Saved games' issue
Post by: Weedsh on November 28, 2015, 01:49:30 PM
create a snapshot does not working for me too. pls could someone help?
Title: Re: Another android native 'Saved games' issue
Post by: Weedsh on December 09, 2015, 06:19:42 AM
Here is a link for a code example for jsondata/bytearraydata in c#. But i dont know enough coding to understand the examples. could someone help and explain how this works with playmaker?  http://forum.unity3d.com/threads/released-android-native-plugin.201468/page-26#post-2411261

thx in advance.
Title: Re: Another android native 'Saved games' issue
Post by: PlaymakerNOOB on December 11, 2015, 05:00:53 PM
Stan doesnt post here much, I believe the username is Lacost?

Stans documentation about cloud save
https://unionassets.com/android-native-plugin/saved-games-142

Stans documentation about its playmaker actions regarding save
https://unionassets.com/android-native-plugin/actions-list-98#an_createnewsnapshot

Though, to be fair it looks like its a googleplay issue, as they require the data to be byte encoded if you wish to use that feature.
https://developers.google.com/games/services/android/savedgames?hl=en#writing_saved_games
Hopefully an asset on the asset store will have byte encoding to make that feature useful.
Title: Re: Another android native 'Saved games' issue
Post by: Weedsh on December 21, 2015, 08:56:13 AM
maybe someone else could help
Title: Re: Another android native 'Saved games' issue
Post by: Weedsh on December 28, 2015, 08:00:37 AM
Could someone explain how i save all my savedata in JSON format. And after that, how i convert the JSON data to string and then convert this to a string byte array? Please anyone?