Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Decrease size of APK Memory Game

I made a game with the help of Unreal programmers using the memory game. I altered some of the blueprints and added about 30 images for cards and erased the old images. I am not a programmer and I thought everything was working when I exported the Android version (all). There were two options to export that I knew about and one left the obb file separate which I thought would be best. After exporting numerous times the APK file is 15mgb but the .obb file is 362mgb? Why is it so massive?

I packaged them together so the APK and OBB files are one and it is 347mgb. Can anyone shed some light on tutorials or instructions. I will post more information if you would like but tell me how to get that information please. Any help would be great as I have been working on this for 4 days now. Thanks

Product Version: Not Selected
more ▼

asked Sep 08 '14 at 07:47 PM in Packaging & Deployment

avatar image

26 1 5 8

avatar image [Epic] Gribbs ♦♦ STAFF Sep 08 '14 at 08:16 PM

Howdy Airwaves,

Have you attempted to build your project using something other then the Android (all) packaging? With Android (all) packaging, you are building for all the the options, causing the build to be large. When packaging for a specific device, the file size will be significantly smaller then with all.

Thanks and have a great day!

avatar image Airwaves Sep 08 '14 at 08:24 PM

I tried using the ETC1 and it went down to 117mgb. I think it is something I am doing wrong but I have followed every instruction I can find in the documentation. Another big issue I think it might be is the fact that the folder that contains the memory game is 3.10 GB and I do not know how it grew that big.

avatar image Airwaves Sep 08 '14 at 08:24 PM

I also forgot to ask. If I build for just one type will that mean other phones cannot access it? Thanks

avatar image Airwaves Sep 08 '14 at 08:39 PM

So ATC is 110mgb apk file
ETC2 is 109mgb DXT is 110mgb PVRTC is 78 mgb

avatar image [Epic] Gribbs ♦♦ STAFF Sep 08 '14 at 08:40 PM

In some cases, the compression size of the project is the only thing that is affected by the certain build. Here is a Documentation page explaining the differences in builds: https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/4/index.html

Are the images that you are using a higher resolution then what was previously there? This could create a larger file size as well.

avatar image Airwaves Sep 08 '14 at 09:11 PM

I tried to use small png files but I do have more than what they had. I have about 25 images I believe. I looked in the Asset folder for the game I created and compared it with the regular Memory Game and my asset folder is 25mgb bigger. I packaged the Memory Game (original) and for ATC I get 78mgb. With DXT I got 78mgb. All of these are still over the limit of the 50mgb playstore upload. Do you know if anyone is getting smaller packages? And if so how?

avatar image Airwaves Sep 08 '14 at 09:23 PM

It could be that this game is just a big game. It does not look like a big one but it might be?

avatar image [Epic] Gribbs ♦♦ STAFF Sep 09 '14 at 04:18 PM

I believe that the issue is the alpha channels in the materials used for this project. Android (ETC1) does not support alpha channels in textures so if the source image contains an alpha channel, it will be stored uncompressed. This could also be true for all android packaging.

If you are not using alpha you may want to make sure you don’t have an alpha channel in the art as this will make the file larger. If you do need alpha, you can split the alpha channel into its own texture and modify your material to sample alpha from the second texture so they can be compressed separately.

Give this a go and let me know the outcome.

avatar image Airwaves Sep 10 '14 at 04:09 PM

I am working on this but I am honestly lost. How do I see if there is an alpha channel or not? Anybody have a link to a page that shows how to do all this? Thanks

avatar image [Epic] Gribbs ♦♦ STAFF Sep 10 '14 at 05:45 PM

Alpha channels are located in the material blueprints. Here is a link to better understand Alpha Channels: https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/ExpressionReference/Textures/index.html

There is also an option in textures that would allow you to compress without Alpha. it is under the Compression Sublevel.

Be sure to let me know if this helps!


avatar image Airwaves Sep 10 '14 at 06:05 PM

Thank you. I found this page as well: https://docs.unrealengine.com/latest/INT/Engine/Content/Types/Textures/Properties/index.html

I am going to check "Compress without Alpha" on all materials to see if this helps. I will let you know the sizes once I finish. Thanks

avatar image Airwaves Sep 10 '14 at 06:40 PM

Ok maybe I am misunderstanding somethingalt text

I have checked the compress without alpha and under ETC1 I still get 116mgb? I have tried to look at all textures to remove an alpha channel but I just cannot find what is so big.

capture.png (1.1 MB)
avatar image [Epic] Gribbs ♦♦ STAFF Sep 10 '14 at 07:58 PM

Hey Airwaves,

I went through each texture and enabled the Compress Without Alpha checkbox was able to get the card game down to 65 MB. I will keep looking into the project and let you know if I can get the project a bit smaller.

avatar image Airwaves Sep 10 '14 at 08:00 PM

Sounds good. Your help is awesome!

avatar image Airwaves Sep 30 '14 at 06:05 PM

I have tried everything I know and I have even posted on the forums a post to pay someone to help me decrease the size. No bites on that and I am starting to think that the game was just built kind of big. I am noticing that most games with unreal engine are just bigger but that is not the end of the world in my mind.

I am thinking of just putting in the description of the app download on WIFI so they save on their data plans. Thank you for your help.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey Airwaves,

I was just working on this issue yesterday before I left. Sorry for the lack of response. It seems as though the project is too large. Everything i tried to change had no effect on the size of the project. You may want to try to Build a similar project from scratch and use the memory game as a template for that project, but then again, that may not even help with the size. Adding the 'download on WiFi ' may be your best bet.


more ▼

answered Sep 30 '14 at 06:10 PM

avatar image

[Epic] Gribbs ♦♦ STAFF
11.8k 292 14 77

avatar image Airwaves Sep 30 '14 at 06:12 PM

Sounds good. Thank you so much for your help. Consider this answered! You guys rock!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question