Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: game in obb file  (Read 7501 times)

0 Members and 1 Guest are viewing this topic.

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 116
    • View Profile
game in obb file
« 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
Logged

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 116
    • View Profile
Re: game in obb file
« Reply #1 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.
Logged

HCDaniel

  • Regular poster
  • ***
  • Karma: 8
  • Offline Offline
  • Posts: 168
    • View Profile
Re: game in obb file
« Reply #2 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.
Logged
 

Page created in 0.034 seconds with 19 queries.