Files
MaaAssistantArknights/resource/config.json

431 lines
14 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"version": "0.4",
"options": {
"identifyCache": true,
"identifyCache_Doc": "图像识别缓存功能开启后可以大幅降低CPU消耗但需要保证要识别的按钮每次的位置不会改变。true-开启false-关闭默认true",
"taskIdentifyDelay": 1000,
"taskIdentifyDelay_Doc": "识别任务间的延迟越快识别频率越快但会增加CPU消耗。单位毫秒默认1000",
"taskControlDelay": 300,
"taskControlDelay_Doc": "点击任务间延迟越快点的越快但是太快了句柄可能不响应。单位毫秒默认300",
"printWindow": true,
"printWindow_Doc": "截图功能开启后每次结算界面会截图到screenshot目录下。true-开启false-关闭默认true",
"printWindowDelay": 3000,
"printWindowDelay_Doc": "截图延时每次到结算界面掉落物品不是一次性出来的有个动画所以需要等一会再截图。单位毫秒默认3000",
"printWindowCropOffset": 5,
"printWindowCropOffset_Doc": "截图额外裁剪再额外把边框裁减掉一圈不然企鹅物流有可能识别不出来。单位像素默认5",
"controlDelayRange": [
0,
0
],
"controlDelayRange_Doc": "点击随机延时:每次点击操作会进行随机延时,降低封号风险(好像也没听说过谁被封号的)。格式为 [ 最小延时, 最大延时 ]单位为毫秒。例如想设置3~5秒延时即修改为[ 3000, 5000 ]默认0~0",
"ocrGpuIndex": -1,
"ocrGpuIndex_Doc": "OcrLite使用GPU编号-1(使用CPU)/0(使用GPU0)/1(使用GPU1)/...GPU选择失败时则使用CPU进行计算。默认-1",
"ocrThreadNumber": 4,
"ocrThreadNumber_Doc": "OcrLite线程数量。默认4"
},
"recruitOcrReplace": [
[ "沮击", "狙击" ],
[ "泪击", "狙击" ],
[ "都出", "输出" ],
[ "都任", "输出" ]
],
"infrastOcrReplace": [
[ "蛇居箱", "蛇屠箱" ],
[ "炎烤", "炎熔" ]
],
"handle_Doc": "下面的和模拟器窗口捕获逻辑有关,不需要修改",
"handle": {
"BlueStacks": {
"window": [
{
"class": "BS2CHINAUI",
"window": "BlueStacks App Player"
}
],
"view": [
{
"class": "BS2CHINAUI",
"window": "BlueStacks App Player"
}
],
"control": [
{
"class": "BS2CHINAUI",
"window": "BlueStacks App Player"
}
],
"adb": {
"path": "[EmulatorPath]Engine\\ProgramFiles\\HD-Adb.exe",
"connect": "[Adb] connect 127.0.0.1:5555",
"click": "[Adb] -s 127.0.0.1:5555 shell input tap [x] [y]",
"swipe": "[Adb] -s 127.0.0.1:5555 shell input swipe [x1] [y1] [x2] [y2] 2000",
"display": "[Adb] -s 127.0.0.1:5555 shell dumpsys window displays | grep init= | awk ' { print $3 } '",
"displayRegex": "cur=%dx%d",
"screencap": "[Adb] -s 127.0.0.1:5555 shell screencap /sdcard/meo_screen.png",
"pullscreen": "[Adb] -s 127.0.0.1:5555 pull /sdcard/meo_screen.png [Filename]"
},
"xOffset": 11,
"yOffset": 46,
"rightOffset": 11,
"bottomOffset": 10
},
"MuMuEmulator": {
"window": [
{
"class": "Qt5QWindowIcon",
"window": "明日方舟 - MuMu模拟器"
}
],
"view": [
{
"class": "Qt5QWindowIcon",
"window": "明日方舟 - MuMu模拟器"
}
],
"control": [
{
"class": "Qt5QWindowIcon",
"window": "明日方舟 - MuMu模拟器"
}
],
"adb": {
"path": "[EmulatorPath]..\\vmonitor\\bin\\adb_server.exe",
"connect": "[Adb] connect 127.0.0.1:7555",
"click": "[Adb] -s 127.0.0.1:7555 shell input tap [x] [y]",
"swipe": "[Adb] -s 127.0.0.1:7555 shell input swipe [x1] [y1] [x2] [y2] 2000",
"display": "[Adb] -s 127.0.0.1:7555 shell dumpsys window displays | grep init= | awk ' { print $3 } '",
"displayRegex": "cur=%dx%d",
"screencap": "[Adb] -s 127.0.0.1:7555 shell screencap /sdcard/meo_screen.png",
"pullscreen": "[Adb] -s 127.0.0.1:7555 pull /sdcard/meo_screen.png [Filename]"
},
"xOffset": 0,
"yOffset": 36,
"rightOffset": 0,
"bottomOffset": 0
}
},
"tasks_Doc": "下面的和任务队列执行逻辑有关,不需要修改",
"tasks": {
"SanityBegin": {
"algorithm": "justreturn",
"type": "doNothing",
"next": [
"UsePrts",
"StartButton1",
"StartButton2",
"PRTS",
"UseMedicine",
"UseStone",
"EndOfAction"
]
},
"UsePrts": {
"template": "UsePrts.png",
"templThreshold": 0.8,
"type": "clickSelf",
"next": [
"StartButton1"
]
},
"StartButton1": {
"template": "StartButton1.png",
"templThreshold": 0.8,
"type": "clickSelf",
"next": [
"StartButton2",
"UseMedicine",
"UseStone"
]
},
"StartButton2": {
"template": "StartButton2.png",
"type": "clickSelf",
"rearDelay": 20000,
"templThreshold": 0.95,
"next": [
"StartButton2",
"PRTS"
]
},
"PRTS": {
"template": "PRTS.png",
"type": "doNothing",
"rearDelay": 5000,
"next": [
"PRTS",
"PrtsErrorConfirm",
"EndOfAction",
"WaitAfterPRTS"
]
},
"WaitAfterPRTS": {
"rearDelay": 3000,
"algorithm": "justreturn",
"type": "doNothing",
"next": [
"PRTS",
"EndOfAction",
"ClickCornerAfterPRTS"
]
},
"ClickCornerAfterPRTS": {
"ClickCorner_Doc": "点击右下角,既不会点到掉落物品,又能点到蓝色开始按钮(为了容错)的一块位置。",
"algorithm": "justreturn",
"type": "clickRect",
"specificArea": [
1100,
700,
150,
30
],
"next": [
"EndOfAction",
"Loading",
"StartButton1",
"StartButton2",
"UseMedicine",
"UseStone",
"ClickCornerAfterPRTS"
]
},
"EndOfAction": {
"algorithm": "OcrDetect",
"text": [ "行动结束" ],
"type": "printWindow",
"next": [
"ClickCorner"
]
},
"ClickCorner": {
"ClickCorner_Doc": "点击右下角,既不会点到掉落物品,又能点到蓝色开始按钮(为了容错)的一块位置。",
"algorithm": "justreturn",
"type": "clickRect",
"specificArea": [
1100,
700,
150,
30
],
"next": [
"Loading",
"StartButton1",
"StartButton2",
"UseMedicine",
"UseStone",
"EndOfAction"
]
},
"Loading": {
"template": "Loading.png",
"templThreshold": 0.8,
"type": "doNothing",
"next": [
"StartButton1"
]
},
"UseMedicine": {
"template": "UseMedicine.png",
"type": "doNothing",
"next": [
"MedicineConfirm"
]
},
"MedicineConfirm": {
"template": "MedicineConfirm.png",
"type": "clickSelf",
"reduceOtherTimes": [
"StartButton1"
],
"next": [
"StartButton1"
]
},
"UseStone": {
"template": "UseStone.png",
"type": "doNothing",
"next": [
"StoneConfirm"
]
},
"StoneConfirm": {
"template": "MedicineConfirm.png",
"type": "clickSelf",
"maxTimes": 0,
"reduceOtherTimes": [
"StartButton1"
],
"next": [
"StartButton1"
]
},
"PrtsErrorConfirm": {
"template": "PrtsErrorConfirm.png",
"type": "doNothing",
"next": [
"AbandonAction"
]
},
"AbandonAction": {
"template": "AbandonAction.png",
"type": "clickSelf",
"reduceOtherTimes": [
"StartButton1",
"StartButton2",
"Loading"
],
"next": [
"EndOfAction"
]
},
"VisitBegin": {
"algorithm": "justreturn",
"type": "doNothing",
"next": [
"Friends",
"FriendsList",
"StartToVisit",
"VisitNext",
"VisitNextBlack",
"ReturnToFriends"
]
},
"ReturnToFriends": {
"template": "Return.png",
"templThreshold": 0.85,
"histThreshold": 0.85,
"type": "clickSelf",
"next": [
"Friends",
"ReturnToFriends"
]
},
"Friends": {
"template": "Friends.png",
"preDelay": 1000,
"type": "clickSelf",
"next": [
"FriendsList"
]
},
"FriendsList": {
"template": "FriendsList.png",
"type": "clickSelf",
"next": [
"StartToVisit"
]
},
"StartToVisit": {
"template": "StartToVisit.png",
"type": "clickSelf",
"rearDelay": 5000,
"next": [
"VisitNext"
]
},
"VisitNext": {
"template": "VisitNext.png",
"type": "clickSelf",
"rearDelay": 3000,
"exceededNext": [
"ReturnToMall"
],
"next": [
"VisitLimited",
"VisitNext",
"VisitNextBlack",
"VisitNextOcr"
]
},
"VisitNextOcr": {
"algorithm": "OcrDetect",
"text": [ "访问下位" ],
"type": "clickSelf",
"rearDelay": 3000,
"exceededNext": [
"ReturnToMall"
],
"next": [
"VisitLimited",
"VisitNext",
"VisitNextBlack",
"VisitNextOcr"
]
},
"ReturnToMall": {
"template": "Return.png",
"type": "clickSelf",
"next": [
"Mall",
"ReturnToMall",
"ReturnToMallConfirm"
]
},
"ReturnToMallConfirm": {
"template": "PopupConfirm.png",
"type": "clickSelf",
"rearDelay": 5000,
"next": [
"ReturnToMall"
]
},
"Mall": {
"template": "Mall.png",
"type": "clickSelf",
"next": [
"CreditStore"
]
},
"CreditStore": {
"template": "CreditStore.png",
"templThreshold": 0.85,
"rearDelay": 1000,
"type": "clickSelf",
"next": [
"CollectCredit",
"Stop"
]
},
"CollectCredit": {
"template": "CollectCredit.png",
"type": "clickSelf",
"next": [
"Stop"
]
},
"VisitLimited": {
"algorithm": "OcrDetect",
"text": [ "今日参与", "已达上限" ],
"type": "doNothing",
"next": [
"ReturnToMall"
]
},
"VisitNextBlack": {
"template": "VisitNextBlack.png",
"type": "doNothing",
"next": [
"ReturnToMall"
]
},
"Stop": {
"algorithm": "justreturn",
"type": "stop",
"next": []
},
"RecruitTime": {
"template": "RecruitTimeReduce.png",
"type": "clickRect",
"specificArea": [ 391, 279, 129, 44 ],
"next": [
"Stop"
]
},
"Listless": {
"template": "Listless.png",
"type": "clickSelf",
"next": [
"Stop"
]
}
}
}