MaaFramework icon indicating copy to clipboard operation
MaaFramework copied to clipboard

使用 agent 后的 maa.log 没看懂

Open Windsland52 opened this issue 9 months ago • 1 comments

原问题链接 https://github.com/MaaXYZ/M9A/issues/398

通过查看 debug/custom 下的log可以找到第一个通过自定义动作 Screenshot 截图的时间在 2025-04-01 20:43:45 附近,看到截图内容为新功能 Lucidscape 中战斗的部分

"LucidscapeCombatStart": {
        "recognition": "OCR",
        "expected": "开始行动",
        "roi": [
            1054,
            637,
            126,
            32
        ],
        "only_rec": true,
        "action": "Click",
        "timeout": 60000,
        "rate_limit": 10000,
        "next": [
            "LucidscapeFailed",
            "LucidscapeVictory"
        ],
        "interrupt": [
            "Combating",
            "LucidscapeSkipWarning"
        ]
    }

中。于是到 maa.log 中查看具体情况,发现该时间附近的Screenshot 在

[2025-04-01 20:43:44.352][TRC][Px10320][Tx53379][MaaAgent/Transceiver.h][L33][MaaNS::AgentNS::Transceiver::send_and_recv] enter loop [req_id=16537] [loop_count=0] 
[2025-04-01 20:43:44.352][DBG][Px10320][Tx53379][Transceiver.cpp][L68][MaaNS::AgentNS::Transceiver::recv] [ipc_addr_=ipc://C:/Users/LH/AppData/Local/Temp//maafw-agent-lyvxHNWP.sock] | enter 
[2025-04-01 20:43:44.354][TRC][Px10320][Tx53379][Transceiver.cpp][L84][MaaNS::AgentNS::Transceiver::recv] [j={
    "_TaskerGetRecoResultReverseResponse": 1,
    "algorithm": "DirectHit",
    "box": [
        0,
        0,
        0,
        0
    ],
    "detail": null,
    "draws": [
    ],
    "has_value": true,
    "name": "Screenshot",
    "raw": "",
    "reco_id": 0
}] 

由于该自定义动作仅在 default_pipeline.json 中的on_error出现,作为超时记录,故判断当前任务有超时,但从这条log往上不远处便可发现匹配到 Combating 过,而且"timeout": 60000,并不应该超时,故想询问究竟是出了什么问题

Windsland52 avatar Apr 01 '25 17:04 Windsland52

和未使用agent但使用custom时的log对比了一下,发现相比未使用agent的log,使用agent的log少了没使用custom recognition或custom action节点的节点命中等信息

Windsland52 avatar Apr 06 '25 17:04 Windsland52

这个是不是 MFA 没 log 那个问题来着

MistEO avatar May 08 '25 08:05 MistEO

这个是maa.log

Windsland52 avatar May 08 '25 10:05 Windsland52

mfa的log信息量很小,很容易看

Windsland52 avatar May 08 '25 10:05 Windsland52

maa.log 最近的log

Windsland52 avatar May 08 '25 11:05 Windsland52

mfa修了

Windsland52 avatar May 25 '25 07:05 Windsland52