Problems exporting a "big" project

Discussion and feedback on Construct 2

Post » Thu Dec 11, 2014 9:36 pm

Hi,

I'm currently struggling to get my finished project onto Google Play / Apple Store. After exporting the project and optimizing images, the game's size is about 55Mb.

- With Intel XDK, I need to add about 15Mb for Chromium which gives an APK of about 70 Mb, the limit of google play being 50 Mb... Using Android export in XDK without Crosswalk seem to be a bad idea, as I need WebGL a lot (the app is graphically heavy). So the only solution I can think of is App Expansion Files. Is it possible to use this feature with an APK created with Intel XDK ?

- Phonegap Build is limited to 40Mb, so I'm not better here. I've been told to try to build offline, but as this is not yet supported by C2, I think it will be hard for me. Furthermore I have no idea if this offline Phonegap build supports IAP and Ads, both of which my game uses.

- I had many bugs with CocoonJS a few month ago, so I don't think I will use it. But maybe the last CocoonJS Webview/Webview+ is more reliable ? Is it a different product? This is still unclear for me.

I'm really used to, and have good results with Intel XDK, so I hope to be able to continue working with it... If possible !
Which exporter would you advice me to use for such a "big" project? Any solution / workaround in order to get my game on Google Play / App Store without having to (massively) delete content ?

Thanks !
B
29
S
6
G
1
Posts: 347
Reputation: 2,725

Post » Fri Dec 12, 2014 12:40 am

have you tried the new beta of c2 it lets you choose to only export the audio you need. also minifying you export? its also good to check your exported project images if you use odd resolutions on you images it can make them alot bigger. Doing all that could be what you need to have you project small enough. also make sure to go though in c2 and delete anything you dont use
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Fri Dec 12, 2014 3:23 am

70mb...you are awful close.

When you export, look at your 'images' folder and your 'media' folder. What is the size of each? If most of it is images, there probably isn't much you can do short of shrinking sprites, dropping frames, reducing color depth, and all that unpleasantness.

OTOH, if you have 20 or 30mb's of data under the 'media' folder, and most of it is SFX and music, you might have some options. If you are 'encoding' those files at more than 128kbps, I'd suggest shrinking them. 128kbps aac/ogg sounds far better than 128kbps mp3, and will only fall short in quiet environs with good headphones or excellent speakers.

volkiller730 is very right about checking your spritesheets; sometimes shrinking an object by 1% is enough to halve the resolution of the exported sheet. Still, that probably won't affect export size much (blank space squeezes down to nothing with png), but it can improve your performance and slash your memory usage.

Semi-Off Topic: Always work in higher rez than you'll end up using (at least 4x; preferably 8x) so you can go back later and 'reshrink' your graphics with minimal artifacts.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Fri Dec 12, 2014 5:54 am

Hi @TiAm and @volkiller730, and thanks for the answers.

@volkiller730
Yes, I sure updated to the new beta, but it doesn't change much, as the former "Android" export already exported only .ogg files.
I didn't minify the script because I'm using @cranberrygames 's Phonegap IAP plugin, for IAP in the game, and (unless there is something new) it requires not to minify the script.

I also already optimised all images' size in order to reduce the image number as much as possible (back when there was the number of image bug in XDK), I used ImageOptim to reduce the file of all exports, and I sure put into the .jpg format all the images in which I don't need alpha channel. :(

@TiAm
The current size of the image folder is 38 Mb. The media folder is 8,35 Mb but it features @ 128 Kb/s audio for music. The reason is that as I have orchestral music I'd like them to sound good. But if I really can't use the APK extension package, I'll sure reimport the whole thing @ 96 Kb/s which should make me gain about... 1,5 Mb... :( Still 18,5 Mb to grind !


Do someone knows if App expansion files are usable with any of C2's exporters (preferably XDK)? Maybe @IntelRobert has a clue ?
If it isn't the case, I'll be down with TiAm's solution of schrinking graphics... :-/
B
29
S
6
G
1
Posts: 347
Reputation: 2,725

Post » Fri Dec 12, 2014 6:04 am

@Rable i've seen Ashley and other mention that expansion files should be possible. if you search the forums you should find it. i haven't seen anyone say they where able to make them though.
Also you can still minify when using cranberrygames IAP plugin. My game Extreme Cave Escape using the IAP an other cranberrygame plugins and i minify it
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Fri Dec 12, 2014 7:40 am

@volkiller730
Thanks for the tips ! I'll search the forum to see if I can find something, and will minify the script for sure !

Edit :
Ashley posted in the following link (september 25th 2014) that Intel was working on implementing the expansion files to XDK.
(see link by TiAm below)
Any news about that?
Last edited by Rable on Fri Dec 12, 2014 8:33 am, edited 1 time in total.
B
29
S
6
G
1
Posts: 347
Reputation: 2,725

Post » Fri Dec 12, 2014 8:24 am

Well, if 1.5mb is all you stand to gain, I would leave well enough alone w/ the audio.

It looks like expansions have come up before. I think this would have to be a combination of new C2 export options (what goes into the expansion file? If you have to download the expansions from within your app, how does that work?), and support from the compiler too.

The intel xdk team is pretty responsive. If they don't reply to this thread, you could always try on the crosswalk thread where it'll get more eyes. Here's a thread where ashley drops a brief comment suggesting that Intel is already on this:

huge-apk-file-crosswalk_t116261

EDIT: Guess you found it. :roll:
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Fri Dec 12, 2014 1:16 pm

I sent a private message to IntelRobert, to be up to date with the APK Expansion Files via Intel XDK.
Here is his reply :

"We are working on it now. I am hoping to have something in a few weeks."

So wait and see...
...
And cut graphics in the meantime. ^^'
B
29
S
6
G
1
Posts: 347
Reputation: 2,725

Post » Fri Dec 12, 2014 5:04 pm

If you're that close you might be able to get it under the limit by:
- use JPEG anywhere you can (think you said you were doing this already) - remember to set this in the Image Format options dialog from the C2 image editor, C2 ignores the imported format
- use PNG-8 anywhere you can without causing a significantly noticable reduction in image quality (as above set this in the Image Format dialog in the image editor)
- delete any .m4a files that are exported - Android can play the .ogg files. Mobile speakers are often not great so you may be able to get away with pretty low quality (unless headphones audio is especially important)
- use an external tool to re-encode any large .ogg files to an even lower quality
- any images which are blurry/same color/low contrast, resize the image smaller in the image editor, then stretch the image up again in the layout view. This makes the image smaller while producing a similar looking result
- simply cut any artwork, music or sound effects that aren't strictly necessary

Expansion APK support is in the works for Crosswalk, so hopefully that will be able to split off at least the images from the main APK file.

Maybe I should write up a blog post on minimising the download size?
Scirra Founder
B
395
S
232
G
88
Posts: 24,368
Reputation: 193,746

Post » Fri Dec 12, 2014 5:08 pm

Ashley wrote:Maybe I should write up a blog post on minimising the download size?


That would be greatly appreciated, I develop exclusively for mobile atm and I had no idea about the audio trick.
B
59
S
21
G
9
Posts: 641
Reputation: 9,787

Next

Return to Construct 2 General

Who is online

Users browsing this forum: jobel, paxto22, tarek2 and 4 guests