Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

7aGiven/Phigros_Resource

Repository files navigation

本仓库自Phigros 3.5.0后失效

Phigros_Resource

本项目可从Phigros的apk文件获取资源

资源包括

定数,收藏品id对应中文标题,头像id,tips

曲id,曲名,曲师,画师,谱师

头像图片,谱面文件,曲子音乐文件,曲绘(模糊),曲绘(低质量),曲绘

生成适配Phira的pez自制谱文件

介绍

gameInformation.py可从apk获取定数表,tips,收藏品id,头像id,曲id,曲名,曲师,画师,谱师

定数表输出为difficulty.csv,收藏品输出为collection.tsv,头像输出为avatar.txt,tips输出为tips.txt,其余输出为info.tsv

resource.py依赖difficulty.tsv和tmp.tsv,从apk内解压出头像、谱面、曲绘、音乐资源,为png,ogg,json

phira.py依赖info.tsv,difficulty.tsv,music/,IllustrationLowRes/, Chart*/,生成phira文件夹内的自制谱文件

配置文件 config.ini

[TYPES]
avatar = true
Chart = true
illustrationBlur = true
illustrationLowRes = true
illustration = true
music = true
[UPDATE]
# 主线
main_story = 0
# 单曲和合集
other_song = 0
# 支线
side_story = 0

TYPES section为设定你需要哪些种类的资源,见README.md开头

当UPDATE section全为0时,默认获取全部歌曲的资源

当UPDATE section不是全为0时,会通过difficulty.tsv获取最近的歌曲,当Phigros更新时使用,更新了哪个部分,更新了几首,运行resource.py时只会提取最近几首的资源

使用示例

taptap下载的apk

pip3 install UnityPy,fsb5
git clone --depth 1 https://github.com/7aGiven/PhigrosLibrary_Resource/
cd PhigrosLibrary_Resource
python3 gameInformation.py Phigros.apk
python3 resource.py Phigros.apk

https://616.sb下载的apk和obb

pip3 install UnityPy,fsb5
git clone --depth 1 https://github.com/7aGiven/PhigrosLibrary_Resource/
cd PhigrosLibrary_Resource
python3 gameInformation.py Phigros.apk
python3 resource.py Phigros.obb

生成自制谱文件python3 phira.py