MrKinau / FishingBot

1.8 - 1.20.6 Fishing bot for Minecraft
GNU General Public License v3.0
321 stars 67 forks source link

packet error. #246

Closed ItsDApples closed 1 month ago

ItsDApples commented 1 month ago

[2024-07-05 00:41:43] [信息 ] Using FishingBot v2.12.4 [2024-07-05 00:41:43] [信息 ] Configuration was loaded: D:\Minecraft\FishingBot\config.json [2024-07-05 00:41:43] [信息 ] Trying to authenciate at Microsoft... [2024-07-05 00:41:43] [信息 ] Found refreshToken at D:\Minecraft\FishingBot\refreshToken [2024-07-05 00:41:43] [信息 ] Trying to refresh access token... [2024-07-05 00:41:45] [信息 ] Access token successfully refreshed [2024-07-05 00:41:47] [信息 ] Username: CC142_ [2024-07-05 00:41:47] [信息 ] Pinging 115.48.8.217:25565 with protocol of MC-1.20.5 / 1.20.6 [2024-07-05 00:41:47] [信息 ] Received pong:
[2024-07-05 00:41:47] [信息 ] >>, version: 1.20.5 / 1.20.6 (766), players online: 5 [2024-07-05 00:41:47] [信息 ] Obtained the required keys for chat signing! [2024-07-05 00:41:48] [严重 ] Tried to register packet twice: 51 is registered as PacketInOpenWindow wants to register as PacketInPing [2024-07-05 00:41:48] [信息 ] [HANDSHAKE] C >>> |S|: PacketOutHandshake [2024-07-05 00:41:48] [信息 ] Module "HandshakeModule" enabled! [2024-07-05 00:41:48] [信息 ] [LOGIN] C >>> |S|: PacketOutLoginStart [2024-07-05 00:41:48] [信息 ] Module "LoginModule" enabled! [2024-07-05 00:41:48] [信息 ] Module "ClientDefaultsModule" enabled! [2024-07-05 00:41:48] [信息 ] Module "FishingModule" enabled! [2024-07-05 00:41:48] [信息 ] Module "ChatProxyModule" enabled! [2024-07-05 00:41:48] [信息 ] Module "ChatCommandModule" enabled! [2024-07-05 00:41:48] [信息 ] [LOGIN] |C| <<< S : PacketInEncryptionRequest [2024-07-05 00:41:48] [信息 ] [LOGIN] C >>> |S|: PacketOutEncryptionResponse [2024-07-05 00:41:48] [信息 ] Handling packet PacketInEncryptionRequest took 55ms [2024-07-05 00:41:48] [信息 ] [LOGIN] |C| <<< S : PacketInLoginDisconnect [2024-07-05 00:41:48] [严重 ] Login failed: null [2024-07-05 00:41:48] [信息 ] Handling packet PacketInLoginDisconnect took 4ms [2024-07-05 00:41:48] [信息 ] Module "LoginModule" disabled! [2024-07-05 00:41:48] [信息 ] Module "ClientDefaultsModule" disabled! [2024-07-05 00:41:48] [信息 ] Module "FishingModule" disabled! [2024-07-05 00:41:48] [信息 ] Module "ChatProxyModule" disabled! [2024-07-05 00:41:48] [信息 ] Module "ChatCommandModule" disabled! [2024-07-05 00:41:48] [信息 ] FishingBot will reconnect in 5 seconds... [2024-07-05 00:41:49] [信息 ] Trying to authenciate at Microsoft... [2024-07-05 00:41:49] [信息 ] Found refreshToken at D:\Minecraft\FishingBot\refreshToken [2024-07-05 00:41:49] [信息 ] Trying to refresh access token... [2024-07-05 00:41:51] [信息 ] Access token successfully refreshed

MrKinau commented 1 month ago

Looks like the bot gets kicked by the server during login. This can technically have many reasons like Anti-Bot, Wrong Version or anything other. Unfortunately the disconnection reason is not read correctly due to an error in reading the disconnect packet during login. If possible, you may try using an older version (before 1.20.3): The correct disconnect message should then be printed. Alternatively you could use a version where login disconnect packet parsing is fixed: https://dl.kinau.systems/FishingBot-2.12.5.jar (you still get disconnected, but the disconnect reason will be printed after Login failed: …)

ItsDApples commented 1 month ago

i try and login successful but got error log0.log

MrKinau commented 1 month ago

Thats weird, it looks like a normal shutdown. There is nothing unusual in the log. No error, not even a server disconnect is sent, the client disonnects itself from the server without any prior issue. Have the application been terminated? Or the Stop Button been pressed? I can't seem to find anything unusual in the log.

ItsDApples commented 1 month ago

Oh that i open the debug mode , sorry

ItsDApples commented 1 month ago

close