辉鸭蛋
|
1df15bb83c
|
提供老版本的稳定 BitBlt 功能
|
2025-04-11 00:11:42 +08:00 |
|
Takaranoao
|
cbaf1f6c36
|
更新OpenCvSharp4版本到4.10.0,PaddleOCR到2.7.0.3,尝试修复bitblt导致崩溃的问题 (#1381)
|
2025-04-01 14:47:13 +08:00 |
|
FishmanTheMurloc
|
6d4f8b80e8
|
Feat/multi lan (#1336)
* 记录一次对hutaofisher的访谈,帮助开发者理解其算法
* 本地化HelloWorld
* .csproj取消windows版本号,此处导致了IDE在新建代码文件和自动生成代码时,默认命名空间丢失的问题。已知VisualStudio和ReSharper存在这个问题。
* 优化扩展方法写法,改为从localizer扩展;Converter优化写法,避免冲突;新增两种语言,待测试ocr效果
* Revert ".csproj取消windows版本号,此处导致了IDE在新建代码文件和自动生成代码时,默认命名空间丢失的问题。已知VisualStudio和ReSharper存在这个问题。"
This reverts commit 8bd7ee74c5.
* localizer改为由构造函数传入以支持单元测试;一个英语上钩的单元测试
* 传送任务支持英语游戏界面;本地化参数挪至OtherConfig类下,但界面位置暂不挪动,待定
* 调整resx位置风格,放在直接使用字符串的类下;一条龙合成树脂及领取每日奖励支持游戏内中英双语
* 删除无用碎片文件
* 删去两个不必要的Sdcb包引用
* Paddle服务类去掉分类模型;检测和识别新增支持繁中和法语,配有单元测试;因小语种识别效果不理想,使用正则匹配替换多处识别文本相等或包含判断;钓鱼、一条龙合成树脂及领取每日奖励支持游戏内繁中和法语;
* 检查今日奖励任务的多语言化;右侧联机的P图标检测区域宽度缩减,避免英语角色名被误识别成P
* AutoDomainTask的游戏多语言化,由于我的游戏账号无法测试,仅配一些测试用例
* 修复有3个Mizuki导致异常的bug,临时用拼音代替新角色英文名,并为该数据初始化方法添加单元测试
* 瓦雷莎删去别名“牛牛”,因荒泷一斗已占用此别名;别名加载和读取优化
* 加个锁避免单元测试中多线程初始化paddle崩溃
|
2025-03-28 11:00:08 +08:00 |
|
FishmanTheMurloc
|
57d33c4312
|
又一波钓鱼优化 (#1301)
* GetFishBarRect方法添加更复杂的算法,并为其配备独立的单元测试,和分离难度较大的测试用例(未熟练时两侧出现黄色动态折线的情况);GetFishBoxArea行为去掉拉条框初始位置必须位于屏幕中轴线的条件,并添加其后续Fishing行为的单元测试来验证可行性;EnterFishingMode行为使用结束时间来代替Sleep,并添加整体超时时间;添加一个鱼咬钩的假阳性测试用例仅供娱乐
* 补充GetFishBarRect算法,使通过遗漏的测试"20250314002439020_Fishing_Succeeded.png"
* 拉条增加1秒未检测持续时间以应对瞬间丢失拉条框的情况;新增一个检查提竿结果的行为;新增一个检查开始钓一条鱼的初始状态的方法,以应对行为状态错配的情况;一些行为将Sleep优化为DateTime;修改上述改动对应的单元测试
* 解决合并冲突剩余问题,删掉ImageRegion的Bitmap构造函数重载
* 提供给测试用例初始化的 SystemInfo、TaskContext 方法,使用 InitForTest 即可
* InitForTest
* 和鸭蛋昨夜的提交撞车了。。。抽象了ISystemInto供单元测试实例化Fake类;给BaseAssets类定义了成员字段systemInfo(我想,既然都是图片模板数据集,如此定义是合理的),供继承类AutoFishingAssets使用,并定义了其在单元测试的派生类;添加了一个900p的选取鱼饵测试用例;blackboard改为负责携带AutoFishingAssets,并将其实例化时机挪到独立任务的Start方法中,避免由于TaskContext尚未初始化导致获取到的SystemInfo为空
* 一个特殊的测试用例:抛竿的瞬间、开始检测咬杆时遇到了假阳性
* Revert "InitForTest"
This reverts commit 225e9783a7.
* Revert "提供给测试用例初始化的 SystemInfo、TaskContext 方法,使用 InitForTest 即可"
This reverts commit 610c57263a.
* 为始终没有找到落点的情况添加计数,在第3次时直接退出,并添加此情况的单元测试
---------
Co-authored-by: 辉鸭蛋 <huiyadanli@gmail.com>
|
2025-03-18 19:51:42 +08:00 |
|
辉鸭蛋
|
807288ab90
|
重构底层截图器,大幅提升截图器耗时 (#1302)
* to mat init
* BitBlt 加锁
* 使用读写锁重构 Windows.Graphics.Capture,删除BGI自己命名的缓存设置
* dwm加锁并返回mat
* 队伍中没有对应元素角色修复日志问题
* 清除所有 DispatcherTimerOperationEnum 内容
* 修复单测的编译错误
* HDR Support
* 清理无用的截图器模式
|
2025-03-15 13:18:19 +08:00 |
|
FishmanTheMurloc
|
2a548ecb1b
|
过滤“获得”图标的条件数值优化,配有单元测试用例;完善超时收杆行为,使能应对收杆的同时鱼咬杆的情况,并配有单元测试;
|
2025-03-06 20:32:17 +08:00 |
|
秋云
|
4e44bb0e78
|
fix: resolve mouse simulation issue due to resolution change on screen off (#1230)
* fix: resolve mouse simulation issue due to resolution change on screen off
* fix: typo
|
2025-03-05 00:30:35 +08:00 |
|
FishmanTheMurloc
|
aead279c78
|
单元测试HelloWorld (#1219)
* AutoFishing为单元测试重构;一个简单的单元测试GetFishpondTest
* 将鼠标操作的注入挪到DesktopRegion中;提供LoadAssetImage的一个不依赖配置的重载;ChooseBait的代码中将Bv的方法替换成不依赖配置的写法;完成ChooseBait的单元测试
* 使用TimeProvider改写ChooseBait以适用单元测试;添加假的绘图上下文类;添加抛竿行为的单元测试
* 选择鱼饵行为比对上次选择的鱼饵,如果相同则直接抛竿(之前的版本曾有此逻辑),但测下来有时会选错饵导致无限抛竿,调整了相关步骤的等待间隔,希望能简单地压制此bug
* 获取鱼群时过滤“获得”界面的鱼图标:1、在Fishpond构造函数中实现。2、配有此类情况的单元测试。3、并由此降低鱼钓上后的等待时间;
修复绘制鱼群时索引不正确导致遗漏的bug;获取鱼群时绘制鱼群供分析
|
2025-03-05 00:30:11 +08:00 |
|
辉鸭蛋
|
4cb5442161
|
add switch party task
在 `BetterGenshinImpact.csproj` 文件中,添加了两个新文件夹路径 `GameTask\OneDragon\` 和 `User\AutoPathing\`。
在 `BvStatus.cs` 文件中:
- 将 `WaitForMainUi` 方法的默认重试次数从 25 次减少到 10 次。
- 添加了 `IsInPartyViewUi` 和 `WaitForPartyViewUi` 方法。
在 `ElementAssets.cs` 文件中:
- 添加并初始化了 `PartyBtnChooseView` 和 `PartyBtnDelete` 两个新的识别对象。
在 `NewRetry.cs` 文件中:
- 添加了 `using System.Threading.Tasks;` 引用。
- 添加了 `WaitForAction` 方法。
在 `Region.cs` 文件中,添加了一个新的 `ClickTo` 方法,该方法接受 `double` 类型的参数。
在 `ReturnMainUiTask.cs` 文件中:
- 删除了旧的 `ReturnMainUiTask` 类。
- 添加了新的 `ReturnMainUiTask` 类,内容与旧的类似,但文件路径和命名空间有所变化。
在 `RunnerContext.cs` 文件中,移除了 `using BetterGenshinImpact.GameTask.OneDragon;` 引用,添加了 `using BetterGenshinImpact.GameTask.Common.Job;` 引用。
在 `HotKeyPageViewModel.cs` 文件中:
- 添加了多个 `using` 引用,包括 `using System.Threading.Tasks;` 和 `using BetterGenshinImpact.GameTask.Common.Job;`。
- 修改了多个方法的代码格式,使其更加简洁。
- 添加了多个新的快捷键设置。
添加了两个新的 PNG 图片文件 `party_btn_choose_view.png` 和 `party_btn_delete.png`。
在 `SwitchPartyTask.cs` 文件中,添加了新的 `SwitchPartyTask` 类,用于切换队伍。
|
2024-10-29 01:41:43 +08:00 |
|
辉鸭蛋
|
11ec9bc45d
|
refactor: CancellationTokenSource -> CancellationToken
|
2024-10-19 01:50:21 +08:00 |
|
辉鸭蛋
|
7df330a9fb
|
低分辨率缩放
|
2024-09-24 01:18:26 +08:00 |
|
辉鸭蛋
|
8bb1d728ff
|
refactor: solo task
|
2024-09-22 23:56:39 +08:00 |
|
辉鸭蛋
|
f904fe024b
|
Merge remote-tracking branch 'origin/main' into pr/522
|
2024-08-14 21:57:11 +08:00 |
|
qhy040404
|
c490d29aa1
|
code cleanup
|
2024-08-14 18:01:02 +08:00 |
|
lwh9346
|
d148014b7f
|
testing code
|
2024-08-14 16:11:13 +08:00 |
|
辉鸭蛋
|
8fa071722e
|
js : dispatcher.addTimer
|
2024-08-11 17:58:22 +08:00 |
|
辉鸭蛋
|
2c2e9c0303
|
supplement the mode of the runner
|
2024-08-11 10:41:01 +08:00 |
|
辉鸭蛋
|
076a7596a0
|
refactor some code
|
2024-07-21 19:21:01 +08:00 |
|
辉鸭蛋
|
9a76e5ad22
|
add common task runner
|
2024-07-20 21:57:39 +08:00 |
|
辉鸭蛋
|
d56b5efaa0
|
background click blessing of the welkin moon
|
2024-07-15 23:20:04 +08:00 |
|
辉鸭蛋
|
b1534a612c
|
new BaseTaskThread
|
2024-07-15 22:15:26 +08:00 |
|
辉鸭蛋
|
809f974cbb
|
auto hangout: auto press skip #335
|
2024-06-08 00:59:28 +08:00 |
|
辉鸭蛋
|
cfe963dcae
|
auto skip: backgroud click
|
2024-06-01 18:09:34 +08:00 |
|
辉鸭蛋
|
92be667328
|
big map tp
|
2024-05-21 00:18:44 +08:00 |
|
ema
|
9378a134bd
|
remove: package H.InputSimulator #154
|
2024-05-12 05:16:27 +08:00 |
|
辉鸭蛋
|
c27b5176e7
|
16:10 high dpi #373
|
2024-05-12 00:28:37 +08:00 |
|
辉鸭蛋
|
85e0c827ca
|
fix task not work in 16:10 #373
|
2024-05-11 23:41:07 +08:00 |
|
辉鸭蛋
|
ee154da3c3
|
music game: Gdi32.GetPixel
|
2024-05-09 02:46:33 +08:00 |
|
辉鸭蛋
|
5797c716dc
|
auto music game
|
2024-05-08 01:59:30 +08:00 |
|
辉鸭蛋
|
dabdfa51f4
|
fix boundary overflow after switching game resolution
|
2024-05-05 22:51:11 +08:00 |
|
辉鸭蛋
|
e250498c57
|
quick tp : eliminate interference from place names on the map
|
2024-05-04 15:55:00 +08:00 |
|
辉鸭蛋
|
87cb044947
|
fix bug & edit tip
|
2024-05-04 13:30:03 +08:00 |
|
辉鸭蛋
|
1f6d4a3346
|
refactor: QuickBuyTask
|
2024-05-04 11:57:58 +08:00 |
|
辉鸭蛋
|
b1e33a6339
|
refactor: QuickSereniteaPotTask
|
2024-05-04 11:49:22 +08:00 |
|
辉鸭蛋
|
7953a76b3d
|
refactor: auto domain
|
2024-05-03 22:22:42 +08:00 |
|
辉鸭蛋
|
be99fb3605
|
refactor: auto fish
|
2024-05-03 20:10:43 +08:00 |
|
辉鸭蛋
|
6bf73adce2
|
fix ra bug
|
2024-05-03 19:43:22 +08:00 |
|
辉鸭蛋
|
8acf23e9ce
|
refactor: quick tp & add: ra.ocr
|
2024-05-03 12:00:34 +08:00 |
|
辉鸭蛋
|
912d86ac33
|
refactor: auto hangout
|
2024-05-02 21:05:10 +08:00 |
|
辉鸭蛋
|
4fa718c6e0
|
refactor: auto skip
|
2024-05-02 19:06:10 +08:00 |
|
辉鸭蛋
|
c2d3e132e8
|
refactor: RectArea -> Region compilation passed
|
2024-05-02 14:45:07 +08:00 |
|
辉鸭蛋
|
f0bfdde4b8
|
初始化新的坐标系工具类
|
2024-05-02 12:16:36 +08:00 |
|
辉鸭蛋
|
f64e2f37c9
|
add feature matcher
|
2024-04-21 17:18:03 +08:00 |
|
辉鸭蛋
|
d917720c9e
|
delete boundary overflow judgment
|
2024-04-20 17:13:09 +08:00 |
|
辉鸭蛋
|
e408750d09
|
auto track mission
|
2024-04-05 19:54:37 +08:00 |
|
辉鸭蛋
|
8affeff26f
|
optimization
|
2024-04-04 22:35:36 +08:00 |
|
辉鸭蛋
|
9c5bc866f8
|
resolve conflicts
|
2024-04-04 20:40:04 +08:00 |
|
辉鸭蛋
|
e744aba880
|
add more recognition capabilities for RectArea
|
2024-04-04 20:35:42 +08:00 |
|
辉鸭蛋
|
f41cbcdab4
|
pick assets
|
2024-04-04 14:10:15 +08:00 |
|
huiyadanli
|
373b2fe61c
|
feat: adjustable parameters
|
2024-03-01 19:55:16 +08:00 |
|