mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-20 04:10:00 +08:00
@@ -1,8 +1,8 @@
|
||||
// 原神每日委托自动执行脚本 - 常量定义模块
|
||||
var Constants = {
|
||||
// 版本和编译信息
|
||||
VERSION: "0.98.8",
|
||||
BUILD_TIME: "2025.10.04",
|
||||
VERSION: "0.98.9",
|
||||
BUILD_TIME: "2025.10.07",
|
||||
|
||||
// 文件路径常量
|
||||
SUPPORT_LIST_PATH: "name.json",
|
||||
@@ -15,8 +15,8 @@ var Constants = {
|
||||
// 图像识别相关常量
|
||||
COMPLETED_IMAGE_PATH: "Data/RecognitionObject/Completed.png",
|
||||
UNCOMPLETED_IMAGE_PATH: "Data/RecognitionObject/UnCompleted.png",
|
||||
TALK_EXIT_IMAGE_PATH:"/Data/RecognitionObject/TalkExit.png",
|
||||
TALK_ICON_IMAGE_PATH:"/Data/RecognitionObject/TalkIcon.png",
|
||||
TALK_EXIT_IMAGE_PATH:"Data/RecognitionObject/TalkExit.png",
|
||||
TALK_ICON_IMAGE_PATH:"Data/RecognitionObject/TalkIcon.png",
|
||||
|
||||
// 基础配置常量
|
||||
MIN_TEXT_LENGTH: 3, // 最小文本长度
|
||||
|
||||
@@ -63,7 +63,7 @@ var Utils = {
|
||||
try {
|
||||
// 参数验证
|
||||
if (!ocrRegion || typeof ocrRegion !== "object") {
|
||||
log.error("OCR区域参数不能为空且必须是对象, 收到: " + typeof ocrRegion);
|
||||
log.error("TemplateMatch区域参数不能为空且必须是对象, 收到: " + typeof ocrRegion);
|
||||
return { count: 0 };
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ var Utils = {
|
||||
typeof HEIGHT !== "number"
|
||||
) {
|
||||
log.error(
|
||||
"OCR区域的X、Y、WIDTH、HEIGHT必须都是数字, 收到: X=" +
|
||||
"TemplateMatch区域的X、Y、WIDTH、HEIGHT必须都是数字, 收到: X=" +
|
||||
X +
|
||||
", Y=" +
|
||||
Y +
|
||||
@@ -95,7 +95,7 @@ var Utils = {
|
||||
// 数值合理性验证
|
||||
if (X < 0 || Y < 0 || WIDTH <= 0 || HEIGHT <= 0) {
|
||||
log.error(
|
||||
"OCR区域参数必须为正数, 收到: X=" +
|
||||
"TemplateMatch区域参数必须为正数, 收到: X=" +
|
||||
X +
|
||||
", Y=" +
|
||||
Y +
|
||||
@@ -125,7 +125,7 @@ var Utils = {
|
||||
|
||||
return results;
|
||||
} catch (error) {
|
||||
log.error("easyOCR识别出错: {error}", error.message);
|
||||
log.error("TemplateMatch识别出错: {error}", error.message);
|
||||
return { count: 0 };
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "(对话+成就)全自动蒙德地区每日委托",
|
||||
"version": "0.98.7",
|
||||
"version": "0.98.9",
|
||||
"tags": ["委托","对话","战斗","成就","历练点"],
|
||||
"description": "自动完成每日委托、自动识别委托内容、自动追踪战斗委托、自动完成对话委托、自动获得到隐藏成就。使用前请阅读README.md获取详细说明和常见问题解答。目前项目急需人手,有意者可加群。感谢云闲vsv & 换苏伟u & 小鹰划船不用桨 & 塔台 & 未知_ 的共同开发",
|
||||
"authors": [
|
||||
|
||||
Reference in New Issue
Block a user