Releases: zhoubin-me/lushi_script
20241025佣兵战纪PVE v0.4.7a Bug Fix
免责声明:禁止任何人(或者其他什么)使用此脚本盈利,本脚本对任何系统没有任何危害,仅作学习使用,下载后24小时内删除。
本版本脚本现在、未来都不能用于pvp,不能用于挂经验,只能代替你坐牢刷碎片和声望值。
此脚本带a版本号的release和有关分支此后不再更新英语版本。使用前请仔细阅读原作者的FAQ和README.md以及其他需要阅读的内容,然后自行探索(难者不会不想教,会者不难不用教)。
已知bug:
1、power.log中出现空行以外的其他无法读取识别利用的内容时,会不断重启(重启是计划内的,本身不是bug,bug指的是无法利用的内容),数十次之后生成了新的power.log就会恢复,暂时无须理会,短时间内没有修复计划。
2、抉择技能存在一部分无法正确释放的,应该规避抉择技能,此版本的发布者技术浅薄,不知道如何修复。
3、脚本无法识别潜行的地方随从,依然会不停地试图瞄准它,并且伴随不断重启,此版本的发布者技术浅薄,没学会如何修复。
4、如果你的角色技能没开满,则不要在策略中使用他没有的(第二个或者第三个)技能,否则会一直无法战斗。
5、炉石进程有的时候是中文名‘炉石传说’,有的时候是英文名‘hearthstone’,未响应的时候是‘炉石传说(未响应)’或者‘hearthstone(未响应)’,在未响应的时候重启了是正常现象。
6、佣兵队伍不依据实际队内的成员设置时,技能会乱丢(这个不能算bug吧,队伍设置一下这都要偷懒吗)。
7、自动提交任务因为未知原因损坏了,不要开。
8、忘了,想起来再写。
【写给其余开发者】此版本中的更改和修复内容:
1、项目名称lushi_script修改为其余英文,规避一下scan disk。
2、lushi.py中变量cfg(用于存config信息)被定义为全局变量,因为有效的power.log文件目录会变,需要随时改写cfg下的power.log目录;在states中添加了本来没有的collect、cursed_treasure文件,防止遇到了额外的战利品收集不到;重启后会有45秒的等待时间,比较长,不是卡死了别乱点;有一个except RegexParsingError: 后面接了重启,其余开发者如果有类似的导致程序停止的error,都可以换成RegexParsingError,然后在这里重启。
3、\utils\log_utils.py的read_log函数进行更新,使其能获得最新的power.log路径。
4、\utils\utils.py的find_lushi_window和restart_game进行更新,使其能够识别炉石进程有的时候是中文名‘炉石传说’,有的时候是英文名‘hearthstone’的特殊情况,而不会返回“没有识别到进程”。
5、\utils\winguiaoto.py的findTopWindow报错功能被注释(瞎几把报啥空值错,本来就有俩变量是空值,边儿玩去),_windowEnumerationHandler现在也能够识别‘炉石传说’和‘hearthstone’。
6、\python37\Lib\site-packages\hslog\的_check_for_options_hack函数现在不能报assert not isinstance的错了,而是报except RegexParsingError,直接重启。
7、还有个防止将鼠标移出炉石窗口的安全函数,我把这个功能取消了,现在移出去了(睡觉的时候踢到鼠标)也不会报错了。
8、更新了部分icons的素材(仅限CHS的)。
v0.4.6 Bug Fix && User Experience Improvement
Note
工作路径不能含有中文字符 The working path cannot contain non-ASCII
常规更新 Regular update
更新只需要将GitHub上代码下载下来进行替换,之后执行cn_update_requirements.bat
即可。 To update, you only need to download and replace the code on GitHub, and then execute update_requirements.bat
.
What's Changed
- 新英雄;max_dmg 战斗策略调整 by @littlewrite in #179
- 新英雄加入,适应无2、3技能佣兵,不选择免疫、隐身佣兵。 by @littlewrite in #184
- 英雄\宝藏 黑白名单;英文版素材更新 by @littlewrite in #185
- 添加新英雄,调整截图策略 by @littlewrite in #191
- 修复max_dmg会选择 隐身、免疫 佣兵问题 by @littlewrite in #193
-
- 新英雄。2. 图标更新。3 bug修复与优化 by @littlewrite in #194
- 更改ui、后备队伍、参数保存等 by @lskyzero in #195
- 修复add,按钮bug by @lskyzero in #196
Full Changelog: v0.4.5...v0.4.6
v0.4.5 Bug Fix && User Experience Improvement
What's Changed
- 修复无旋涡的地图bug;尤朵拉炮台技能;支持抉择技能 by @littlewrite in #165
- 添加新英雄,更新炉石包版本 by @littlewrite in #172
- 新增英雄,修复bug by @littlewrite in #174
- 优化战斗策略,抉择,休眠支持配置 by @littlewrite in #175
- 坐标偏移修复。当任务栏位于屏幕非底部时,可修正按键坐标。 by @ioxv
Note
默认策略可以通过普通难度4-13。default configuration can be used to pass 4-13.
如果无法正常点击关卡,可尝试将空白坐标empty
更新为travel
的坐标值。If you cannot click the level normally, you can try to update the blank coordinate empty
to the coordinate value of travel
.
英语翻译尚未更新。 English translate may not update.
Full Changelog: v0.4.3...v0.4.5
v0.4.4-beta
What's Changed
- 修复无旋涡的地图bug;尤朵拉炮台技能;支持抉择技能 by @littlewrite in #165
- 添加新英雄,更新lu包版本 by @littlewrite in #172
Note
英文版本和翻译可能尚未更新。
English version and translation may not update.
Full Changelog: v0.4.3...v0.4.4
v0.4.3 More strategies to pass levels 4-13(更多策略,能通过4-13)
修复了许多bug,默认的配置可以用来通过4-13,非常强大与智能,万分感谢@littlewrite
Many bugs have been fixed and the default configuration can be used to pass 4-13. New version is very powerful and intelligent. Thank you so much @littlewrite
What's Changed
- 自动领宝藏调整,拼地图算法 by @littlewrite in #145
- 指定 opencv 版本 by @littlewrite in #146
- 添加opencv相关依赖 by @fulln in #148
- feat:add hearth window functionality for macOS by @burning489 in #150
- 路线直指神秘人;领任务前新增判断 by @littlewrite in #153
- 更新素材, 移除opencv 版本依赖 by @littlewrite in #155
- 修复地图寻找bug修复,win32api 修复,地图支持13上限 by @littlewrite in #156
- 颜色克制;en英雄素材;宝藏黑名单优先级;1-13关卡坐标;boss策略 by @littlewrite in #159
- fix check_and_screen return value when exception by @harryhare in #160
- fix typo by @harryhare in #161
- 修复boss关卡判断问题,调整默认配置 by @littlewrite in #162
New Contributors
- @fulln made their first contribution in #148
- @burning489 made their first contribution in #150
Full Changelog: v0.4.2...v0.4.3
v0.4.2 User Experience Improvement
写在前面(Write in Front)
12月1日更新,请下载附件内hero_data.csv,替换到/resource路径下,即可添加新佣兵
final_reward.png和final_reward2.png替换到\resource\imgs_chs_1600x900\icons\下
新版本必须要保存配置后运行才可保证不会出错
The new version must be run after saving the configuration to ensure that no errors occur
有问题请优先查看FAQ
Please check the FAQ if you have any questions
新的变动
- 宝藏黑白名单,boss奖励截图统计,关卡奖励领取优化。 by @littlewrite in #138
- 英文版支持自动提交任务 by @x014 in #141
- 黑白名单重新加入,改进代码结构,各种优化 by @littlewrite in #143
- bug修复,稳定性改进,增加多种截图选项,方便查询错误与白名单截图 by @Huangyan0804
- ui改进 @ioxv
- bug修复s by #blacksilvergeek
What's changed
- Treasure black and white list, boss reward screenshot stats, level reward collection optimization. by @littlewrite in #138
- English version supports automatic quest submission by @x014 in #141
- Black and white list re-added, improved code structure, various optimizations by @littlewrite in #143
- Bug fixes, stability improvements, multiple screenshot options for error checking and whitelisting screenshots by @Huangyan0804
- UI improvements by @ioxv
- Bug fixes by @blacksilvergeek
New Contributors
- @littlewrite made their first contribution in #138
- @x014 made their first contribution in #141
- @Huangyan0804
- @ioxv
- @blacksilvergeek
附件说明(Annex Notes)
电脑没有python或者不愿意倒腾的情况下,优先选择下载script_with_python37(傻瓜版),解压运行"run.bat"即可
如果不能正常运行可以下载source code通过自己电脑上的python运行
If you don't have python on your computer, you can download script_with_python37, unzip it and run "run.bat".
If it doesn't work, you can download the source code and run it with python on your computer.
Full Changelog: 0.4.1...v0.4.2
v0.4.1 User Experience Improvement
Update information
- Solve the memory leak problem
- Add automatic task submission function
- Add automatic screenshot function when an error is reported (under logs folder)
- Separate log and error files are provided
- Support search when selecting heroes
- Add 7,8,9 boss levels to the selection
- Press ctrl+Q to stop the script from running
If you have questions, please check the FAQ first.
Annex Notes
If you don't have python on your computer, you can download script_with_python37, unzip it and run "run.bat".
If it doesn't work, you can download the source code and run it with python on your computer.
更新信息
- 解决了内存泄漏问题
- 增加了自动提交任务功能
- 增加了报错时自动截图功能(log文件夹下)
- 提供了单独的log和error文件
- 支持选择英雄时进行搜索
- 增加了7,8,9关的选择
- 按住ctrl+Q停止脚本运行
有问题请优先查看FAQ
附件说明
电脑没有python的情况下,优先选择下载script_with_python37,解压运行"run.bat"即可
如果不能正常运行可以下载source code通过自己电脑上的python运行
v0.4.0 GUI Support with Both English and Chinese
- GUI Support, thanks to @ioxv
- Now you can just download
script_with_python37.7z
, uncompress, and double clickrun.bat
, then you can enjoy it, thanks to @ioxv - Fixed know bugs, restructured project, thanks to @Huangyan0804
- Testing and bug reporting, thanks to @ytkz11
0.3.0 Major Release with Log Reading
- Thanks for the contribution from @Huangyan0804 with
Power.log
reading and battle AI function - Update Chinese Q&A Page, English version is ongoing, thanks for contribution from @dhnynu9xrf
- Fix bugs of being stuck at spell selection
- OpenCV based information reading for battle is abandoned
v0.2.6.1 Bug Quick Fix
- Now you can set auto restart parameter in config
- Fix bugs for English 1024x768