avertuss 48 Posted February 17, 2016 Share Posted February 17, 2016 Hi, I'm testing my server and syserr appeared in a sequence log: SYSERR: Feb 7 10:23:40 :: Process: SEQUENCE 30bd5800 mismatch 0xaf != 0x64 header 254 SYSERR: Feb 7 10:23:40 :: Process: SEQUENCE_LOG [UNKNOWN]------------- [254 : 0xaf] How i can fix it? In packet.h there is no such 254 header. Thanks for help. Link to comment Share on other sites More sharing options...
Premium DarkFire 12 Posted March 24, 2016 Premium Share Posted March 24, 2016 Somebody know ? Link to comment Share on other sites More sharing options...
Haruka 15 Posted March 24, 2016 Share Posted March 24, 2016 Follow me! Server: In game/packet_info.cpp find this "Set(HEADER_CG_PONG, sizeof(BYTE), "Pong", true);" replace with "Set(HEADER_CG_PONG, sizeof(BYTE), "Pong", false);" Client: In PythonNetworkStream.cpp find function "bool CPythonNetworkStream::RecvPingPacket()" and change to: Spoiler bool CPythonNetworkStream::RecvPingPacket() { Tracef("recv ping packet. (securitymode %u)\n", IsSecurityMode()); TPacketGCPing kPacketPing; if (!Recv(sizeof(TPacketGCPing), &kPacketPing)) return false; m_dwLastGamePingTime = ELTimer_GetMSec(); TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(TPacketCGPong), &kPacketPong)) return false; //if (IsSecurityMode()) // return SendSequence(); //else return true; } In AccountConnector.cpp find "bool CAccountConnector::__AuthState_SendPong()" and change to: Spoiler bool CAccountConnector::__AuthState_SendPong() { TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(kPacketPong), &kPacketPong)) return false; //if (IsSecurityMode()) //return SendSequence(); return true; } Hello, I've seen a lot of questions about header 254 error in server logs, and all what I've found were diffs for binaries. Below you will find a way how to fix it in source. Let's start: SERVER: In game/packet_info.cpp find this "Set(HEADER_CG_PONG, sizeof(BYTE), "Pong", true);" replace with "Set(HEADER_CG_PONG, sizeof(BYTE), "Pong", false);" CLIENT: All changes will be in UserInterface folder: In PythonNetworkStream.cpp find function "bool CPythonNetworkStream::RecvPingPacket()" and change to: bool CPythonNetworkStream::RecvPingPacket() { Tracef("recv ping packet. (securitymode %u)\n", IsSecurityMode()); TPacketGCPing kPacketPing; if (!Recv(sizeof(TPacketGCPing), &kPacketPing)) return false; m_dwLastGamePingTime = ELTimer_GetMSec(); TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(TPacketCGPong), &kPacketPong)) return false; //if (IsSecurityMode()) // return SendSequence(); //else return true; } In AccountConnector.cpp find "bool CAccountConnector::__AuthState_SendPong()" and change to: bool CAccountConnector::__AuthState_SendPong() { TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(kPacketPong), &kPacketPong)) return false; //if (IsSecurityMode()) //return SendSequence(); return true; } In GuildMarkDownloader.cpp find "bool CGuildMarkDownloader::__LoginState_RecvPing()" and change to: Spoiler bool CGuildMarkDownloader::__LoginState_RecvPing() { TPacketGCPing kPacketPing; if (!Recv(sizeof(kPacketPing), &kPacketPing)) return false; TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(TPacketCGPong), &kPacketPong)) return false; //if (IsSecurityMode()) //return SendSequence(); //else return true; } In GuildMarkUploader.cpp find "bool CGuildMarkUploader::__LoginState_RecvPing()" and change to: Spoiler bool CGuildMarkUploader::__LoginState_RecvPing() { TPacketGCPing kPacketPing; if (!Recv(sizeof(kPacketPing), &kPacketPing)) return false; TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(TPacketCGPong), &kPacketPong)) return false; //if (IsSecurityMode()) //return SendSequence(); //else return true; } 1 Link to comment Share on other sites More sharing options...
Premium DarkFire 12 Posted March 24, 2016 Premium Share Posted March 24, 2016 i will try , thx Link to comment Share on other sites More sharing options...
Haruka 15 Posted March 24, 2016 Share Posted March 24, 2016 You're welcome! Link to comment Share on other sites More sharing options...
Root 58 Posted March 25, 2016 Share Posted March 25, 2016 21 hours ago, Haruka said: Follow me! Server: In game/packet_info.cpp find this "Set(HEADER_CG_PONG, sizeof(BYTE), "Pong", true);" replace with "Set(HEADER_CG_PONG, sizeof(BYTE), "Pong", false);" Client: In PythonNetworkStream.cpp find function "bool CPythonNetworkStream::RecvPingPacket()" and change to: Reveal hidden contents bool CPythonNetworkStream::RecvPingPacket() { Tracef("recv ping packet. (securitymode %u)\n", IsSecurityMode()); TPacketGCPing kPacketPing; if (!Recv(sizeof(TPacketGCPing), &kPacketPing)) return false; m_dwLastGamePingTime = ELTimer_GetMSec(); TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(TPacketCGPong), &kPacketPong)) return false; //if (IsSecurityMode()) // return SendSequence(); //else return true; } In AccountConnector.cpp find "bool CAccountConnector::__AuthState_SendPong()" and change to: Reveal hidden contents bool CAccountConnector::__AuthState_SendPong() { TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(kPacketPong), &kPacketPong)) return false; //if (IsSecurityMode()) //return SendSequence(); return true; } Hello, I've seen a lot of questions about header 254 error in server logs, and all what I've found were diffs for binaries. Below you will find a way how to fix it in source. Let's start: SERVER: In game/packet_info.cpp find this "Set(HEADER_CG_PONG, sizeof(BYTE), "Pong", true);" replace with "Set(HEADER_CG_PONG, sizeof(BYTE), "Pong", false);" CLIENT: All changes will be in UserInterface folder: In PythonNetworkStream.cpp find function "bool CPythonNetworkStream::RecvPingPacket()" and change to: bool CPythonNetworkStream::RecvPingPacket() { Tracef("recv ping packet. (securitymode %u)\n", IsSecurityMode()); TPacketGCPing kPacketPing; if (!Recv(sizeof(TPacketGCPing), &kPacketPing)) return false; m_dwLastGamePingTime = ELTimer_GetMSec(); TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(TPacketCGPong), &kPacketPong)) return false; //if (IsSecurityMode()) // return SendSequence(); //else return true; } In AccountConnector.cpp find "bool CAccountConnector::__AuthState_SendPong()" and change to: bool CAccountConnector::__AuthState_SendPong() { TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(kPacketPong), &kPacketPong)) return false; //if (IsSecurityMode()) //return SendSequence(); return true; } In GuildMarkDownloader.cpp find "bool CGuildMarkDownloader::__LoginState_RecvPing()" and change to: Reveal hidden contents bool CGuildMarkDownloader::__LoginState_RecvPing() { TPacketGCPing kPacketPing; if (!Recv(sizeof(kPacketPing), &kPacketPing)) return false; TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(TPacketCGPong), &kPacketPong)) return false; //if (IsSecurityMode()) //return SendSequence(); //else return true; } In GuildMarkUploader.cpp find "bool CGuildMarkUploader::__LoginState_RecvPing()" and change to: Reveal hidden contents bool CGuildMarkUploader::__LoginState_RecvPing() { TPacketGCPing kPacketPing; if (!Recv(sizeof(kPacketPing), &kPacketPing)) return false; TPacketCGPong kPacketPong; kPacketPong.bHeader = HEADER_CG_PONG; if (!Send(sizeof(TPacketCGPong), &kPacketPong)) return false; //if (IsSecurityMode()) //return SendSequence(); //else return true; } I think this just disables it so it not showed in syserr, but the error is still going on the server background. Link to comment Share on other sites More sharing options...
Haruka 15 Posted March 25, 2016 Share Posted March 25, 2016 Not. With my help you can solve the problem Link to comment Share on other sites More sharing options...
wezt 95 Posted March 26, 2016 Share Posted March 26, 2016 @Haruka you could just send a link to https://metin2dev.org/board/index.php?/topic/10834-fix-sequence-mismatch-header-254-c/ or at least didn't tell that it's your solution Link to comment Share on other sites More sharing options...
Haruka 15 Posted March 26, 2016 Share Posted March 26, 2016 I said: 'with my help' and not 'it's my solution' 1 Link to comment Share on other sites More sharing options...
БlyatMAN 13 Posted November 3, 2023 Share Posted November 3, 2023 this is just a bypass not solving the problem Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now