Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

obb downloader

Discussion in 'Assets and Asset Store' started by jules_citronic, Jun 6, 2014.

  1. jules_citronic

    jules_citronic

    Joined:
    Jun 9, 2013
    Posts:
    8
    Hello,
    My apk file is larger then 50 megabytes. There is a plug-in in the asset store to download a obb file from the Google play. I can't find the plug-in any more and old links does not work. I think it is deleted. Knows someone how I can do it now?
    Sorry for my bad English.
    Thanx
     
  2. PROTOFACTOR_Inc

    PROTOFACTOR_Inc

    Joined:
    Nov 15, 2009
    Posts:
    4,029
    You no longer need that. Don't know since, which version of unity exactly. You just need to go to edit the player settings and tick mark the split binary option. It'll automatically create for you the .obb expansion file .
     
  3. jules_citronic

    jules_citronic

    Joined:
    Jun 9, 2013
    Posts:
    8
    But you need that plug-in to download the obb if the game starts.
     
  4. PROTOFACTOR_Inc

    PROTOFACTOR_Inc

    Joined:
    Nov 15, 2009
    Posts:
    4,029
    You, just need an, empty first scene in your build. Put a really simple script on the camera with a black background color. This script would only lead to the next scene, which would be the first actual scene of your application. That's it.
     
  5. Chris1472

    Chris1472

    Joined:
    Jun 6, 2014
    Posts:
    2
    Is there a post from a Unity dev anywhere that confirms this is now the case? It was my understanding that if for some reason the .obb file was not installed along with the .apk or the .obb got lost or removed, that you would need to manually download the .obb file again before you could continue to use the app.

    I know Unity handles splitting the application binary directly from the project settings, but as far as I can tell, if a user only downloads the .apk and the .obb is missing, you will need to write a custom plugin to handle downloading the extension file before the app can run. There used to be a plugin for the .obb downloading in the asset store. but this seems to have been pulled.
     
  6. jules_citronic

    jules_citronic

    Joined:
    Jun 9, 2013
    Posts:
    8
    What is the script???
     
  7. mboog12

    mboog12

    Joined:
    Oct 4, 2011
    Posts:
    86
    i too am interested in this.
    what should this 'simple script' do besides loading the next scene?
     
  8. PROTOFACTOR_Inc

    PROTOFACTOR_Inc

    Joined:
    Nov 15, 2009
    Posts:
    4,029
    Here is a C# script my dev used to load the first actual scene of the game

    Code (CSharp):
    1. using UnityEngine;
    2. using System.Collections;
    3.  
    4. public class LoadMainMenu : MonoBehaviour {
    5.  
    6.     // Use this for initialization
    7.     void Start () {
    8.         Application.LoadLevel("_SCENE_MAINMENU");
    9.     }
    10. }
    hope this helps
     
  9. mboog12

    mboog12

    Joined:
    Oct 4, 2011
    Posts:
    86
    i'm pretty sure there is something lost in translation here.
    this script only loads a new scene. but there is no code for downloading and importing the obb file.
     
  10. PROTOFACTOR_Inc

    PROTOFACTOR_Inc

    Joined:
    Nov 15, 2009
    Posts:
    4,029
    as said before the .obb is loaded once you have installed the .apk from google play. they're linked all together. stellar Ghosts worked perfectly like that. Didn't have any customers complaining about not being able to actually download the whole game ( 424 Mb)
     
  11. mboog12

    mboog12

    Joined:
    Oct 4, 2011
    Posts:
    86
    ok. i'm going to try this one.
    i will get back and post how it went :)
     
  12. mboog12

    mboog12

    Joined:
    Oct 4, 2011
    Posts:
    86
    thank you rosor!

    indeed, it now works automatically. you don't have to manually download the obb anymore :)
     
  13. PROTOFACTOR_Inc

    PROTOFACTOR_Inc

    Joined:
    Nov 15, 2009
    Posts:
    4,029
    sure! you're welcome. Glad it worked out for you. Unity rocks right?! :)