What makes the data of my app so large?

Get help using Construct 2

Post » Thu Aug 24, 2017 8:55 pm

Silly question, but are you sure you're looking at your app data and not the entire game itself?
B
67
S
26
G
11
Posts: 672
Reputation: 11,555

Post » Thu Aug 24, 2017 9:01 pm

R0J0hound wrote: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....)
My first project:
Image
B
20
S
8
G
1
Posts: 172
Reputation: 2,463

Post » Fri Aug 25, 2017 4:25 pm

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...
My first project:
Image
B
20
S
8
G
1
Posts: 172
Reputation: 2,463

Post » Sat Aug 26, 2017 3:00 pm

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
My first project:
Image
B
20
S
8
G
1
Posts: 172
Reputation: 2,463

Post » Sat Aug 26, 2017 6:04 pm

See where it says local storage?
Other apps can save there, locally.
Image ImageImage
B
173
S
50
G
194
Posts: 8,566
Reputation: 121,368

Post » Sun Aug 27, 2017 11:16 pm

newt wrote:See where it says local storage?
Other apps can save there, locally.


Sorry, I didn't understand much...

Guys, I need to solve this somehow, my app is on the store and it's 90mb big already, +25mb data (115mb total)
I've also noticed that when moved to sd card, the total size jumps to 156mb, but when I move it back to storage it becomes 115mb again. I've noticed this on other apps too, but not at this degree. It adds +40MB when on sd card....

I am saving my data this way: I save an item in a dictionary -> I call a function and in the function I save the the dictionary as an item in LocalStorage (I clear the local storage before saving the dictionary, and that lowers the data size of the app, oddly but true)

Am I doing something wrong?
My first project:
Image
B
20
S
8
G
1
Posts: 172
Reputation: 2,463

Post » Mon Aug 28, 2017 12:20 am

I don't think local storage is placed alongside the app.
It would be in a system folder along with other apps.
Are you using Crosswalk?
Image ImageImage
B
173
S
50
G
194
Posts: 8,566
Reputation: 121,368

Post » Mon Aug 28, 2017 5:36 pm

Yes, I'm using Crosswalk, but even without it, the data size is still too big (15mb)....
My first project:
Image
B
20
S
8
G
1
Posts: 172
Reputation: 2,463

Post » Sun Sep 03, 2017 4:55 am

@RobertMKD Hey Robert, I mentioned I would take a look at this. Not sure about storage and filesize. I never knew localstorage took so much memory. Wish I could help, but hope you find the answer you are looking for! Best of luck!
Football Dash: GooglePlay | AppStore

Zombie Bash: GooglePlay | AppStore

Kunkong: GooglePlay
B
69
S
23
G
3
Posts: 454
Reputation: 6,999

Post » Sun Sep 03, 2017 6:00 am

RobertMKD wrote: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?


depends on what you are exporting to, however mb space is only referring to image download size! so if u have high quality images you might want to drop them down, also screen/layout resolution must be under 1080 if u want lower mb weight!
B
79
S
24
G
69
Posts: 1,356
Reputation: 44,125

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: nicolalucky, nvdd and 24 guests