Need help with Android export using expansion files

Greetings all,


I know there are a lot of topics about people asking for help using expansion files with Android and we never had any clear answers yet so... here are some questions I have that would probably solve my current issues :


I managed to find that a specific file in RPG Maker MV is linking the game to its graphics and audio files : rpg_manager.js


Now, I would like to know how I could either :

  • Download Graphics and Audio files to the mobile device without an expansion file (by downloading on a webserver);
  • Download Graphics and Audio files from expansion file and extract it on the mobile device (I don't recommend since it takes twice as much space as it would usually);
  • Download Graphics and Audio files from expansion file and read directly in the expansion file.

I found this thread talking about a way to unzip an expansion file but I don't know where I could put these informations. I lack skills in programming Android and prefer creating Android apps that do not require OBB files. However, I know, too, that there is another command line we can use to read files inside an expansion (OB😎 file which is :


// Get a ZipResourceFile representing a specific expansion file
ZipResourceFile expansionFile = new ZipResourceFile(filePathToMyZip);


Code:
// Get an input stream for a known file inside the expansion file ZIPs
[COLOR=rgb(102,0,102)]InputStream[/COLOR][COLOR=rgb(0,0,0)] fileStream [/COLOR][COLOR=rgb(102,102,0)]=[/COLOR][COLOR=rgb(0,0,0)] expansionFile[/COLOR][COLOR=rgb(102,102,0)].[/COLOR][COLOR=rgb(0,0,0)]getInputStream[/COLOR][COLOR=rgb(102,102,0)]([/COLOR][COLOR=rgb(0,0,0)]pathToFileInsideZip[/COLOR][COLOR=rgb(102,102,0)]);[/COLOR]


Can anyone please help me out?!


Last time I tried modifying the rpg_manager.js path to my Graphics and Audio and now, I get this error in RPG Maker :


Error


Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file://sdcard/Android/obb/<package-name>/<main-expansion>.obb/img/titles1/Title.png'


Of course, replace <package-name> and <main-expansion>.obb by the real names they have.
Anyone able to help out?

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-android-export-using-expansion-files.73431/