Files
Snap.Hutao/tools/README.md
wangdage12 2ad17f60bf Update README with GetImage.py usage instructions
Added instructions for using GetImage.py to restore image resources from logs.
2025-11-21 15:16:02 +08:00

20 lines
914 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 对开发有用的工具
对开发有用的工具,不参与编译
## GetImage.py
由于没有备份的图片资源并且缓存目录中的图片名全部经过SHA1处理过该工具用于通过请求日志在旧的资源文件夹中还原图片资源结构
### 用法
**先获取资源服务器上的404日志如下所示**
<img width="1161" height="57" alt="image" src="https://github.com/user-attachments/assets/54270165-f077-4c79-ae87-da16592e77fe" />
复制404日志粘贴到文本中
**然后修改脚本,确保路径正确**
`GetImage.py:62`开始修改,确保路径正确,搜索路径一定要为旧资源文件夹,`username`是你的用户名,`60568DGPStudio.SnapHutao_wbnnev551gwxy1`改为你实际的旧数据文件夹
运行后将自动搜索缺失的文件,然后会在输出路径中生成原始文件,可以直接上传至服务器来补全图片资源