mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-23 12:04:16 -04:00
Update readme files
This commit is contained in:
139
README.md
139
README.md
@ -1,107 +1,80 @@
|
||||
# AssetStudioMod
|
||||
# ArknightsStudio
|
||||
|
||||
[](https://ci.appveyor.com/project/aelurum/assetstudiomod/branch/AssetStudioMod)
|
||||
[](https://ci.appveyor.com/project/aelurum/arknightsstudio)
|
||||
|
||||
**AssetStudioMod** - modified version of Perfare's [AssetStudio](https://github.com/Perfare/AssetStudio), mainly focused on UI optimization and some functionality enhancements.
|
||||
**ArknightsStudio** is a modified version of AssetStudio designed for Arknights. Based on [AssetStudioMod](https://github.com/aelurum/AssetStudio).
|
||||
|
||||
**Neither the repository, nor the tool, nor the author of the tool, nor the author of the modification is affiliated with, sponsored, or authorized by Unity Technologies or its affiliates.**
|
||||
|
||||
Since the original repo has been archived, it's worth saying that you shouldn't expect support for newer versions of Unity from this fork.
|
||||
Unfortunately, I can't continue Perfare's work and keep AssetStudio up to date.
|
||||
|
||||
## Game specific modifications
|
||||
|
||||
- ArknightsStudio - soon<6F>
|
||||
|
||||
## AssetStudio Features
|
||||
|
||||
- Support version:
|
||||
- 3.4 - 2022.1
|
||||
- Support asset types:
|
||||
- **Texture2D** : convert to png, tga, jpeg, bmp, webp
|
||||
- **Sprite** : crop Texture2D to png, tga, jpeg, bmp, webp
|
||||
- **AudioClip** : mp3, ogg, wav, m4a, fsb. Support converting FSB file to WAV(PCM)
|
||||
- **Font** : ttf, otf
|
||||
- **Mesh** : obj
|
||||
- **TextAsset**
|
||||
- **Shader** (for Unity < 2021)
|
||||
- **MovieTexture**
|
||||
- **VideoClip**
|
||||
- **MonoBehaviour** : json
|
||||
- **Animator** : export to FBX file with bound AnimationClip
|
||||
|
||||
## AssetStudioMod Features
|
||||
## ArknightsStudio Features
|
||||
|
||||
- CLI version (for Windows, Linux, Mac)
|
||||
- `Animator` and `AnimationClip` assets are not supported in the CLI version
|
||||
- Support of sprites with alpha mask
|
||||
- Support of image export in WebP format
|
||||
- Support of Live2D Cubism 3 model export
|
||||
- Ported from my fork of Perfare's [UnityLive2DExtractor](https://github.com/aelurum/UnityLive2DExtractor)
|
||||
- Using the Live2D export in AssetStudio allows you to specify a Unity version and assembly folder if needed
|
||||
- Detecting bundles with UnityCN encryption
|
||||
- Detection only. If you want to open them, please use Razmoth's [Studio](https://github.com/RazTools/Studio)
|
||||
- Some UI optimizations and bug fixes (See [CHANGELOG](https://github.com/aelurum/AssetStudio/blob/AssetStudioMod/CHANGELOG.md) for details)
|
||||
|
||||
- Support of sprites with alpha texture
|
||||
- Support of portrait sprites
|
||||
- Correct support of avg character sprites
|
||||
- Correct support of character art sprites
|
||||
|
||||
## Requirements
|
||||
|
||||
- AssetStudioMod.net472
|
||||
- ArknightsStudio-net472
|
||||
- GUI/CLI - [.NET Framework 4.7.2](https://dotnet.microsoft.com/download/dotnet-framework/net472)
|
||||
- AssetStudioMod.net6
|
||||
- ArknightsStudio-net6
|
||||
- GUI/CLI (Windows) - [.NET Desktop Runtime 6.0](https://dotnet.microsoft.com/download/dotnet/6.0)
|
||||
- CLI (Linux/Mac) - [.NET Runtime 6.0](https://dotnet.microsoft.com/download/dotnet/6.0)
|
||||
- AssetStudioMod.net7
|
||||
- ArknightsStudio-net7
|
||||
- GUI/CLI (Windows) - [.NET Desktop Runtime 7.0](https://dotnet.microsoft.com/download/dotnet/7.0)
|
||||
- CLI (Linux/Mac) - [.NET Runtime 7.0](https://dotnet.microsoft.com/download/dotnet/7.0)
|
||||
|
||||
## CLI Usage
|
||||
|
||||
You can read CLI readme [here](https://github.com/aelurum/AssetStudio/blob/AssetStudioMod/AssetStudioCLI/ReadMe.md).
|
||||
You can read CLI readme [here](https://github.com/aelurum/AssetStudio/blob/ArknightsStudio/AssetStudioCLI/ReadMe.md).
|
||||
|
||||
### Run
|
||||
|
||||
- Command-line: `AssetStudioModCLI <asset folder path>`
|
||||
- Command-line for Portable versions (.NET 6+): `dotnet AssetStudioModCLI.dll <asset folder path>`
|
||||
- Command-line: `ArknightsStudioCLI <asset folder path>`
|
||||
- Command-line for Portable versions (.NET 6+): `dotnet ArknightsStudioCLI.dll <asset folder path>`
|
||||
|
||||
### Basic Samples
|
||||
|
||||
- Show a list with a number of assets of each type available for export
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -m info
|
||||
ArknightsStudioCLI <asset folder path> -m info
|
||||
```
|
||||
- Export assets of all supported for export types
|
||||
```
|
||||
AssetStudioModCLI <asset folder path>
|
||||
ArknightsStudioCLI <asset folder path>
|
||||
```
|
||||
- Export assets of specific types
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -t tex2d
|
||||
ArknightsStudioCLI <asset folder path> -t sprite
|
||||
```
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -t tex2d,sprite,audio
|
||||
ArknightsStudioCLI <asset folder path> -t tex2d,sprite,audio
|
||||
```
|
||||
- Export portrait sprites
|
||||
```
|
||||
ArknightsStudioCLI <asset folder path> -t akPortrait
|
||||
```
|
||||
- Export assets grouped by type
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -g type
|
||||
ArknightsStudioCLI <asset folder path> -g type
|
||||
```
|
||||
- Export assets to a specified output folder
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -o <output folder path>
|
||||
ArknightsStudioCLI <asset folder path> -o <output folder path>
|
||||
```
|
||||
- Dump assets to a specified output folder
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -m dump -o <output folder path>
|
||||
ArknightsStudioCLI <asset folder path> -m dump -o <output folder path>
|
||||
```
|
||||
- Export Live2D Cubism models
|
||||
- Export assets and create a log file
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -m live2d
|
||||
ArknightsStudioCLI <asset folder path> --log-output both
|
||||
```
|
||||
> When running in live2d mode you can only specify `-o`, `--log-level`, `--log-output`, `--export-asset-list`, `--unity-version` and `--assembly-folder` options.
|
||||
Any other options will be ignored.
|
||||
- Export all FBX objects (similar to "Export all objects (split)" option in the GUI)
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -m splitObjects
|
||||
ArknightsStudioCLI <asset folder path> -m splitObjects
|
||||
```
|
||||
> When running in splitObjects mode you can only specify `-o`, `--log-level`, `--log-output`, `--export-asset-list`, `--image-format`, `--filter-by-name` and `--unity-version` options.
|
||||
Any other options will be ignored.
|
||||
@ -109,50 +82,50 @@ Any other options will be ignored.
|
||||
### Advanced Samples
|
||||
- Export image assets converted to webp format to a specified output folder
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -o <output folder path> -t sprite,tex2d --image-format webp
|
||||
ArknightsStudioCLI <asset folder path> -o <output folder path> -t sprite,akPortrait,tex2d --image-format webp
|
||||
```
|
||||
- Show the number of audio assets that have "voice" in their names
|
||||
- Export avg character sprites with aliases in their names
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -m info -t audio --filter-by-name voice
|
||||
ArknightsStudioCLI <asset folder path> -t sprite --add-aliases
|
||||
```
|
||||
- Export audio assets that have "voice" in their names
|
||||
- Export character art sprites without brightness change of semi-transparent shadow for 2048x2048 images
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -t audio --filter-by-name voice
|
||||
ArknightsStudioCLI <asset folder path> -t sprite --shadow-gamma 0
|
||||
```
|
||||
- Export audio assets that have "music" or "voice" in their names
|
||||
- Show the number of audio assets that have "voice" in their containers
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -t audio --filter-by-name music,voice
|
||||
ArknightsStudioCLI <asset folder path> -m info -t audio --filter-by-container voice
|
||||
```
|
||||
- Export audio assets that have "voice" in their containers
|
||||
```
|
||||
ArknightsStudioCLI <asset folder path> -t audio --filter-by-container voice
|
||||
```
|
||||
- Export audio assets that have "music" or "voice" in their containers
|
||||
```
|
||||
ArknightsStudioCLI <asset folder path> -t audio --filter-by-container music,voice
|
||||
```
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -t audio --filter-by-name music --filter-by-name voice
|
||||
ArknightsStudioCLI <asset folder path> -t audio --filter-by-container music --filter-by-container voice
|
||||
```
|
||||
- Export audio assets that have "char" in their names **or** containers
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -t audio --filter-by-text char
|
||||
ArknightsStudioCLI <asset folder path> -t audio --filter-by-text char
|
||||
```
|
||||
- Export audio assets that have "voice" in their names **and** "char" in their containers
|
||||
- Export audio assets that have "loop" in their names **and** "music" in their containers
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -t audio --filter-by-name voice --filter-by-container char
|
||||
ArknightsStudioCLI <asset folder path> -t audio --filter-by-name loop --filter-by-container music
|
||||
```
|
||||
- Export FBX objects that have "model" or "scene" in their names and set the scale factor to 10
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -m splitObjects --filter-by-name model,scene --fbx-scale-factor 10
|
||||
```
|
||||
- Export MonoBehaviour assets that require an assembly folder to read and create a log file
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -t monobehaviour --assembly-folder <assembly folder path> --log-output both
|
||||
```
|
||||
- Export assets that require to specify a Unity version
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> --unity-version 2017.4.39f1
|
||||
ArknightsStudioCLI <asset folder path> -m splitObjects --filter-by-name model,scene --fbx-scale-factor 10
|
||||
```
|
||||
- Load assets of all types and show them (similar to "Display all assets" option in the GUI)
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -m info --load-all
|
||||
ArknightsStudioCLI <asset folder path> -m info --load-all
|
||||
```
|
||||
- Load assets of all types and dump Material assets
|
||||
```
|
||||
AssetStudioModCLI <asset folder path> -m dump -t material --load-all
|
||||
ArknightsStudioCLI <asset folder path> -m dump -t material --load-all
|
||||
```
|
||||
|
||||
## GUI Usage
|
||||
@ -161,13 +134,13 @@ AssetStudioModCLI <asset folder path> -m dump -t material --load-all
|
||||
|
||||
Use **File->Load file** or **File->Load folder**.
|
||||
|
||||
When AssetStudio loads AssetBundles, it decompresses and reads it directly in memory, which may cause a large amount of memory to be used. You can use **File->Extract file** or **File->Extract folder** to extract AssetBundles to another folder, and then read.
|
||||
When ArknightsStudio loads AssetBundles, it decompresses and reads it directly in memory, which may cause a large amount of memory to be used. You can use **File->Extract file** or **File->Extract folder** to extract AssetBundles to another folder, and then read.
|
||||
|
||||
### Extract/Decompress AssetBundles
|
||||
|
||||
Use **File->Extract file** or **File->Extract folder**.
|
||||
|
||||
### Export Assets, Live2D models
|
||||
### Export Assets
|
||||
|
||||
Use **Export** menu.
|
||||
|
||||
@ -183,14 +156,6 @@ Select model from "Scene Hierarchy" then select the AnimationClip from "Asset Li
|
||||
|
||||
Export Animator will export bound AnimationClip or use **Ctrl** to select Animator and AnimationClip from "Asset List", using **Export->Export Animator with selected AnimationClip** to export.
|
||||
|
||||
### Export MonoBehaviour
|
||||
|
||||
When you select an asset of the MonoBehaviour type for the first time, AssetStudio will ask you the directory where the assembly is located, please select the directory where the assembly is located, such as the `Managed` folder.
|
||||
|
||||
#### For Il2Cpp
|
||||
|
||||
First, use [Il2CppDumper](https://github.com/Perfare/Il2CppDumper) to generate dummy dll, then when using AssetStudio to select the assembly directory, select the dummy dll folder.
|
||||
|
||||
## Build
|
||||
|
||||
* Visual Studio 2022 or newer
|
||||
|
Reference in New Issue
Block a user