Closed a08381 closed 3 years ago
AI在算出第一张牌之后程序停止运行。
AI认为我应该出西风。
AI的logs:
2020-10-08 15:23:34: Players are: [tst-tio - 1級 - None, user1 - 1級 - None, user2 - 1級 - None, user3 - 新人 - None] 2020-10-08 15:24:07: -------------------------------------------------- 2020-10-08 15:24:07: Round number:0, Honba sticks:0, Bonus tile indicator:? 2020-10-08 15:24:07: Players: [tst-tio - 1級 - 25000, user1 - 1級 - 25000, user2 - 1級 - 25000, user3 - 新人 - 25000] 2020-10-08 15:24:07: Dealer: tst-tio - 1級 - 25000 2020-10-08 15:24:07: Round wind: ? 2020-10-08 15:24:07: Player wind: ? 2020-10-08 15:24:07: 2020-10-08 15:24:07: 2020-10-08 15:24:07: [Bot] draws a tile: ????????????? + ? 2020-10-08 15:24:07: ?[Waiting prediction] 2020-10-08 15:24:07: ?[Shantins]: NM: 3 PH: 3 NO19: 5 PPH: 7 7P: 5 QH: 5 2020-10-08 15:24:07: [Bot] discards: + ? 2020-10-08 15:24:08: [Bot] hand tiles after discarding: ????????????? 2020-10-08 15:24:08: 2020-10-08 15:24:08: Remaining tiles: 69 2020-10-08 15:24:08: -------------------------------------------------- 2020-10-08 15:24:08: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 [WinError 10054] 远程主机强迫关闭了一个现有的连接。 Exception in thread Thread-1: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 Traceback (most recent call last): File "E:\Download\MajsoulAI\JianYangAI\client\tenhou_client.py", line 697, in _send self.skt.sendall(msg_.encode()) ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\office04\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner self.run() File "C:\Users\office04\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "E:\Download\MajsoulAI\JianYangAI\client\tenhou_client.py", line 727, in send_alive self._send('<Z />') File "E:\Download\MajsoulAI\JianYangAI\analysis\analyzer.py", line 30, in wrapper ret = func(*args,**kwargs) File "E:\Download\MajsoulAI\JianYangAI\client\tenhou_client.py", line 700, in _send self.end_game(False) File "E:\Download\MajsoulAI\JianYangAI\analysis\analyzer.py", line 30, in wrapper ret = func(*args,**kwargs) File "E:\Download\MajsoulAI\JianYangAI\client\tenhou_client.py", line 195, in end_game self.keep_alive_thread.join() File "C:\Users\office04\AppData\Local\Programs\Python\Python38\lib\threading.py", line 1008, in join raise RuntimeError("cannot join current thread") RuntimeError: cannot join current thread 2020-10-08 15:24:19: Game was ended unexpected 2020-10-08 15:24:19: [WinError 10038] 在一个非套接字上尝试了一个操作。 2020-10-08 15:24:19: Game End 2020-10-08 15:24:19:
main.py的logs:
[AI EVENT] : <Z /> recv: <JOIN t="0,1" /> send: b'<GO type="1" lobby="0" gpid="EE26C0F2-327686F1"/>\x00' send: b'<UN n0="tst-tio" n1="user1" n2="user2" n3="user3" dan="9,9,9,0" rate="985.47,1648.57,1379.50,1500.00" sx="M,M,M,M"/>\x00' send: b'<TAIKYOKU oya="0" log="xxxxxxxxxxxx-xxxx-xxxx-xxxxxxxx"/>\x00' recv: <GOK / [AI EVENT] : <GOK / recv: <NEXTREADY /> recv: <Z /> recv: <Z /> recv: <Z /> recv: <Z /> recv: <Z /> send: b'<INIT seed="0,0,0,-1,-1,100" ten="250,250,250,250" oya="0" hai="17,24,32,33,40,68,76,80,84,92,96,104,116"/>\x00' send: b'<T120/>\x00' recv: <Z /> recv: <Z /> recv: <Z /> recv: <D p="116"/> Traceback (most recent call last): File "e:/Download/MajsoulAI/main.py", line 742, in <module> MainLoop(level=level) File "e:/Download/MajsoulAI/main.py", line 715, in MainLoop aiWrapper.recv(data) File "e:/Download/MajsoulAI/main.py", line 134, in recv self._eventHandler(msg.decode('utf-8')) File "e:/Download/MajsoulAI/main.py", line 159, in _eventHandler self.on_DiscardTile(d) File "e:/Download/MajsoulAI/main.py", line 593, in on_DiscardTile self.actionDiscardTile(tile) File "e:\Download\MajsoulAI\majsoul_wrapper\action\action.py", line 187, in actionDiscardTile raise Exception( Exception: ('GUIInterface.discardTile tile not found. L:', [('5m', (146, 567)), ('7m', (192, 567)), ('9m', (237, 567)), ('9m', (282, 567)), ('2p', (327, 567)), ('9p', (373, 567)), ('5z', (495, 569)), ('9s', (644, 567))], 'tile:', '3z') PS E:\Download\MajsoulAI>
AI在算出第一张牌之后程序停止运行。
AI认为我应该出西风。
AI的logs:
main.py的logs: