用 Python 写的 Milthm 查分器
Milthm Score Checker written in Python
-
增加绘制等级图标的参数,以及略微调整界面
python3 main.py [是否绘制图标] [绘制曲目数量] "存档路径" "输出图片路径"
1为绘制,默认为0
-
Added a parameter to enable or disable drawing level icons and made slight adjustments to the interface.
Run the script with the following command:python3 main.py [Draw Icons (1 or 0)] [Number of Tracks to Draw] "Save File Path" "Output Image Path"
Use
1
to enable drawing icons; the default is0
.
-
将
userReality
计算方式改为向下取整,Broken Conviction_CL
定数更改为11.899Change the calculation method of
userReality
to floor rounding, and update the constantBroken Conviction_CL
to 11.899.
- 增加了各平台存档格式的支持 (JSON, XML, plist, reg 以及在 [http://k9.lv/c/] 解析出的格式)
Added support for various platform save file formats (JSON, XML, plist, reg, and the format parsed from [http://k9.lv/c/]). - 增加控制绘制曲目数量
Added control for the number of tracks to be drawn. - 改为在线下载曲绘文件
Change to download jacket files online.
-
需先导入 Pillow 库:
pip install Pillow
-
转到
main.py
所在目录:python3 main.py [是否绘制图标] [绘制曲目数量] "存档路径" "输出图片路径"
[是否绘制图标]
为选填,1为绘制,默认为 0。[绘制曲目数量]
为选填,默认为 22。- 如未指定输出图片路径,则图片输出到
main.py
所在目录。 - 如未指定存档路径,则程序尝试从
main.py
所在目录读取save.json
。 - 如不存在
save.json
,则读取save.txt
。
-
内含格式转换脚本:
- 用于将 [http://k9.lv/c/] 上解析出的格式转换为 JSON 格式。
- 如需其他格式文件,可使用该网站进行转换。
-
Install the required Pillow library:
pip install Pillow
-
Navigate to the directory where
main.py
is located:python3 main.py [Draw Icons (1 or 0)] [Number of Tracks to Draw] "Save File Path" "Output Image Path"
[Whether to draw icons]
is optional; 1 means to draw, and the default is 0.[Number of Tracks to Draw]
is optional, defaulting to 22.- If the output image path is not specified, the image will be saved in the same directory as
main.py
. - If the save file path is not specified, the program will try to read
save.json
from the same directory asmain.py
. - If
save.json
does not exist, the program will attempt to readsave.txt
.
-
Included conversion script:
- Converts files from the format parsed by [http://k9.lv/c/] into JSON format.
- For other formats, use the website for conversion.
Milthm 查分器用于从不同平台的存档中提取分数信息并生成图像输出。支持 JSON、XML、plist、reg 等多种格式。
The Milthm Score Checker extracts score information from save files on various platforms and generates image outputs. It supports multiple formats including JSON, XML, plist, and reg.
---