feat(akassets): added a bash script to download required assets
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -135,4 +135,5 @@ spine-runtimes/*
|
||||
_*.json
|
||||
.DS_Store
|
||||
*test*
|
||||
*_v2/*
|
||||
*_v2/*
|
||||
assets/*
|
||||
20
README.md
20
README.md
@@ -149,7 +149,7 @@ I'm still struggling to find a command-line tool to extract in-game assets. But
|
||||
| Background | arts/ui/homebackground/wrapper/ | Sprite |
|
||||
| Voice Clips | audio/sound_beta_2/voice{_*}/ | AudioClip |
|
||||
| Voice Lines<sup>3</sup> | gamedata/excel/charword_table.ab | TextAsset |
|
||||
| Portrait Images<sup>1</sup> | arts/charportraits | Texture2D |
|
||||
| Portrait Images<sup>1</sup> | arts/charportraits | Texture2D & MonoBehaviour |
|
||||
| Home Music<sup>2</sup> | audio/sound_beta_2/music | AudioClip |
|
||||
|
||||
<sup>1</sup>: `portrait_hub` is required to locate the image
|
||||
@@ -157,3 +157,21 @@ I'm still struggling to find a command-line tool to extract in-game assets. But
|
||||
<sup>2</sup>: `gamedata/excel/display_meta_table.json->homeBackgroundData`<sup>3</sup> and `gamedata/excel/audio_data.json`<sup>3</sup> is required to locate the music.
|
||||
|
||||
<sup>3</sup>: Data is encryped, decryped version can be obtained from [ArknightsGameData](https://github.com/Kengxxiao/ArknightsGameData) for the Chinese version and [Kengxxiao/ArknightsGameData_YoStar](https://github.com/Kengxxiao/ArknightsGameData_YoStar) for other regions.
|
||||
|
||||
## URLs
|
||||
|
||||
| Name | URL | Note |
|
||||
|------|-----|------|
|
||||
| Config | [link](https://ak-conf.hypergryph.com/config/prod/official/Android/version) | Version info |
|
||||
| Current Hot Update JSON | [link](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/hot_update_list.json) | Directory JSON |
|
||||
| Voice JP | [link](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_vcjp.dat) | Voice JP |
|
||||
| Voice CN | [link 1](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_vccn.dat), [link 2](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_vcbsc.dat) | Voice CN |
|
||||
| Voice KR | [link](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_vckr.dat) | Voice KR |
|
||||
| Voice EN | [link](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_vcen.dat) | Voice EN |
|
||||
| Voice Custom | [link](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_vccsm.dat) | Voice Custom |
|
||||
| Misc | [link](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_v052.dat) | Latest Home Background, Skin Static Image |
|
||||
| Init | [link](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_init.dat) | Logos, Background, Portrait Images |
|
||||
| Dynaimc Characters | [link](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_dynilst.dat) | Dynaimc Character |
|
||||
| Static Image | [link](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_crart.dat) | Operator Static Image |
|
||||
| Home Music | [link](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_music.dat) | Home Music |
|
||||
| L Com? | [link](https://ak.hycdn.cn/assetbundle/official/Android/assets/24-07-09-15-29-50-f0a675/lpack_lcom.dat) | portrait_hub.ab |
|
||||
32
download_packs.sh
Executable file
32
download_packs.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Retrieving Config"
|
||||
CURRENT_VERSION=$(curl -X GET \
|
||||
'https://ak-conf.hypergryph.com/config/prod/official/Android/version' \
|
||||
--header 'Accept: */*' \
|
||||
--header 'User-Agent: Dalvik/2.1.0 (Linux; U; Android 12; 22021211RC Build/V417IR)' \
|
||||
--header 'X-Unity-Version: 2017.4.39f1' \
|
||||
| jq -r ".resVersion")
|
||||
|
||||
TARGET_FOLDER="assets"
|
||||
FILES=("lpack_vcjp lpack_vccn lpack_vcbsc lpack_vckr lpack_vcen lpack_vccsm lpack_v052 lpack_init lpack_dynilst lpack_crart lpack_music lpack_lcom")
|
||||
AK_HOST="ak.hycdn.cn:443:123.184.27.60"
|
||||
|
||||
echo
|
||||
|
||||
# echo "Downloading Latest APK"
|
||||
# current_file=./$TARGET_FOLDER/latest.apk
|
||||
# curl --resolve $AK_HOST -L -o ./$TARGET_FOLDER/latest.apk https://ak.hypergryph.com/downloads/android_lastest
|
||||
# echo "Extracting APK"
|
||||
# unzip -q $current_file "assets/AB/Android/*" -d ./$TARGET_FOLDER && rm $current_file
|
||||
|
||||
for file in $FILES
|
||||
do
|
||||
current_file=./$TARGET_FOLDER/$file.dat
|
||||
echo "Downloading $current_file"
|
||||
curl --resolve $AK_HOST --create-dirs -o $current_file https://ak.hycdn.cn/assetbundle/official/Android/assets/$CURRENT_VERSION/$file.dat
|
||||
|
||||
echo "Extracting $file"
|
||||
unzip -q $current_file -d ./$TARGET_FOLDER && rm $current_file
|
||||
echo
|
||||
done
|
||||
Reference in New Issue
Block a user