playMaker

Author Topic: Another android native 'Saved games' issue  (Read 1866 times)

tyb51

  • Playmaker Newbie
  • *
  • Posts: 10
    • View Profile
Another android native 'Saved games' issue
« on: July 12, 2015, 06: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  ::) )

Weedsh

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: Another android native 'Saved games' issue
« Reply #1 on: November 28, 2015, 11:49:30 AM »
create a snapshot does not working for me too. pls could someone help?
« Last Edit: December 09, 2015, 04:19:28 AM by Weedsh »

Weedsh

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: Another android native 'Saved games' issue
« Reply #2 on: December 09, 2015, 04: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.

PlaymakerNOOB

  • Full Member
  • ***
  • Posts: 117
    • View Profile
Re: Another android native 'Saved games' issue
« Reply #3 on: December 11, 2015, 03: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.

Weedsh

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: Another android native 'Saved games' issue
« Reply #4 on: December 21, 2015, 06:56:13 AM »
maybe someone else could help

Weedsh

  • Playmaker Newbie
  • *
  • Posts: 24
    • View Profile
Re: Another android native 'Saved games' issue
« Reply #5 on: December 28, 2015, 06: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?