From 41054f2be70db3cd130c56ec563001e0469eaa72 Mon Sep 17 00:00:00 2001 From: mno <718135749@qq.com> Date: Mon, 28 Jul 2025 17:29:42 +0800 Subject: [PATCH] =?UTF-8?q?js=EF=BC=9A=E9=94=84=E5=9C=B0=E4=B8=80=E6=9D=A1?= =?UTF-8?q?=E9=BE=991.2.3=20(#1430)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * js:锄地一条龙 ### 1.2.3(2025.07.28) 1.优化了定时终止的逻辑,会按下一条路线的预计时间来计算,避免某条线路过长 2.添加了按效率降序运行的选项,用于在时间有限且不确定时优先运行效率较高的路线 3.修正了部分路线无法识别的问题 * js:自动狗粮1.7.0 ### 1.7.0(2025.07.28) 1.增加模式,不卡时间,并尽可能跑A(比前一天晚间隔时间以上就跑A),并设为默认选项 2.增加通知收益的选项 3.将记录的数量上调至至多14条 * 移除js路径摩拉记录 功能已被锄地路线标记的js完全覆盖 --- repo/js/AutoArtifactsPro/README.md | 8 +- repo/js/AutoArtifactsPro/main.js | 19 +- repo/js/AutoArtifactsPro/manifest.json | 7 +- repo/js/AutoArtifactsPro/settings.json | 10 +- repo/js/AutoHoeingOneDragon/README.md | 7 +- .../js/AutoHoeingOneDragon/assets/index1.json | 4 +- .../427【高危】须弥童梦的切片(600_1).json | 4 +- repo/js/AutoHoeingOneDragon/main.js | 26 +- repo/js/AutoHoeingOneDragon/manifest.json | 2 +- repo/js/AutoHoeingOneDragon/settings.json | 15 +- .../assets/CharacterMenu.png | Bin 847 -> 0 bytes repo/js/PathMoraLogger路径摩拉记录/main.js | 257 ------------ .../PathMoraLogger路径摩拉记录/manifest.json | 14 - .../pathing/7020稻妻清濑岛01.json | 392 ------------------ .../pathing/7020稻妻清濑岛02.json | 122 ------ .../pathing/7020稻妻清濑岛03.json | 130 ------ .../pathing/7020稻妻清濑岛04.json | 84 ---- .../pathing/7020稻妻清濑岛05.json | 58 --- .../pathing/7020稻妻清濑岛07.json | 84 ---- .../pathing/7020稻妻清濑岛08.json | 75 ---- .../pathing/7020稻妻清濑岛09.json | 76 ---- .../pathing/7020稻妻清濑岛12.json | 300 -------------- .../pathing/7022稻妻鹤冠05.json | 161 ------- .../PathMoraLogger路径摩拉记录/settings.json | 8 - 24 files changed, 74 insertions(+), 1789 deletions(-) delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/assets/CharacterMenu.png delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/main.js delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/manifest.json delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛01.json delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛02.json delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛03.json delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛04.json delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛05.json delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛07.json delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛08.json delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛09.json delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛12.json delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/pathing/7022稻妻鹤冠05.json delete mode 100644 repo/js/PathMoraLogger路径摩拉记录/settings.json diff --git a/repo/js/AutoArtifactsPro/README.md b/repo/js/AutoArtifactsPro/README.md index 28792526..c0d0a4f7 100644 --- a/repo/js/AutoArtifactsPro/README.md +++ b/repo/js/AutoArtifactsPro/README.md @@ -171,9 +171,13 @@ https://www.kdocs.cn/wo/sl/v13uXscL ## 更新日志 -### 1.7.1(2025.07.27) +### 1.7.0(2025.07.28) +1.增加模式,不卡时间,并尽可能跑A(比前一天晚间隔时间以上就跑A),并设为默认选项 +2.增加通知收益的选项 +3.将记录的数量上调至至多14条 +### 1.6.11(2025.07.27) 1.优化一些点位卡屋檐 -### 1.7.0(2025.07.25) +### 1.6.10(2025.07.25) 1.优化B路线些许小bug ### 1.6.9(2025.07.24) 1.优化些许点位角度 diff --git a/repo/js/AutoArtifactsPro/main.js b/repo/js/AutoArtifactsPro/main.js index 1377eba8..6228278f 100644 --- a/repo/js/AutoArtifactsPro/main.js +++ b/repo/js/AutoArtifactsPro/main.js @@ -4,7 +4,7 @@ const DEFAULT_FIGHT_TIMEOUT_SECONDS = 120; let lastRunDate = "未知"; // 默认值 let lastEndTime = new Date(); // 默认值为当前时间 let lastRunRoute = "未知"; // 默认值 -let records = new Array(7).fill(""); +let records = new Array(14).fill(""); let finished = false; const accountName = settings.accountName || "默认账户"; let version = "default"; @@ -18,7 +18,7 @@ const minIntervalTime = settings.minIntervalTime || "5"; const waitTimePeriod = settings.waitTimePeriod || "4:05-4:45"; const friendshipPartyName = settings.friendshipPartyName || "好感"; const grindPartyName = settings.grindPartyName || "狗粮"; -const operationType = settings.operationType || "不卡时间,ab交替运行"; +const operationType = settings.operationType || "不卡时间,尽可能跑A"; const runActivatePath = settings.runActivatePath || false; let enemyType = "无"; @@ -49,6 +49,10 @@ let enemyType = "无"; // 不卡时间,ab交替运行的逻辑 break; + case "不卡时间,尽可能跑A": + // 不卡时间,尽可能跑A的逻辑 + break; + default: // 其他情况的逻辑 log.error("未知的操作类型: " + operationType); @@ -283,6 +287,11 @@ let enemyType = "无"; // 根据当前时间与 1970-01-01T20:00:00.000Z 的天数差的奇偶性给布尔变量 runRouteA 赋值 runRouteA = Math.floor((now - epochTime) / (24 * 60 * 60 * 1000)) % 2 === 0; } + + if (operationType === "不卡时间,ab交替运行") { + // 根据当前时间与上次运行时间给布尔变量 runRouteA 赋值 + runRouteA = endTime <= timeNow; + } } //切换至好感队 @@ -294,7 +303,7 @@ let enemyType = "无"; if (runnedToday) { break wait; } - if (operationType !== "不卡时间,ab交替运行") { + if (operationType !== "不卡时间,ab交替运行" && operationType !== "不卡时间,尽可能跑A") { // 输出结果 log.info(`预期开始狗粮时间: ${endTime.toTimeString().slice(0, 8)}`); // 检查当前时间是否晚于 endTime @@ -397,7 +406,9 @@ let enemyType = "无"; records[i] = records[i - 1]; } records[0] = `日期:${lastRunDate},运行路线${lastRunRoute},狗粮经验${artifactExperienceDiff},摩拉${moraDiff}`; - + if (settings.notify) { + notification.Send(`日期:${lastRunDate},运行路线${lastRunRoute},狗粮经验${artifactExperienceDiff},摩拉${moraDiff}`); + } if (runArtifactsResult) { //修改文件内容 log.info('修改记录文件'); diff --git a/repo/js/AutoArtifactsPro/manifest.json b/repo/js/AutoArtifactsPro/manifest.json index 89bdf04f..b7c37b03 100644 --- a/repo/js/AutoArtifactsPro/manifest.json +++ b/repo/js/AutoArtifactsPro/manifest.json @@ -1,11 +1,14 @@ { "manifest_version": 1, "name": "自动狗粮重制版", - "version": "1.7.1", + "version": "1.7.0", "tags": [ "好感", "狗粮" ], + "savedFolders": [ + "records" + ], "description": "通过不同好感任务卡时间后运行狗粮任务以提高狗粮总收益,需要正确配置好感队伍的战斗策略,并在自定义配置中指定好感和狗粮队伍名称", "authors": [ { @@ -23,4 +26,4 @@ ], "settings_ui": "settings.json", "main": "main.js" -} +} \ No newline at end of file diff --git a/repo/js/AutoArtifactsPro/settings.json b/repo/js/AutoArtifactsPro/settings.json index a7dafbec..a75954fe 100644 --- a/repo/js/AutoArtifactsPro/settings.json +++ b/repo/js/AutoArtifactsPro/settings.json @@ -8,9 +8,10 @@ "愚人众好感卡时间", "鳄鱼好感卡时间", "干等卡时间", - "不卡时间,ab交替运行" + "不卡时间,ab交替运行", + "不卡时间,尽可能跑A" ], - "default": "不卡时间,ab交替运行" + "default": "不卡时间,尽可能跑A" }, { "name": "runActivatePath", @@ -90,5 +91,10 @@ "type": "input-text", "label": "战斗超时时间(秒)\n【选填,默认为120秒】", "default": "120" + }, + { + "name": "notify", + "type": "checkbox", + "label": "是否通知信息" } ] \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/README.md b/repo/js/AutoHoeingOneDragon/README.md index 4bfbe9af..37c01616 100644 --- a/repo/js/AutoHoeingOneDragon/README.md +++ b/repo/js/AutoHoeingOneDragon/README.md @@ -38,6 +38,8 @@ - **选择执行第几个路径组:** 本js会分组运行地图追踪,分组方式详见后续选项,需要分组运行时请确保精英目标数量,小怪目标数量,各个路径组的标签等信息【完全相同】,复制配置组时未知原因无法正确复制配置,请不要使用 - **本路径组使用配队名称:** 填写该路径组使用的配队名称,js会自动切换 - **拾取模式:** 本js采用黑白名单结合的方式实现仅拾取部分物品(默认只拾取狗粮和晶蝶),如果你想要使用bgi默认的拾取以拾取绝大部分物品,请选择bgi拾取,如果不想拾取任何物品,请选择不拾取任何物品 + - **效率降序运行:**当你时间不足以刷完所有怪物且不确定时,建议通过开启该项和配置下一项来实现在指定时间前尽可能多刷效率高的路线并按时终止 + - **输入不运行的时间或时间段的小时数** 当你需要让js在特定的时间终止运行时,按描述填写,js会在距离目标时间小于五分钟时终止运行并等待到目标时间 - **泥头车模式(实验性功能):** 接近战斗地点(距离5-30)时,提前让指定序号的角色开e,建议以下角色开启:芙宁娜,爱可菲,雷电将军。警告,可能会增加性能开销和降低稳定性。 - **账户名称:** 本js支持多用户,不同账户的记录分开存储,当你需要使用多用户时,请在这里填写不同的文本来区分不同账号的记录,如果你只使用一个账号,请不要修改该选项 - **路径组x标签:** 本js使用不同的标签来禁用或分组路线,多个标签之间使用中文逗号分隔,目前支持的标签如下 @@ -49,7 +51,6 @@ - - 小怪 :表明路线只含小怪,战斗强度低,且无需携带万叶来拾取可能掉落的狗粮,可以适当携带等级较低或不上场的角色来获取经验收益 - - 分组逻辑:不含路径组1排除标签和任何其他组标签的路径会进入路径组1,剩余路径若含有路径组x的标签之一,则会进入路径组x - - 使用示例:路径组一填写蕈兽,禁用蕈兽路线,路径组二填写次数盾,水免,处理路径组一的配队难以处理的次数盾和水免怪物,路径组三填写小怪,队伍中放升级中角色获取经验 - - **输入不运行的时间或时间段的小时数** 当你需要让js在特定的时间终止运行时,按描述填写,js会在距离目标时间小于五分钟时终止运行并等待到目标时间 - **路线效率计算权重:** 影响js评估路线价值,计算公式如下,权重越大越看重总收益 - $$ 怪均^k \times 秒均 $$ - **自动优化:** js将根据运行记录调整每条路线的预期运行时间,具体逻辑为,至多6条记录,去除一个最大值、一个最小值后,每条记录占据20%的权重,剩余权重由默认数据填充。如果你不想要这个功能,请禁用。 @@ -73,6 +74,10 @@ --- ### 更新日志 +### 1.2.3(2025.07.28) +1.优化了定时终止的逻辑,会按下一条路线的预计时间来计算,避免某条线路过长 +2.添加了按效率降序运行的选项,用于在时间有限且不确定时优先运行效率较高的路线 +3.修正了部分路线无法识别的问题 ### 1.2.2(2025.07.25) 1.调整部分小怪路线的战斗点位 ### 1.2.1(2025.07.24) diff --git a/repo/js/AutoHoeingOneDragon/assets/index1.json b/repo/js/AutoHoeingOneDragon/assets/index1.json index 2c754d71..658e6389 100644 --- a/repo/js/AutoHoeingOneDragon/assets/index1.json +++ b/repo/js/AutoHoeingOneDragon/assets/index1.json @@ -678,7 +678,7 @@ "小怪摩拉": 324 }, { - "fileName": "330稻妻渊下宫大日御舆西(600_1,200_7).json", + "fileName": "330【水免】【高危】稻妻渊下宫大日御舆西(600_1,200_7).json", "时间": 234, "高危": 1, "精英数量": 8, @@ -963,7 +963,7 @@ "小怪摩拉": 0 }, { - "fileName": "427须弥童梦的切片(600_1).json", + "fileName": "427【高危】须弥童梦的切片(600_1).json", "时间": 188, "高危": 1, "精英数量": 1, diff --git a/repo/js/AutoHoeingOneDragon/assets/分层路线/1-分层精英/427【高危】须弥童梦的切片(600_1).json b/repo/js/AutoHoeingOneDragon/assets/分层路线/1-分层精英/427【高危】须弥童梦的切片(600_1).json index 5266d97b..1c5ad88a 100644 --- a/repo/js/AutoHoeingOneDragon/assets/分层路线/1-分层精英/427【高危】须弥童梦的切片(600_1).json +++ b/repo/js/AutoHoeingOneDragon/assets/分层路线/1-分层精英/427【高危】须弥童梦的切片(600_1).json @@ -7,7 +7,9 @@ "description": "", "map_name": "Teyvat", "bgi_version": "0.45.0", - "tags": [], + "tags": [ + "蕈兽" + ], "last_modified_time": 1751471190387 }, "positions": [ diff --git a/repo/js/AutoHoeingOneDragon/main.js b/repo/js/AutoHoeingOneDragon/main.js index 2c13698b..00427275 100644 --- a/repo/js/AutoHoeingOneDragon/main.js +++ b/repo/js/AutoHoeingOneDragon/main.js @@ -387,10 +387,20 @@ async function findBestRouteGroups(pathings, k, targetEliteNum, targetMonsterNum pathing.tags.push("小怪"); } }); - - // 按原始索引排序 - pathings.sort((a, b) => a.index - b.index); - + if (settings.runByEfficiency) { + log.info("使用效率降序运行"); + //按效率降序排序 + pathings.sort((a, b) => { + if (a.E1 !== b.E1) { + return a.E1 - b.E1; // 先按 E1 升序排序 + } + return a.E2 - b.E2; // 如果 E1 相同,再按 E2 升序排序 + }); + } else { + log.info("使用默认顺序运行"); + // 按原始索引排序 + pathings.sort((a, b) => a.index - b.index); + } // 输出日志信息 log.info(`总精英怪数量: ${totalSelectedElites.toFixed(0)}`); log.info(`总普通怪数量: ${totalSelectedMonsters.toFixed(0)}`); @@ -917,6 +927,10 @@ async function processPathingsByGroup(pathings, whitelistKeywords, blacklistKeyw // 增加路径计数 groupPathCount++; + if (await isTimeRestricted(settings.timeRule, Math.ceil(pathing.t / 40))) { + break; + } + // 输出当前路径的序号信息 log.info(`开始处理第 ${targetGroup} 组第 ${groupPathCount}/${totalPathsInGroup} 个${pathing.fileName}`); @@ -932,10 +946,6 @@ async function processPathingsByGroup(pathings, whitelistKeywords, blacklistKeyw continue; } - if (await isTimeRestricted(settings.timeRule)) { - break; - } - // 输出路径已刷新并开始处理的信息 log.info(`该路线已刷新,开始处理。`); await fakeLog(`${pathing.fileName}`, false, true, 0); diff --git a/repo/js/AutoHoeingOneDragon/manifest.json b/repo/js/AutoHoeingOneDragon/manifest.json index ad33a6ac..b9bed6a6 100644 --- a/repo/js/AutoHoeingOneDragon/manifest.json +++ b/repo/js/AutoHoeingOneDragon/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "锄地一条龙", - "version": "1.2.2", + "version": "1.2.3", "description": "一站式解决自动化锄地,支持只拾取狗粮,请阅读README.md后使用", "authors": [ { diff --git a/repo/js/AutoHoeingOneDragon/settings.json b/repo/js/AutoHoeingOneDragon/settings.json index f5a47890..6ca8569c 100644 --- a/repo/js/AutoHoeingOneDragon/settings.json +++ b/repo/js/AutoHoeingOneDragon/settings.json @@ -43,6 +43,16 @@ "type": "input-text", "label": "泥头车模式,将在接近战斗点前提前释放部分角色e技能\n需要启用时填写这些角色在队伍中的编号\n有多个角色需要释放时用中文逗号分隔\n警告,实验性功能,可能增加性能开销和降低稳定性" }, + { + "name": "runByEfficiency", + "type": "checkbox", + "label": "组内按照效率降序运行\n会略微增加传送花费时间,用于在时间有限时优先跑高效路线\n建议配合下一项配置使用" + }, + { + "name": "timeRule", + "type": "input-text", + "label": "输入不运行的时间或时间段的小时数,以本地时间为准\n将提前结束路线运行,并等待到对应时间\n允许填入【单个数字】如4表示小时数为4时不运行\n或【时间段】如4-6表示小时数为4-6时都不运行\n允许多项,由【中文逗号】分隔" + }, { "name": "accountName", "type": "input-text", @@ -70,11 +80,6 @@ "type": "input-text", "label": "路径组四要【选择】的标签" }, - { - "name": "timeRule", - "type": "input-text", - "label": "输入不运行的时间或时间段的小时数,以本地时间为准\n将提前5分钟结束路线运行,并等待到对应时间\n允许填入【单个数字】如4表示小时数为4时不运行\n或【时间段】如4-6表示小时数为4-6时都不运行\n允许多项,由【中文逗号】分隔" - }, { "name": "efficiencyIndex", "type": "input-text", diff --git a/repo/js/PathMoraLogger路径摩拉记录/assets/CharacterMenu.png b/repo/js/PathMoraLogger路径摩拉记录/assets/CharacterMenu.png deleted file mode 100644 index 6896b154d19048dfac202c1697428046a0b9c5df..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 847 zcmV-V1F-ywP)KmrZC?R}{y8_sz_EZ@#KSh(-u%jkIwD7b#kCA?T(H zE!`B{6zr;9xGSQVMa2lN{9KiiWkj)(g_4y@i$$!hR;bc+B&KLg;#Wd!CKK~!-o3}g zWRe+~H#30}7x52w@$NhS`#umQ`KU2*(cXrG5Pxd|g~55s%SzyoXzNGlW9{JQ4Qo z-OXn^HZ$XS0I0E%jJU4DH~UX>_pbqxaVOAg5x6rj&fqVnSiU@gV@EiAyocVtn>43l z!Ql$r9)87@AHHKtM?1c+ixF$B`T383Xj{1~m^_QNmIT@9*Q8QOj1eyM{l@C%Budr3 zCF$lkkA|MH^^-K9ncEx33e^=YpSc|$u~7RUVNm2n zkOn=FGUXZHG~|c~6?PVYWhuVey^W#glT78jz%iMdVerK?sb$HclL|V&{er)TCu;Jt zIgkFQQ*27FLmOQTb!;RfBH+3X=X$R(`g|O#N-_|@Qi?A>-%iVlCd}*tu~?Me%h!4M zcr=iw1a@xkU{iV>g+gIoxMXBUA}FhN1}YSMjHxUVkw_RTAitO3`x>ovrt02}^r{5+`u`>U(HgWi zr85?6rRs{7pvoF0H*7W3Hz`Ghoi#VP5d04f+7c}iOHE^-1g*Ei?Sd^}lJ^cRXgW!hV2>ZUS($JR-7V8P4RCxXg12E&|>n>0Y-hz2~ Z-T)=~pgvr=IH&*s002ovPDHLkV1ipMm0AD* diff --git a/repo/js/PathMoraLogger路径摩拉记录/main.js b/repo/js/PathMoraLogger路径摩拉记录/main.js deleted file mode 100644 index 51b583d8..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/main.js +++ /dev/null @@ -1,257 +0,0 @@ -// 定义替换映射表 -const replacementMap = { - "监": "盐", - "卵": "卯" -}; - -// 定义所有图标的图像识别对象,每个图片都有自己的识别区域 -let CharacterMenuRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("assets/CharacterMenu.png"), 60, 991, 38, 38); - -// 定义一个函数用于识别图像 -async function recognizeImage(recognitionObject, timeout = 5000) { - log.info(`开始图像识别,超时时间: ${timeout}ms`); - let startTime = Date.now(); - while (Date.now() - startTime < timeout) { - try { - // 尝试识别图像 - let imageResult = captureGameRegion().find(recognitionObject); - if (imageResult) { - log.info(`成功识别图像,坐标: x=${imageResult.x}, y=${imageResult.y}`); - return { success: true, x: imageResult.x, y: imageResult.y }; - } - } catch (error) { - log.error(`识别图像时发生异常: ${error.message}`); - } - await sleep(500); // 短暂延迟,避免过快循环 - } - log.warn(`经过多次尝试,仍然无法识别图像`); - return { success: false }; -} - -// 定义一个函数用于识别文字并点击 -async function recognizeTextAndClick(targetText, ocrRegion, timeout = 5000) { - log.info(`开始文字识别,目标文本: ${targetText},区域: x=${ocrRegion.x}, y=${ocrRegion.y}, width=${ocrRegion.width}, height=${ocrRegion.height}`); - let startTime = Date.now(); - while (Date.now() - startTime < timeout) { - try { - // 尝试 OCR 识别 - let resList = captureGameRegion().findMulti(RecognitionObject.ocr(ocrRegion.x, ocrRegion.y, ocrRegion.width, ocrRegion.height)); // 指定识别区域 - // 遍历识别结果,检查是否找到目标文本 - for (let res of resList) { - // 后处理:根据替换映射表检查和替换错误识别的字符 - let correctedText = res.text; - for (let [wrongChar, correctChar] of Object.entries(replacementMap)) { - correctedText = correctedText.replace(new RegExp(wrongChar, 'g'), correctChar); - } - - if (correctedText.includes(targetText)) { - // 如果找到目标文本,计算并点击文字的中心坐标 - let centerX = Math.round(res.x + res.width / 2); - let centerY = Math.round(res.y + res.height / 2); - log.info(`识别到目标文本: ${correctedText},点击坐标: x=${centerX}, y=${centerY}`); - await click(centerX, centerY); - await sleep(500); // 确保点击后有足够的时间等待 - return { success: true, x: centerX, y: centerY }; - } - } - } catch (error) { - log.warn(`页面标志识别失败,正在进行重试... 错误信息: ${error.message}`); - } - await sleep(1000); // 短暂延迟,避免过快循环 - } - log.warn(`经过多次尝试,仍然无法识别文字: ${targetText}`); - return { success: false }; -} - -// 定义一个独立的函数用于在指定区域进行 OCR 识别并输出识别内容 -async function recognizeTextInRegion(ocrRegion, timeout = 5000) { - log.info(`开始 OCR 识别,区域: x=${ocrRegion.x}, y=${ocrRegion.y}, width=${ocrRegion.width}, height=${ocrRegion.height}`); - let startTime = Date.now(); - while (Date.now() - startTime < timeout) { - try { - // 在指定区域进行 OCR 识别 - let ocrResult = captureGameRegion().find(RecognitionObject.ocr(ocrRegion.x, ocrRegion.y, ocrRegion.width, ocrRegion.height)); - if (ocrResult) { - log.info(`OCR 识别成功,原始文本: ${ocrResult.text}`); - // 后处理:根据替换映射表检查和替换错误识别的字符 - let correctedText = ocrResult.text; - for (let [wrongChar, correctChar] of Object.entries(replacementMap)) { - correctedText = correctedText.replace(new RegExp(wrongChar, 'g'), correctChar); - } - log.info(`修正后文本: ${correctedText}`); - return correctedText; // 返回识别到的内容 - } else { - log.warn(`OCR 识别区域未找到内容`); - return null; // 如果 OCR 未识别到内容,返回 null - } - } catch (error) { - log.error(`OCR 摩拉数识别失败,错误信息: ${error.message}`); - } - await sleep(500); // 短暂延迟,避免过快循环 - } - log.warn(`经过多次尝试,仍然无法在指定区域识别到文字`); - return null; // 如果未识别到文字,返回 null -} - -// 定义 mora 函数 -async function mora() { - log.info("开始执行 mora 函数"); - // 设置游戏分辨率和 DPI 缩放比例 - setGameMetrics(1920, 1080, 1); - log.info("游戏分辨率和 DPI 设置完成"); - - // 返回游戏主界面 - await genshin.returnMainUi(); - log.info("返回游戏主界面"); - - // 按下 C 键 - keyPress("C"); - log.info("按下 C 键"); - await sleep(1500); - - let recognized = false; - - // 识别“角色菜单”图标或“天赋”文字 - let startTime = Date.now(); - while (Date.now() - startTime < 5000) { - // 尝试识别“角色菜单”图标 - let characterMenuResult = await recognizeImage(CharacterMenuRo, 5000); - if (characterMenuResult.success) { - await click(177, 433); - log.info("点击角色菜单图标"); - await sleep(500); - recognized = true; - break; - } - - // 尝试识别“天赋”文字 - let targetText = "天赋"; - let ocrRegion = { x: 133, y: 395, width: 115, height: 70 }; // 设置对应的识别区域 - let talentResult = await recognizeTextAndClick(targetText, ocrRegion); - if (talentResult.success) { - log.info(`点击天赋文字,坐标: x=${talentResult.x}, y=${talentResult.y}`); - recognized = true; - break; - } - - await sleep(1000); // 短暂延迟,避免过快循环 - } - - // 如果识别到了“角色菜单”或“天赋”,则识别“摩拉数值” - if (recognized) { - let ocrRegionMora = { x: 1620, y: 25, width: 152, height: 46 }; // 设置对应的识别区域 - let recognizedText = await recognizeTextInRegion(ocrRegionMora); - if (recognizedText) { - log.info(`成功识别到摩拉数值: ${recognizedText}`); - return recognizedText; // 返回识别到的摩拉数值 - } else { - log.warn("未能识别到摩拉数值。"); - } - } else { - log.warn("未能识别到角色菜单或天赋,跳过摩拉数值识别。"); - } - - await sleep(500); - await genshin.returnMainUi(); - log.info("返回游戏主界面"); - - return null; // 如果未能识别到摩拉数值,返回 null -} - -// 定义自定义函数 basename,用于获取文件名 -function basename(filePath) { - const lastSlashIndex = filePath.lastIndexOf('\\'); // 或者使用 '/',取决于你的路径分隔符 - return filePath.substring(lastSlashIndex + 1); -} - -// 主逻辑 -(async function () { - // 启用自动拾取的实时任务 - log.info("启用自动拾取的实时任务"); - dispatcher.addTimer(new RealtimeTimer("AutoPick")); - - // 从自定义配置中获取 startRouteNumber,默认值为 1 - const startRouteNumber = settings.startRouteNumber || 1; - - // 定义 pathing 文件夹路径 - const pathingFolderPath = "pathing"; - - // 定义 result 文件夹路径 - const resultFolderPath = "result"; - - // 在 for 循环之前获取一次时间 - const startTime = new Date(); - const formattedStartTime = startTime.toISOString().replace(/[:\-\.]/g, ''); - const recordFileName = `route_info_${formattedStartTime}.txt`; - const recordFilePath = resultFolderPath + '/' + recordFileName; // 使用字符串拼接 - - // 读取 pathing 文件夹中的所有文件路径 - const filePaths = file.ReadPathSync(pathingFolderPath); - log.info(`读取到的文件路径: ${filePaths}`); - - // 定义一个数组用于存储处理后的文件名 - let jsonFileNames = []; - - // 遍历文件路径数组并提取文件名 - for (const filePath of filePaths) { - const fileName = basename(filePath); // 提取文件名 - if (fileName.endsWith('.json')) { // 检查文件名是否以 .json 结尾 - jsonFileNames.push(fileName); // 存储文件名 - } - } - - // 定义一个数组用于存储每次任务的信息 - let routeInfo = []; - - // 后续逻辑:调用 mora 函数获取摩拉数值并记录到文件中 - for (let i = startRouteNumber - 1; i < jsonFileNames.length; i++) { - // 获取当前文件名 - const entryName = jsonFileNames[i]; - const pathingFilePath = pathingFolderPath + '/' + entryName; // 使用字符串拼接 - - // 获取任务开始前的摩拉数值 - let startMora = await mora(); - let startMoraText = startMora ? startMora : 'N/A'; - - // 获取开始时间 - const taskStartTime = new Date(); - log.info(`开始执行任务: ${entryName},时间: ${taskStartTime.toISOString()}`); - - // 执行路径文件 - await pathingScript.runFile(pathingFilePath); - - // 获取结束时间 - const taskEndTime = new Date(); - log.info(`完成任务: ${entryName},时间: ${taskEndTime.toISOString()},耗时: ${taskEndTime - taskStartTime}ms`); - - // 获取任务结束后的摩拉数值 - let endMora = await mora(); - let endMoraText = endMora ? endMora : 'N/A'; - let moraChange = endMora && startMora ? (endMora - startMora) : 'N/A'; - - // 记录任务信息 - const taskInfo = { - route: entryName, - moraChange: moraChange, - duration: taskEndTime - taskStartTime - }; - routeInfo.push(taskInfo); // 将任务信息添加到 routeInfo 数组中 - - // 将所有任务信息写入文件 - let allTaskInfo = 'Route\tMora Change\tDuration (ms)\n'; // 使用制表符作为分隔符 - for (const info of routeInfo) { - allTaskInfo += `${info.route}\t${info.moraChange}\t${info.duration}\n`; - } - - try { - file.writeTextSync(recordFilePath, allTaskInfo, false); // 覆盖模式 - } catch (error) { - log.error(`写入文件失败,错误信息: ${error.message}`); - } - - await sleep(1000); // 在每次尝试之间等待 1 秒 - } - - // 输出任务信息记录 - log.info(`任务信息记录已写入文件: ${recordFilePath}`); -})(); diff --git a/repo/js/PathMoraLogger路径摩拉记录/manifest.json b/repo/js/PathMoraLogger路径摩拉记录/manifest.json deleted file mode 100644 index 61db650b..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/manifest.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "manifest_version": 1, - "name": "PathMoraLogger路径摩拉记录", - "version": "1.0.1", - "description": "用于测试路线的摩拉效率,要求bgi版本不低于44.8", - "authors": [ - { - "name": "mno", - "links": "https://github.com/Bedrockx" - } - ], - "settings_ui": "settings.json", - "main": "main.js" -} \ No newline at end of file diff --git a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛01.json b/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛01.json deleted file mode 100644 index 2c451ce7..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛01.json +++ /dev/null @@ -1,392 +0,0 @@ -{ - "info": { - "name": "7020稻妻清濑岛01", - "type": "collect", - "author": "mfkvfhpdx", - "version": "1.0", - "description": "", - "bgi_version": "0.35.1" - }, - "positions": [ - { - "id": 1, - "x": -4249.091796875, - "y": -4789.59765625, - "action": "", - "move_mode": "walk", - "action_params": "", - "type": "teleport" - }, - { - "id": 2, - "x": -4188.978515625, - "y": -4857.5703125, - "action": "combat_script", - "move_mode": "fly", - "action_params": "keydown(SPACE),wait(7)", - "type": "path" - }, - { - "id": 3, - "x": -4188.978515625, - "y": -4857.5703125, - "action": "stop_flying", - "move_mode": "fly", - "action_params": "", - "type": "path" - }, - { - "id": 4, - "x": -4188.978515625, - "y": -4857.5703125, - "action": "fight", - "move_mode": "walk", - "action_params": "", - "type": "path" - }, - { - "id": 5, - "x": -4202.3515625, - "y": -4875.5673828125, - "action": "", - "move_mode": "walk", - "action_params": "", - "type": "path" - }, - { - "id": 6, - "x": -4229.779296875, - "y": -4897.8935546875, - "action": "", - "move_mode": "walk", - "action_params": "", - "type": "path" - }, - { - "id": 7, - "x": -4241.28125, - "y": -4910.771484375, - "action": "fight", - "move_mode": "walk", - "action_params": "", - "type": "path", - "locked": false - }, - { - "id": 8, - "x": -4270.17578125, - "y": -4897.2724609375, - "action": "", - "move_mode": "walk", - "action_params": "", - "type": "path" - }, - { - "id": 9, - "x": -4311.890625, - "y": -4882.1025390625, - "action": "fight", - "move_mode": "walk", - "action_params": "", - "type": "path" - }, - { - "id": 10, - "x": -4241.28125, - "y": -4910.771484375, - "action": "", - "move_mode": "walk", - "action_params": "", - "type": "path" - }, - { - "id": 11, - "x": -4217.828125, - "y": -4920.6787109375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 12, - "x": -4196.46484375, - "y": -4917.5341796875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 13, - "x": -4172.84765625, - "y": -4914.611328125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 14, - "x": -4163.556640625, - "y": -4913.2109375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 15, - "x": -4153.20703125, - "y": -4902.51953125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 16, - "x": -4142.18359375, - "y": -4888.2294921875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 17, - "x": -4121.783203125, - "y": -4857.8623046875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 18, - "x": -4108.125, - "y": -4840.505859375, - "type": "path", - "move_mode": "walk", - "action": "combat_script", - "action_params": "wait(1)", - "locked": false - }, - { - "id": 19, - "x": -4108.125, - "y": -4840.505859375, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 20, - "x": -4051.2236328125, - "y": -4735.609375, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 21, - "x": -4026.669921875, - "y": -4739.1943359375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 22, - "x": -3997.9443359375, - "y": -4706.876953125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 23, - "x": -3983.1064453125, - "y": -4688.373046875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 24, - "x": -3959.1845703125, - "y": -4691.8369140625, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 25, - "x": -3978.619140625, - "y": -4663.154296875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 26, - "x": -3971.6806640625, - "y": -4643.6025390625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 27, - "x": -3990.2529296875, - "y": -4629.626953125, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 28, - "x": -3977.4326171875, - "y": -4640.283203125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 29, - "x": -3983.3759765625, - "y": -4673.72265625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 30, - "x": -3961.4326171875, - "y": -4693.728515625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 31, - "x": -3948.0390625, - "y": -4721.1875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 32, - "x": -3924.2255859375, - "y": -4770.837890625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 33, - "x": -3911.703125, - "y": -4788.9072265625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 34, - "x": -3919.572265625, - "y": -4816.107421875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 35, - "x": -3934.9462890625, - "y": -4862.0146484375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 36, - "x": -3926.587890625, - "y": -4870.0859375, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 37, - "x": -3969.8994140625, - "y": -4896.2060546875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 38, - "x": -3991.484375, - "y": -4909.9775390625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 39, - "x": -4014.9609375, - "y": -4924.654296875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 40, - "x": -4054.8251953125, - "y": -4937.708984375, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 41, - "x": -4043.1259765625, - "y": -4897.3740234375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 42, - "x": -4030.5625, - "y": -4890.814453125, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - } - ] -} \ No newline at end of file diff --git a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛02.json b/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛02.json deleted file mode 100644 index 1924e76f..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛02.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "info": { - "name": "7020稻妻清濑岛02", - "type": "collect", - "author": "mfkvfhpdx", - "version": "1.0", - "description": "", - "bgi_version": "0.35.1" - }, - "positions": [ - { - "id": 1, - "x": -4251.88671875, - "y": -4785.4658203125, - "type": "teleport", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 2, - "x": -4217.908203125, - "y": -4992.2841796875, - "type": "path", - "move_mode": "fly", - "action": "combat_script", - "action_params": "keydown(SPACE),wait(4.8)", - "locked": false - }, - { - "id": 3, - "x": -4217.908203125, - "y": -4992.2841796875, - "type": "path", - "move_mode": "fly", - "action": "stop_flying", - "action_params": "", - "locked": false - }, - { - "id": 4, - "x": -4217.908203125, - "y": -4992.2841796875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 5, - "x": -4243.43359375, - "y": -4987.2919921875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 6, - "x": -4256.177734375, - "y": -4985.599609375, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 7, - "x": -4292.771484375, - "y": -5011.548828125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 8, - "x": -4300.216796875, - "y": -5027.49609375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 9, - "x": -4314.388671875, - "y": -5053.8310546875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 10, - "x": -4307.40625, - "y": -5063.458984375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 11, - "x": -4282.083984375, - "y": -5082.322265625, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 12, - "x": -4248.908203125, - "y": -5096.0546875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - } - ] -} \ No newline at end of file diff --git a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛03.json b/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛03.json deleted file mode 100644 index 5b96e27d..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛03.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "info": { - "name": "7020稻妻清濑岛03", - "type": "collect", - "author": "mfkvfhpdx", - "version": "1.0", - "description": "", - "bgi_version": "0.35.1" - }, - "positions": [ - { - "id": 1, - "x": -4472.234375, - "y": -4577.8359375, - "type": "teleport", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 2, - "x": -4455.9765625, - "y": -4594.8212890625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 3, - "x": -4422.591796875, - "y": -4591.1064453125, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 4, - "x": -4471.634765625, - "y": -4586.94921875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 5, - "x": -4503.013671875, - "y": -4611.1064453125, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 6, - "x": -4530.8515625, - "y": -4623.6923828125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 7, - "x": -4521.525390625, - "y": -4665.9130859375, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "", - "locked": false - }, - { - "id": 8, - "x": -4521.525390625, - "y": -4665.9130859375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 9, - "x": -4520.18359375, - "y": -4684.240234375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 10, - "x": -4532.75390625, - "y": -4751.3681640625, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 11, - "x": -4476.91796875, - "y": -4781.0576171875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 12, - "x": -4463.6796875, - "y": -4792.8447265625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 13, - "x": -4463.33984375, - "y": -4803.2998046875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - } - ] -} \ No newline at end of file diff --git a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛04.json b/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛04.json deleted file mode 100644 index 2e2482a5..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛04.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "info": { - "name": "7020稻妻清濑岛04", - "type": "collect", - "author": "mfkvfhpdx", - "version": "1.0", - "description": "", - "bgi_version": "0.35.1" - }, - "positions": [ - { - "id": 1, - "x": -4472.314453125, - "y": -4577.4345703125, - "type": "teleport", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 2, - "x": -4476.04296875, - "y": -4559.048828125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 3, - "x": -4523.548828125, - "y": -4547.42578125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 4, - "x": -4559.6875, - "y": -4577.6591796875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 5, - "x": -4607.18359375, - "y": -4622.7119140625, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 6, - "x": -4619.189453125, - "y": -4597.4150390625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 7, - "x": -4591.73828125, - "y": -4541.080078125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 8, - "x": -4591.0234375, - "y": -4538.84375, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - } - ] -} \ No newline at end of file diff --git a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛05.json b/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛05.json deleted file mode 100644 index 0704be63..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛05.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "info": { - "name": "7020稻妻清濑岛05", - "type": "collect", - "author": "mfkvfhpdx", - "version": "1.0", - "description": "", - "bgi_version": "0.35.1" - }, - "positions": [ - { - "id": 1, - "x": -4171.080078125, - "y": -4570.87109375, - "type": "teleport", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 2, - "x": -4189.345703125, - "y": -4486.4248046875, - "type": "path", - "move_mode": "fly", - "action": "stop_flying", - "action_params": "", - "locked": false - }, - { - "id": 3, - "x": -4189.345703125, - "y": -4486.4248046875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 4, - "x": -4208.576171875, - "y": -4498.3935546875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 5, - "x": -4258.6484375, - "y": -4538.7763671875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - } - ] -} \ No newline at end of file diff --git a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛07.json b/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛07.json deleted file mode 100644 index 6c43b8b1..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛07.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "info": { - "name": "7020稻妻清濑岛07", - "type": "collect", - "author": "mfkvfhpdx", - "version": "1.0", - "description": "", - "bgi_version": "0.35.1" - }, - "positions": [ - { - "id": 1, - "x": -4443.91796875, - "y": -4290.3603515625, - "type": "teleport", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 2, - "x": -4502.015625, - "y": -4302.048828125, - "type": "path", - "move_mode": "fly", - "action": "stop_flying", - "action_params": "" - }, - { - "id": 3, - "x": -4508.033203125, - "y": -4272.958984375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 4, - "x": -4517.001953125, - "y": -4262.94140625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 5, - "x": -4499.970703125, - "y": -4260.5576171875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 6, - "x": -4488.32421875, - "y": -4243.296875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 7, - "x": -4478.50390625, - "y": -4236.0693359375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 8, - "x": -4424.671875, - "y": -4267.8076171875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - } - ] -} \ No newline at end of file diff --git a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛08.json b/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛08.json deleted file mode 100644 index 207426f4..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛08.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "info": { - "name": "7020稻妻清濑岛08", - "type": "collect", - "author": "mfkvfhpdx", - "version": "1.0", - "description": "", - "bgi_version": "0.35.1" - }, - "positions": [ - { - "id": 1, - "x": -4184.9375, - "y": -4244.5234375, - "type": "teleport", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 2, - "x": -4168.78125, - "y": -4275.720703125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 3, - "x": -4160.552734375, - "y": -4280.341796875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 4, - "x": -4145.5625, - "y": -4283.8203125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 5, - "x": -4120.990234375, - "y": -4281.5, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 6, - "x": -4090.8291015625, - "y": -4259.6328125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 7, - "x": -4099.908203125, - "y": -4231.564453125, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - } - ] -} \ No newline at end of file diff --git a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛09.json b/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛09.json deleted file mode 100644 index fc1d463d..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛09.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "info": { - "name": "7020稻妻清濑岛09", - "type": "collect", - "author": "mfkvfhpdx", - "version": "1.0", - "description": "", - "bgi_version": "0.35.1" - }, - "positions": [ - { - "id": 1, - "x": -3891.5595703125, - "y": -4389.912109375, - "type": "teleport", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 2, - "x": -3837.9765625, - "y": -4423.3623046875, - "type": "path", - "move_mode": "fly", - "action": "stop_flying", - "action_params": "", - "locked": false - }, - { - "id": 3, - "x": -3837.9765625, - "y": -4423.3623046875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 4, - "x": -3848.685546875, - "y": -4432.298828125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 5, - "x": -3878.26953125, - "y": -4460.1044921875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 6, - "x": -3862.830078125, - "y": -4497.224609375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 7, - "x": -3849.4736328125, - "y": -4482.794921875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - } - ] -} \ No newline at end of file diff --git a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛12.json b/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛12.json deleted file mode 100644 index 6cfffcff..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/pathing/7020稻妻清濑岛12.json +++ /dev/null @@ -1,300 +0,0 @@ -{ - "info": { - "name": "7020稻妻清濑岛12", - "type": "collect", - "author": "mfkvfhpdx", - "version": "1.0", - "description": "", - "bgi_version": "0.35.1" - }, - "positions": [ - { - "id": 1, - "x": -4251.4609375, - "y": -4787.4423828125, - "action": "", - "move_mode": "walk", - "action_params": "", - "type": "teleport" - }, - { - "id": 2, - "x": -4269.61328125, - "y": -4813.6533203125, - "action": "", - "move_mode": "fly", - "action_params": "", - "type": "path" - }, - { - "id": 3, - "x": -4295.41796875, - "y": -4822.5380859375, - "action": "combat_script", - "move_mode": "fly", - "action_params": "w(40)", - "type": "path" - }, - { - "id": 4, - "x": -4622.853515625, - "y": -4969.9013671875, - "action": "stop_flying", - "move_mode": "fly", - "action_params": "", - "type": "path" - }, - { - "id": 5, - "x": -4640.1484375, - "y": -4983.84375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 6, - "x": -4651.146484375, - "y": -4995.228515625, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 7, - "x": -4654.9453125, - "y": -4980.6826171875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 8, - "x": -4645.830078125, - "y": -4973.2841796875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 9, - "x": -4666.68359375, - "y": -4970.2265625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 10, - "x": -4698.076171875, - "y": -4976.5078125, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 11, - "x": -4685.646484375, - "y": -4974.330078125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 12, - "x": -4701.359375, - "y": -4938.51953125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 13, - "x": -4705.05859375, - "y": -4925.9443359375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 14, - "x": -4718.501953125, - "y": -4918.5517578125, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 15, - "x": -4722.77734375, - "y": -4896.4013671875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 16, - "x": -4754.5078125, - "y": -4861.1123046875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 17, - "x": -4779.59765625, - "y": -4844.501953125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 18, - "x": -4792.751953125, - "y": -4855.8525390625, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 19, - "x": -4789.787109375, - "y": -4843.623046875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 20, - "x": -4797.31640625, - "y": -4809.94921875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 21, - "x": -4780.703125, - "y": -4789.9921875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 22, - "x": -4738.82421875, - "y": -4773.1884765625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 23, - "x": -4730.986328125, - "y": -4758.78125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 24, - "x": -4703.94140625, - "y": -4754.0576171875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 25, - "x": -4662.0078125, - "y": -4748.419921875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 26, - "x": -4649.091796875, - "y": -4749.318359375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 27, - "x": -4630.181640625, - "y": -4714.640625, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 28, - "x": -4635.330078125, - "y": -4723.255859375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 29, - "x": -4628.392578125, - "y": -4759.19140625, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 30, - "x": -4606.96484375, - "y": -4780.1611328125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 31, - "x": -4600.208984375, - "y": -4797.380859375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 32, - "x": -4607.994140625, - "y": -4851.9462890625, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - } - ] -} \ No newline at end of file diff --git a/repo/js/PathMoraLogger路径摩拉记录/pathing/7022稻妻鹤冠05.json b/repo/js/PathMoraLogger路径摩拉记录/pathing/7022稻妻鹤冠05.json deleted file mode 100644 index 78b01283..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/pathing/7022稻妻鹤冠05.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "info": { - "name": "7022稻妻鹤冠05", - "type": "collect", - "author": "mfkvfhpdx", - "version": "1.0", - "description": "", - "bgi_version": "0.35.1" - }, - "positions": [ - { - "id": 1, - "x": -2811.3515625, - "y": -6048.8544921875, - "type": "teleport", - "move_mode": "walk", - "action": "", - "action_params": "", - "locked": false - }, - { - "id": 2, - "x": -2835.333984375, - "y": -6087.1005859375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "", - "locked": false - }, - { - "id": 3, - "x": -2865.9521484375, - "y": -6100.3896484375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "", - "locked": false - }, - { - "id": 4, - "x": -2877.912109375, - "y": -6084.5029296875, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "", - "locked": false - }, - { - "id": 5, - "x": -2893.533203125, - "y": -6084.857421875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "", - "locked": false - }, - { - "id": 6, - "x": -2905.734375, - "y": -6113.578125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 7, - "x": -2938.4482421875, - "y": -6076.5302734375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 8, - "x": -2937.796875, - "y": -6066.765625, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 9, - "x": -2946.8427734375, - "y": -6084.103515625, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 10, - "x": -2968.6227275673227, - "y": -6060.5, - "type": "path", - "move_mode": "fly", - "action": "stop_flying", - "action_params": "" - }, - { - "id": 11, - "x": -2972.94921875, - "y": -6059.4375, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - }, - { - "id": 12, - "x": -2978.5927734375, - "y": -6035.0517578125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 13, - "x": -2958.5859375, - "y": -6018.224609375, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 14, - "x": -2930.0595703125, - "y": -6032.0576171875, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 15, - "x": -2911.685546875, - "y": -6040.9033203125, - "type": "path", - "move_mode": "walk", - "action": "", - "action_params": "" - }, - { - "id": 16, - "x": -2888.931640625, - "y": -6028.6396484375, - "type": "path", - "move_mode": "walk", - "action": "fight", - "action_params": "" - } - ] -} \ No newline at end of file diff --git a/repo/js/PathMoraLogger路径摩拉记录/settings.json b/repo/js/PathMoraLogger路径摩拉记录/settings.json deleted file mode 100644 index 805433be..00000000 --- a/repo/js/PathMoraLogger路径摩拉记录/settings.json +++ /dev/null @@ -1,8 +0,0 @@ -[ - { - "name": "startRouteNumber", - "type": "input-text", - "label": "从第几条路径开始运行(默认1)", - "default": "1" - } -]