Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[功能请求] 美化优化运行文件 #771

Open
dConstantineb opened this issue Dec 3, 2023 · 3 comments
Open

[功能请求] 美化优化运行文件 #771

dConstantineb opened this issue Dec 3, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@dConstantineb
Copy link

原因

cmd里面看着感觉有待优化

功能简述

cmd里面输出的log.info过于冗长

功能逻辑

好看就行

实现参考

比如map.py里面的201行。可以改为log.info(_('地图加载完毕,加载时间为 {count:.2f} 毫秒').format(count=(count*1000)))
比如config.json里面改为"star_version": "v1.8.7","picture_version": "vP0","map_version": "vM2023.10.05-16.38.17",这样写

@dConstantineb dConstantineb added the enhancement New feature or request label Dec 3, 2023
@dConstantineb
Copy link
Author

再比如Honkai_Star_Rail.py里面383行的log.error(traceback.format_exc())后面添加input("按下回车键退出窗口...")防止报错瞬间退出运行

@dConstantineb
Copy link
Author

再比如caculated.py里面427行move_num+=1应该添加条件判定,在补漏的时候丹鼎司-2会出现无法识别锚点的情况,或许可以添加:
if move_num/3 == 3:#寻找锚点3次,地图向下大于900,应该重置到顶部
for i in range(3):
self.swipe((start_x, start_y), (start_x, start_y + 300), 0.3)
log.info('resetting')
然后后面的卡死判断由15改为21

@dConstantineb dConstantineb changed the title [功能请求] 美化运行文件 [功能请求] 美化优化运行文件 Dec 4, 2023
@dConstantineb
Copy link
Author

在Honkai_Star_Rail.py里面的:
if not pyuac.isUserAdmin():
pyuac.runAsAdmin()
后面添加:
elif args.get("--start"):
print(_("\033[0;31;40m速启模块待开发\033[0m"))
serial_map = "1-1_1"
sra.main(start=serial_map)
sra.end()
可以达到通过命令行输入python Honkai_Star_Rail.py --start=1直接开始锄大地
前提是在开头多行注释的内容里面添加:
"""
Usage:
Honkai_Star_Rail.py [--simplify=]

Options:
--simplify= 快速启动,可选
"""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant