Wintermute Engine Forum

Wintermute Engine => WME Lite => Topic started by: lacosaweb on October 10, 2015, 08:32:02 PM

Title: game in obb file
Post by: lacosaweb on October 10, 2015, 08:32:02 PM
Hi, I'm trying to compile the game in a obb file using jobb provided with sdk tools.

I make a file of all directory of my game (including all dcp packages), then copied the obb file into SD card /Android/obb/my.package/

Then replaced the return of getGamePackagePath as
                  return "obbmount://"
         + Environment.getExternalStorageDirectory()
         + "/Android/obb/"
         + appPackageName
         + "/"
         + "main."
         + appVersionCode
         + "."
         + appPackageName
         + ".obb";

But when I run the game shows this error:

W/System.errīš• OBB mount error: 20
Title: Re: game in obb file
Post by: lacosaweb on October 11, 2015, 08:42:38 AM
fixed, the obb file must to be placed in the android internal storage.

But what if I want to move it in the SD card?

Environment.getExternalStorageDirectory() returns the internal storage path.
Title: Re: game in obb file
Post by: HCDaniel on October 11, 2015, 08:57:40 AM
I was just about to advise you to check which path your "external" storage directory points to :)

For distribution with Google Play, the OBB file will be downloaded during installation of the app, and you do not have the possibility to change the target directory. So your method is correct for the "final" app.

I don't know whether the system can be fooled such that, for your experiments, you replace Environment.getExternalStorageDirectory() with the path to your "real" SD card, and then it will try to mount the OBB file there. Apps like "ES File Explorer" might show the real path. If you try, please post the results.