Save data to AS3 on Android

Discussion and help for Easy Save 3
Post Reply
User avatar
SergeyRussia
Posts: 5
Joined: Mon Mar 02, 2020 8:19 pm

Save data to AS3 on Android

Post by SergeyRussia »

Hello.
I cannot understand why I cannot save data on Android using ES3 (with ES2 - this works).
(Everything works fine on the computer)
Please see, what could be wrong?
Attachments
ES2-ES3.jpg
ES2-ES3.jpg (176.63 KiB) Viewed 2779 times
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Save data to AS3 on Android

Post by Joel »

Hi there,

In the settings you have the location set to Data Path. The data path does not exist at runtime on Android, so you should use Persistent Data Path instead.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
User avatar
SergeyRussia
Posts: 5
Joined: Mon Mar 02, 2020 8:19 pm

Re: Save data to AS3 on Android

Post by SergeyRussia »

Unfortunately this does not work.
I changed various settings a lot of times ..
Attachments
es3-1.jpg
es3-1.jpg (22.67 KiB) Viewed 2777 times
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Save data to AS3 on Android

Post by Joel »

Hi there,

Please could you private message me a project which replicates this?

Also if possible, please could you try building to Windows or Mac and see if the issue still occurs? You might also want to try deleting the app from your device to ensure there's no local data

Another thing: are any errors being output to console on device? You might need to adjust the Playmaker settings to ensure that these are outputted to console.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
shamo
Posts: 9
Joined: Wed Apr 25, 2018 7:58 am

Re: Save data to AS3 on Android

Post by shamo »

Hi Joel,
Also having the same problem as this fellow. Works in the editor, will not work on Android device. Tried all sorts of settings to no avail.
Previous version worked fine if set via the ES3 settings prefab with auto add to scene and auto update both unchecked.
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Save data to AS3 on Android

Post by Joel »

Hi there,

Have you tried updating from the Asset Store? We released a patch update last week to address this issue.

You might also want to check that your encryption password hasn't been reset in Settings when updating from the Asset Store. This can also cause the CryptographicException you encountered.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
shamo
Posts: 9
Joined: Wed Apr 25, 2018 7:58 am

Re: Save data to AS3 on Android

Post by shamo »

Thanks for the help Joel,
what worked was changing the .Es3 file name to a different name. It seems that updating a game via Google play usually leaves the ES3 file on the device. As I can't recall the password set previously, just creating a new file seemed the better option.
Also changing the 'key' in Playmaker from a global setting (just to make it easier) to just inputting text seemed to make a difference.
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Save data to AS3 on Android

Post by Joel »

Hi there,

Glad you resolved your issue. It sounds like Google Play might be backing up the file in the cloud, which is why it wasn't deleted when deleting the app.

Let me know if you run into any other issues :)

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply