Unity3D unpacking tool AssetStudio compile and build

1. About AssetStudio

I won’t introduce AssetStudio as a tool. If you read this article, you must have a purpose~

In fact, if you have no brains, you only need to download a release version, that is, download and find the corresponding .exe file and double-click to run it. If you see the following interface, the first step is successful:

However, sometimes the requirements are not so simple. For example, if the game package you want to solve is encrypted, or what you want is first-hand art resources, then it may not be so easy to handle. Either the image format is incorrect, or it is all fragmented resources, and you need to manually process them one by one...

So the best thing is to get the source code from github, and then compile a copy yourself, so that you can change the code logic of the tool itself, which is what will be introduced below in this article

2. Fork and Clone Git project

It is best to understand and use Git first

Link: https://github.com/Perfare/AssetStudio/

In order to modify the code for easy submission, it is recommended to fork first

After that is the familiar git operation, just clone

After arriving at your directory, you can open it with VS, as follows:

2.1 If you don't know what is Git

It doesn't matter, just download the source code directly:

3. Build AssetStudio

Note that the readme on github has this sentence:

The translation means that you must use the VS version of 2019 or above, and you need to install FBX SDK 2020.0.1 VS 2017 and configure the environment. Download address: https://www.autodesk.com/developer-network/platform-technologies/fbx -sdk-2020-0

Then open VS: top menu → project → properties , follow the steps below to set:

  1. Find the include file address of your corresponding SDK: the default is  C:\Program Files\Autodesk\FBX\FBX SDK\2020.0.1\include , add this address to configuration properties → C/C++ → additional include directory , and copy a Copy the contents to your VS include folder, the default path is  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include . Of course, if you customize the installation directory, you have to find it in your installation directory, the same as below
  2. Almost the same as step ①, find the lib additional directory library corresponding to the SDK: the default address is C:\Program Files\Autodesk\FBX\FBX SDK\2020.0.1\lib\vs2017\x86\debug, add this address to the configuration properties → Linker → General → In the additional library directory, the premise is that you are using the debug mode, the release mode is similar
  3. See the figure below ③④, configuration properties → linker → input → additional dependencies add libfbxsdk.dll, configuration properties → linker → input → ignore specific default library add LIBCMT

3.1 Complete compilation

After finishing, generate all solutions, pay attention to error reporting, and then set the startup project as AssetStudioGUI, click Run, done, and then you can play freely

Fourth, take an example

If the corresponding game is not encrypted, it will be much simpler, almost no basic knowledge and learning costs are required, just follow the steps, and there are a lot of online tutorials

However, it should be noted that many games have small obb packages and a lot of hot update content, so the resources in the apk package downloaded from the official website are incomplete. Take Tomorrow’s Ark as an example: the size of the apk package is only 1.97 G

When you enter the game for the first time, you will need to download another 1.7 G. This part of the content is in the  Android/data/com.hypergryph.arknights  folder. If it is an emulator, the path may be different, and before copying You need to copy them to the shared folder first

The names of different games are different, but the path and prefix are the same:

  • Hot update file: Android/data/com.[name]
  • obb package: Android/obb/com.[name], only a small number of games have this, and Tomorrow’s Ark does not have it

Well, if the obb package is not considered, the AB path in the two files will be exactly the same, so you can get the contents of the whole package by copying and stacking

4.1 Export the resources you want

after that is free play

Filter Type is a classification filter, and click Export on the left to export

Guess you like

Origin blog.csdn.net/Jaihk662/article/details/118193258