Construct 2 Variables and Updates

Discussion and feedback on Construct 2

Post » Sun Jan 01, 2017 3:14 pm

Hello everyone, i am making a android project, but everytime i update the apk, i lost the variable values. there is any way to solve this problem?
B
13
S
1
Posts: 58
Reputation: 701

Post » Mon Jan 02, 2017 3:52 am

@roxinhojp Hi,
What do you mean by "update the apk" ? If you mean close and start the app, it's normal that the variables values will be lost. You have to use localstorage plugin :)
B
17
S
10
G
19
Posts: 140
Reputation: 11,457

Post » Mon Jan 02, 2017 8:52 am

I think he is talking about the stored localstorage values. If you update your APK (install a new version of your game on your phone) the localstorage gets reset. I'd be interested in the answer as well.
B
137
S
33
G
17
Posts: 1,560
Reputation: 20,797

Post » Mon Jan 09, 2017 3:15 pm

Saad Swad wrote:@roxinhojp Hi,
What do you mean by "update the apk" ? If you mean close and start the app, it's normal that the variables values will be lost. You have to use localstorage plugin :)


actually, i dont use LocalStorage, and the game SAVES the variable values even if i close the game and open again, reboot the cellphone. I think my problem its solved (atleast in my cellphone Zen Fone GO, its ok). aparrently everything went ok after i published my game on google play store, now the values are being saved and it keeps even if i install a new version. anyway thanks for commenting. Hope that you find a solution for your problem
B
13
S
1
Posts: 58
Reputation: 701

Post » Mon Jan 09, 2017 3:34 pm

roxinhojp wrote:actually, i dont use LocalStorage, and the game SAVES the variable values even if i close the game and open again, reboot the cellphone. I think my problem its solved (atleast in my cellphone Zen Fone GO, its ok). aparrently everything went ok after i published my game on google play store, now the values are being saved and it keeps even if i install a new version. anyway thanks for commenting. Hope that you find a solution for your problem


Wait. What? How in the world is that possible, unless you are using the Webstorage plugin...?.? :shock: :shock: :shock:
Last edited by chadorireborn on Mon Jan 09, 2017 3:38 pm, edited 1 time in total.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
67
S
22
G
90
Posts: 1,125
Reputation: 60,036

Post » Mon Jan 09, 2017 3:37 pm

glerikud wrote:I think he is talking about the stored localstorage values. If you update your APK (install a new version of your game on your phone) the localstorage gets reset. I'd be interested in the answer as well.


That doesn't happen to me... But if it does happen to you, that is something very serious and needs to be reported to Ashley.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
67
S
22
G
90
Posts: 1,125
Reputation: 60,036

Post » Mon Jan 09, 2017 3:38 pm

chadorireborn wrote:
roxinhojp wrote:actually, i dont use LocalStorage, and the game SAVES the variable values even if i close the game and open again, reboot the cellphone. I think my problem its solved (atleast in my cellphone Zen Fone GO, its ok). aparrently everything went ok after i published my game on google play store, now the values are being saved and it keeps even if i install a new version. anyway thanks for commenting. Hope that you find a solution for your problem


Wait. What? How in the world is that possible, unless you are using the Webstorage plugin... :shock: :shock: :shock:


No, i am not using. i really dont have any idea of what is happening, but its working on my dad phone and my brother phone too!
B
13
S
1
Posts: 58
Reputation: 701

Post » Mon Jan 09, 2017 3:44 pm

chadorireborn wrote:
glerikud wrote:I think he is talking about the stored localstorage values. If you update your APK (install a new version of your game on your phone) the localstorage gets reset. I'd be interested in the answer as well.


That doesn't happen to me... But if it does happen to you, that is something very serious and needs to be reported to Ashley.


Ashley? well, anyway i will keep up with the game. You can download the game here: https://play.google.com/store/apps/deta ... y&hl=pt_BR there is only one problem, the game its in portuguese, BUT i left some parts in english (My idea was make one app that had translations in portuguese and english). you can test the basic and see if its working on your cellphone :D
B
13
S
1
Posts: 58
Reputation: 701

Post » Tue Jan 10, 2017 3:46 pm

chadorireborn wrote:
glerikud wrote:I think he is talking about the stored localstorage values. If you update your APK (install a new version of your game on your phone) the localstorage gets reset. I'd be interested in the answer as well.


That doesn't happen to me... But if it does happen to you, that is something very serious and needs to be reported to Ashley.

I had this issue, but I haven't exported and built an APK with XDK in a while so I don't know if the issue is still there. But it's good news if you don't have this problem. Are you using XDK?
B
137
S
33
G
17
Posts: 1,560
Reputation: 20,797

Post » Tue Jan 10, 2017 5:03 pm

@glerikud - Yeah, i'm using IntelXDK. I do hope that the issue is gone now.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
67
S
22
G
90
Posts: 1,125
Reputation: 60,036


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests