747929791 / MajsoulAI

以JianYangAI作后端,进行在线雀魂对局
MIT License
272 stars 59 forks source link

运行AI对局中会出现GUIInterface.discardTile tile not found. #29

Open zwzwcz opened 3 years ago

zwzwcz commented 3 years ago

send: b'\x00' recv: send: b'\x00' recv: send: b'\x00' recv: recv: send: b'\x00' send: b'\x00' send: b'\x00' recv: send: b'\x00' send: b'\x00' send: b'\x00' recv: recv: send: b'\x00' send: b'\x00' recv: recv: recv: send: b'\x00' send: b'\x00' send: b'\x00' send: b'\x00' send: b'\x00' recv: send: b'\x00' send: b'\x00' recv: send: b'\x00' recv: recv: send: b'\x00' send: b'\x00' send: b'\x00' recv: recv: send: b'\x00' recv: recv: recv: send: b'\x00' send: b'\x00' send: b'\x00' recv: send: b'\x00' recv: send: b'\x00' send: b'\x00' recv: recv: send: b'\x00' recv: send: b'\x00' send: b'\x00' recv: send: b'\x00' send: b'\x00' send: b'\x00' recv: send: b'\x00' send: b'\x00' recv: recv: send: b'\x00' send: b'\x00' recv: send: b'\x00' send: b'\x00' send: b'\x00' send: b'\x00' recv: send: b'\x00' send: b'\x00' recv: recv: recv: send: b'\x00' send: b'\x00' recv: send: b'\x00' send: b'\x00' recv: send: b'\x00' recv: send: b'\x00' send: b'\x00' send: b'\x00' recv: recv: recv: send: b'\x00' send: b'\x00' recv: recv: send: b'\x00' send: b'\x00' send: b'\x00' recv: send: b'\x00' send: b'\x00' recv: clickCandidateMeld AI_combination ('0m', '4m') clickCandidateMeld tiles: [('4m', (1211, 695)), ('0m', (1262, 695)), ('4m', (133 9, 695)), ('5m', (1391, 695))] recv: recv: send: b'\x00' recv: recv: recv: recv: recv: send: b'\x00' send: b'\x00' recv: recv: recv: send: b'\x00' send: b'\x00' recv: send: b'\x00' send: b'\x00' recv: send: b'\x00' send: b'\x00' recv: recv: send: b'\x00' send: b'\x00' recv: send: b'\x00' send: b'\x00' recv: send: b'\x00' recv: recv: send: b'\x00' recv: Traceback (most recent call last): File "G:\MajsoulAI-master\main.py", line 744, in MainLoop(level=level) File "G:\MajsoulAI-master\main.py", line 715, in MainLoop aiWrapper.recv(data) File "G:\MajsoulAI-master\main.py", line 134, in recv self._eventHandler(msg.decode('utf-8')) File "G:\MajsoulAI-master\main.py", line 159, in _eventHandler self.on_DiscardTile(d) File "G:\MajsoulAI-master\main.py", line 593, in on_DiscardTile self.actionDiscardTile(tile) File "G:\MajsoulAI-master\majsoul_wrapper\action\action.py", line 191, in acti onDiscardTile 'GUIInterface.discardTile tile not found. L:', L, 'tile:', tile) Exception: ('GUIInterface.discardTile tile not found. L:', [('3m', (857, 850)), ('6m', (918, 850)), ('6s', (979, 850)), ('6s', (1040, 850)), ('6s', (1101, 850)) ], 'tile:', '5m') 就是正常打着偶尔会蹦出这个报错,没搞懂具体原因,我用置顶工具置顶了页面也还是会出现这个问题。。。

zwzwcz commented 3 years ago

把所有装备替换成初始了能解决这个98%的问题,还有一种比较极端的情况是,AI大量副露之后摸牌可能会低概率出现这种情况,有可能两三把会遇到,也可能打一天也没遇到,看脸。。。

bailuWX commented 2 years ago

我也是这个错误,很玄学,有时候不出现,有时候经常出现

QsamaQ commented 2 years ago

我触发是遇到了食替的问题