a guest Sep 11th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- use adb-sync (https://github.com/google/adb-sync) to extract the files from your card, or manually pull them from the card some other way
- the command:
- adb-sync --reverse /sdcard/Android/data/com.square_enix.android_googleplay.TojinomikoTomoshibi/files/ ./files/
- this command can easily take up to 30 minutes or more depending on your card speed and how much you have in your cache. i'm not sure if ADB over wifi would be better or not; i've always used a USB3 connection.
- After running the above command everything at that location just gets put into a folder called "files" right next to where you run the command. The folder we're mostly interested in is `./Files/UnityCache/Shared`
- You might want to duplicate this folder and separate out everything into chunks of like 100-700 subfolders, since the tool we're going to put it into crashes if you have too many things loaded into it at once.
- Every subsequent run of the command will overwrite and update the "date modified" of each subfolder as needed so you can find all of the newest cache by sorting by date modified. Some updates just touch basically every single file so it's not always useful.
- AssetStudio (https://github.com/Perfare/AssetStudio) works to extract most things. It gets updated somewhat regularly and newer versions generally work better. Cards (support/main) cannot be extracted and instead they're in a bizarre encrypted format, likely using some middleware; it comes with a key and the data but it's not a simple xor so it's too annoying to deal with atm. Likewise "acb" audio aren't properly extracted either; someone will likely have to find the decryption key to get audio extracting properly as well.
- Run the program then go to `File->Load Folder`, choose your 100-700 subfolder chunks that you made above or whatever else you want to open up. The program will parse it all and then display it in the `Scene Hierarchy` tab, and you can flip over to the `Asset List` tab to view each individual file. From here you can `Filter Type` at the top of the window to hide whatever you don't care about.
- In `Options->Export Options` you can choose a few different settings on how everything gets exported. Check whatever you want in there before you go further.
- You can use `Model->Export All Objects (Split)` on the topbar to get FBX models with textures that you can import into blender, although you have to fix up the models a bit since not all of the data was exported correctly.
- You can use `Export->Filtered Assets` to export only what you have filtered, or `Export->All Assets`, etc. Shaders take forever to export, and monobehaviours aren't very fast either. Most of the time shaders aren't very useful to have exported so I recommend hiding them with the filter and choosing Filtered Assets.
- 2.8 is pretty easy to use but i still rec just looking up tutorials if you've never used it before.
- File->Import->FBX, navigate to where your stuff is extracted, open it up. It should place it where the 3D cursor is. Change to lookdev or render preview mode to see the materials properly.
- All of the models import as PBR fine but sometimes they'll be missing skin textures, and their specular is turned way up when it should be set to 0. Look at the model's materials and they should be named as the textures they're looking for. Look into your extracted non-model assets and you can probably find the desired texture in the `Textures/` folder. Just drag and drop it into the shader and connect the color/alpha nodes.
- Heads, bodies, and hair are separate. Sometimes the hair/head are rotated in odd directions.
RAW Paste Data