What makes the data of my app so large?

0 favourites
From the Asset Store
Create your own casino app and import it to Google Play and the App Store.
  • I am saving only 39 items of which 32 are global variables while 7 are arrays as json:

    1st Array is 14 wide and 3 high

    2nd and 3rd Array are only 14 wide

    4th and 5th Array are 111 wide

    6th Array is 111 wide and 2 high

    and the 7th is 2 wide and 6 high

    So, is it normal for this data to take 40mb of space on a device?

  • nope, not at all! i

    think

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I minimized the 6th Array to width 12 and the data now takes 35MB.. This is really weird, that was the biggest of all arrays...

  • Anybody got an idea what causes this and how can I fix it?

  • Nobody?... :/

  • How would someone know? Saving a empty 1,000,000 element array to json is ~ 6Mb. Setting each value to 1234567890 first will make the json 16Mb. So the size of the json will depend on what's in the array.

  • None of the arrays' elements is bigger than 1, it is either 1 or 0...

  • Maybe look at the json and see if anything is amiss?

  • I've looked at it, but I don't see anything wrong..

    Here it is:

    {"c2dictionary":true,"data":{"Sound":0,"Level":44,"Charges":2,"Coins":940,"Diamonds":7,"cBonusAd_fac":25,"cBonusAd_gen":1,"dBonusAd_fac":1,"dBonusAd_gen":1,"achievementProgData":"{\"c2array\":true,\"size\":[14,3,1],\"data\":[[[1],[15],[110]],[[1],[30],[110]],[[1],[70],[110]],[[1],[30],[100]],[[1],[70],[100]],[[4],[1000],[100]],[[0],[100],[100]],[[0],[10],[100]],[[1],[1],[100]],[[0],[1],[100]],[[1],[5],[100]],[[0],[1],[100]],[[0],[1],[100]],[[0],[1],[100]]]}","achievementStatusData":"{\"c2array\":true,\"size\":[14,2,1],\"data\":[[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[1],[1]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]],[[0],[0]]]}","rate_timeTarget":63628743853,"rate_init":1,"regenTimeTarget":63628581786,"RegenONOFF":1,"ItemStates":"{\"c2array\":true,\"size\":[2,6,1],\"data\":[[[0],[0],[1],[0],[0],[0]],[[0],[0],[0],[0],[0],[0]]]}","achievPopup":"{\"c2array\":true,\"size\":[14,1,1],\"data\":[[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[1]],[[0]],[[0]],[[0]],[[0]],[[0]]]}","tM_Level":4,"Stars":"{\"c2array\":true,\"size\":[111,1,1],\"data\":[[[0]],[[3]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]]]}","NoReset":"{\"c2array\":true,\"size\":[111,1,1],\"data\":[[[0]],[[1]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]]]}"}}

  • That's all of it? I'm not clear what you have that's 40mb, but that isn't it.

  • Silly question, but are you sure you're looking at your app data and not the entire game itself?

  • That's all of it? I'm not clear what you have that's 40mb, but that isn't it.

    Yep, that's all of it. I'm confused as well, otherwise I wouldn't make this thread... (Btw, by reducing the size of one of the arrays, the data is now 35mb....)

  • I am now removing all data and then I save it again, and I don't know why but this reduced the data to 27mb. But that's still too much...

  • I have disabled the saving of data to LocalStorage in my project, and I've exported and tested it, and the data is now equal to 20MB, and I am not saving ANYTHING!

    Before this, I had exported the game without Crosswalk Webview and and with my data only, and the app data was 15MB..

    What the hell is going on? How can there be data when I am not saving anything?

    How do i fix this pls help

  • See where it says local storage?

    Other apps can save there, locally.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)