diff --git a/.gitignore b/.gitignore index 7192ea9..802c844 100644 --- a/.gitignore +++ b/.gitignore @@ -135,4 +135,5 @@ spine-runtimes/* _*.json .DS_Store *test* -*_v2/* \ No newline at end of file +*_v2/* +assets/* \ No newline at end of file diff --git a/README.md b/README.md index ce453a4..e106a36 100644 --- a/README.md +++ b/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 Lines3 | gamedata/excel/charword_table.ab | TextAsset | -| Portrait Images1 | arts/charportraits | Texture2D | +| Portrait Images1 | arts/charportraits | Texture2D & MonoBehaviour | | Home Music2 | audio/sound_beta_2/music | AudioClip | 1: `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 2: `gamedata/excel/display_meta_table.json->homeBackgroundData`3 and `gamedata/excel/audio_data.json`3 is required to locate the music. 3: 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 | \ No newline at end of file diff --git a/download_packs.sh b/download_packs.sh new file mode 100755 index 0000000..85dfe90 --- /dev/null +++ b/download_packs.sh @@ -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 \ No newline at end of file