diff --git a/repo/js/Auto全自动“枫丹”地脉花/AAA 地脉花注意事项.txt b/repo/js/Auto全自动“枫丹”地脉花/AAA 地脉花注意事项.txt index 0ee01a63..df18153a 100644 --- a/repo/js/Auto全自动“枫丹”地脉花/AAA 地脉花注意事项.txt +++ b/repo/js/Auto全自动“枫丹”地脉花/AAA 地脉花注意事项.txt @@ -48,4 +48,7 @@ v.1.3版本:202500422 1、优化最后领奖时检测是否误触地脉之花导致任务失败的问题。 2、修复模糊模式下找到地脉花但没有的情况下会继续寻找地脉花的问题。 3、优化模糊查找下的开始线路。 -4、修复由于检测地脉之花页面导致的软件报错。 \ No newline at end of file +4、修复由于检测地脉之花页面导致的软件报错。 + +v.1.3.1版本:20250429 +1、优化寻找地脉花线路方法。 \ No newline at end of file diff --git a/repo/js/Auto全自动“枫丹”地脉花/main.js b/repo/js/Auto全自动“枫丹”地脉花/main.js index 0253bafe..3c7d3ffe 100644 --- a/repo/js/Auto全自动“枫丹”地脉花/main.js +++ b/repo/js/Auto全自动“枫丹”地脉花/main.js @@ -267,19 +267,21 @@ let XIAN23 = await imageRecognition(DIMAIHUA,1,0,0,1076,651,160,142); if ( (XIAN23.y+651)<=720){AutofilePath=3;log.info("找到线路'3'");await leftButtonUp();return true}//return true if ( (XIAN23.y+651)>720){AutofilePath=2;log.info("找到线路'2'");await leftButtonUp();return true}//return true - let XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){if(XIANmo.x<969){mo=0;}else if(XIANmo.x>1171){mo=2;}else{mo=1;}} - let XIAN1 = await imageRecognition(DIMAIHUA,1,0,0,714,633,130,124);if (XIAN1.found){AutofilePath=1;log.info("找到线路'1'");await leftButtonUp();return true}//return true + let XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){if(XIANmo.x<969){mo=0;}else if(XIANmo.x>1171){mo=2;}else{mo=1;}await leftButtonUp();;return false} + let XIAN1 = await imageRecognition(DIMAIHUA,1,0,0,714,633,130,124);if (XIAN1.found){AutofilePath=1;log.info("找到线路'1'");await leftButtonUp();;return true}//return true await moveMouseTo(132,583); await sleep(200); let XIAN4 = await imageRecognition(DIMAIHUA,1,0,0,884,497,107,87);if (XIAN4.found){AutofilePath=4;log.info("找到线路'4'");await leftButtonUp();return true}//return true - XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){mo=3} + XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){mo=3;await leftButtonUp();return false} await moveMouseTo(1064,1026); await sleep(200); let XIAN5 = await imageRecognition(DIMAIHUA,1,0,0,680,148,87,72);if (XIAN5.found){AutofilePath=5;log.info("找到线路'5'");await leftButtonUp();return true}// - XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){mo=4}else{mo=5} - AutofilePath =0; - await leftButtonUp(); - return false + XIANmo = await imageRecognition(DIMAIHUA,0.5,0,0);if (XIANmo.found){if(XIANmo.x>420){mo=4;}else if(XIANmo.x<420){mo=5;}await leftButtonUp();;return false} + else{throw new Error("线路出错,退出!")} + + // AutofilePath =0; + // await leftButtonUp(); + // return false } // 放大寻路模式 @@ -326,7 +328,6 @@ } await genshin.returnMainUi(); mo=0; //重置模糊量 - log.info("111"); return true; } diff --git a/repo/js/Auto全自动“枫丹”地脉花/manifest.json b/repo/js/Auto全自动“枫丹”地脉花/manifest.json index 4bdc1e01..90a247df 100644 --- a/repo/js/Auto全自动“枫丹”地脉花/manifest.json +++ b/repo/js/Auto全自动“枫丹”地脉花/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "地脉花-可禁UID&领每日&好感队切换", - "version": "1.3", + "version": "1.3.1", "bgi_version": "0.44.3", "description": "枫丹地脉花,蓝花金花通用。生存压力大,请带盾奶;避免纯水输出。地脉花特殊,请注意说明文件。QQ:119996800(茶包) 加我请说明来意。", "authors": [ diff --git a/repo/js/参量质变仪/main.js b/repo/js/参量质变仪/main.js index b15f9bc1..9ca6df0e 100644 --- a/repo/js/参量质变仪/main.js +++ b/repo/js/参量质变仪/main.js @@ -154,7 +154,7 @@ async function insertMaterial(){ await sleep(100); await moveMouseBy(0,30); // 薄荷图片检测 - const maxRetries = 8; // 最大重试次数 + const maxRetries = 15; // 最大重试次数 let retries = 0; // 当前重试次数 while (retries < maxRetries) { await imageRecognition(BH, 1, 0, 0); @@ -179,6 +179,8 @@ async function insertMaterial(){ await sleep(500); if (retries === maxRetries) { await leftButtonUp(); + await sleep(100); + await moveMouseTo(1287,131); await genshin.returnMainUi(); throw new Error("未找到材料(默认薄荷,自定义请看'注意使用事项.txt')!");} } diff --git a/repo/js/参量质变仪/manifest.json b/repo/js/参量质变仪/manifest.json index c0e597e9..f876c3a3 100644 --- a/repo/js/参量质变仪/manifest.json +++ b/repo/js/参量质变仪/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "参量质变仪(LCB)", - "version": "1.0", + "version": "1.1", "bgi_version": "0.44.0", "description": "参量质变仪(LCB)", "authors": [ diff --git a/repo/js/参量质变仪/注意使用事项.txt b/repo/js/参量质变仪/注意使用事项.txt index b12fd5ea..6de9c169 100644 --- a/repo/js/参量质变仪/注意使用事项.txt +++ b/repo/js/参量质变仪/注意使用事项.txt @@ -13,4 +13,8 @@ 五、后言 1、测试阶段,如有错误,请QQ:119996800联系反馈。 2、官方刚释放了图片和文字识别的API,一些用法还没太懂,我自己在这基础封装一下,打包后方便后续复用。 -3、JS的逻辑还不是很熟悉,写Verilog多了,脑子转不过来,请谅解。 \ No newline at end of file +3、JS的逻辑还不是很熟悉,写Verilog多了,脑子转不过来,请谅解。 + +六、更新说明 +v.1.120250426 +1、修改下拉菜单次数适配4K分辨率。 \ No newline at end of file