.JαyZoN 41 Posted March 15, 2014 Share Posted March 15, 2014 Hello community, before three days i compiled client binary, game and db (for Windows) without problems. The binaries are working without problems but there's a little error which is annoying me. The error only appears during the login and the error is irregular, sometimes the error appears directly, sometimes the error appears after login 20 times. However, the client gets a crash during the message "Connected to server" with the following error message; Unknown packet header: 140, last: 251 250 The unknown packet header (here 140) is random, but the part "last: 251 250" is always the same. If i get the error after login 20 times again, the packet is different. I don't know how to fix this 'cause the packets do not exist. (of course i was looking for the packet id) The error is really rare but it makes me angry when I start the client for the first time and then the error appears directly so i have to restart.. I've compared the packets in the clientbinary and serverside, there's no difference. It's only during login, ingame is working without mistakes. There are no errors serverside, too. However, can you help me? __ by the way; I think this topic is similar or maybe the same; http://metin2dev.org/board/topic/343-unknown-packet-header-xx-last-xxx-xxx/?hl=unknown+packet+header Link to comment Share on other sites More sharing options...
Active Member ATAG 310 Posted March 15, 2014 Active Member Share Posted March 15, 2014 #ifdef _IMPROVED_PACKET_ENCRYPTION_ struct TPacketKeyAgreement { static const int MAX_DATA_LEN = 256; BYTE bHeader; WORD wAgreedLength; WORD wDataLength; BYTE data[MAX_DATA_LEN]; }; struct TPacketKeyAgreementCompleted { BYTE bHeader; BYTE data[3]; // dummy (not used) }; #endif // _IMPROVED_PACKET_ENCRYPTION_ Try to disable _IMPROVED_PACKET_ENCRYPTION_, i don't know what is it exactly. 3 Link to comment Share on other sites More sharing options...
Originale 134 Posted March 15, 2014 Share Posted March 15, 2014 it may be for the package files folder ?! Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4874 Posted March 15, 2014 Bot Share Posted March 15, 2014 Interesting question we got the same problem. Link to comment Share on other sites More sharing options...
Mehti 76 Posted March 15, 2014 Share Posted March 15, 2014 The packet error can happen because of many things: 1. The packet variables are not the same on client/server side 2. The packet does not exist on client/server side etc... Now it sounds easy to fix, but not really...The syserr always report false or random (?) packets, sometimes it says "unknown packet header: 55", then few minutes later it says "unknown packet header: 101".I recommend you to use the mainline for server, because with that the dev and the novaline works too without any errors. by Sanchez I think need edit much things to fix this, In system already work much system and maybe we client dont have these system.. or Offical Servers using another system to start server, or load something on startup... etc Link to comment Share on other sites More sharing options...
.JαyZoN 41 Posted March 15, 2014 Author Share Posted March 15, 2014 it may be for the package files folder ?! In the 34k game was the IMPROVED_PACKET_ENCRYPTION, too. The same error appears with a pre-compiled binary from the official devs (28k bin, not compiled by me) Link to comment Share on other sites More sharing options...
Premium Sanchez 2464 Posted March 15, 2014 Premium Share Posted March 15, 2014 Some of my friends are experienced unknown packet errors too at login, but it's not always really random. If their computer is a bit slow, so copying big files or doing something while trying to login then they are receiving an unknown packet header error. Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4874 Posted March 15, 2014 Bot Share Posted March 15, 2014 lets try to fix it than. Link to comment Share on other sites More sharing options...
.JαyZoN 41 Posted March 15, 2014 Author Share Posted March 15, 2014 Some of my friends are experienced unknown packet errors too at login, but it's not always really random. If their computer is a bit slow, so copying big files or doing something while trying to login then they are receiving an unknown packet header error. I have Intel Core i7, 32 GB RAM, NVIDIA Geforce GTX 675MX 4 GB DDR5 so this is not the problem. =D However, i will look for the _IMPROVED_PACKET_ENCRYPTION_ code part. Link to comment Share on other sites More sharing options...
.JαyZoN 41 Posted March 15, 2014 Author Share Posted March 15, 2014 I was looking for the function a little bit. If _IMPROVED_PACKET_ENCRYPTION_ is disabled, the client/server will use the old pong encryption system [2089(M)] again, it's really interesting. Link to comment Share on other sites More sharing options...
Mehti 76 Posted March 15, 2014 Share Posted March 15, 2014 I was looking for the function a little bit. If _IMPROVED_PACKET_ENCRYPTION_ is disabled, the client/server will use the old pong encryption system [2089(M)] again, it's really interesting. I hope you can explain. How this system work ? Link to comment Share on other sites More sharing options...
Active Member ATAG 310 Posted March 15, 2014 Active Member Share Posted March 15, 2014 I was looking for the function a little bit. If _IMPROVED_PACKET_ENCRYPTION_ is disabled, the client/server will use the old pong encryption system [2089(M)] again, it's really interesting. Is it really a problem? Link to comment Share on other sites More sharing options...
.JαyZoN 41 Posted March 16, 2014 Author Share Posted March 16, 2014 (edited) Ok, "_IMPROVED_PACKET_ENCRYPTION_" is disabled. I configured my client- and gamefiles for the packet encryption key (pong) "testtesttesttest" Clientbinary (Release) 3,3MB changed to 3,03MB. Gamefile (Debug) ~13MB changed to ~11MB. I did logins 60 times, no bugs, nothing, i tested all. Fine! Edited August 22, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4874 Posted March 18, 2014 Bot Share Posted March 18, 2014 Any further reports on this ? Link to comment Share on other sites More sharing options...
Originale 134 Posted March 19, 2014 Share Posted March 19, 2014 must remove all _IMPROVED_PACKET_ENCRYPTION_ customer source? Just remove _IMPROVED_PACKET_ENCRYPTION_ in file ServiceDefs.h from client and remove _IMPROVED_PACKET_ENCRYPTION_ in file service.h from /server/common for server I finally remove all rather made every comment My Binary 3.031ko does well in release mode But her but unable to connect Auth => syserr SYSERR: Mar 19 11:47:36 :: Process: UNKNOWN HEADER: 221, LAST HEADER: 0(0), REMAIN BYTES: 72, fd: 15 Link to comment Share on other sites More sharing options...
.JαyZoN 41 Posted March 25, 2014 Author Share Posted March 25, 2014 Guys you have to remember; Packet Encryption Key structure of game_2089(M)_32. Don't forget the packets @ packet.h... 1 Link to comment Share on other sites More sharing options...
Premium Zeia 2 Posted January 29, 2016 Premium Share Posted January 29, 2016 ++ Not Connect game Link to comment Share on other sites More sharing options...
Premium Zeia 2 Posted January 31, 2016 Premium Share Posted January 31, 2016 ++ Not Connect SERVER Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4874 Posted May 22, 2016 Bot Share Posted May 22, 2016 That improved_packet_encryption shouldn't be disabled, i give you a only one problemativ which will come up, with more players on your server: You will go online and then will be kicked in the loading screen, because of the "Entergame" packet. ("...header 10") Link to comment Share on other sites More sharing options...
M.Sorin 282 Posted May 22, 2016 Share Posted May 22, 2016 ^ Tested and this guy have right! The header 10 error will appear like this: SYSERR: May 22 13:44:44 :: Process: SEQUENCE 373be300 mismatch 0x76 != 0x46 header 10 SYSERR: May 22 13:44:44 :: Process: SEQUENCE_LOG [[Name]------------- [109 : 0xd9] [006 : 0xea] [241 : 0x84] [010 : 0x76] Link to comment Share on other sites More sharing options...
ds_aim 241 Posted May 22, 2016 Share Posted May 22, 2016 10 minutes ago, M.Sorin said: ^ Tested and this guy have right! The header 10 error will appear like this: SYSERR: May 22 13:44:44 :: Process: SEQUENCE 373be300 mismatch 0x76 != 0x46 header 10 SYSERR: May 22 13:44:44 :: Process: SEQUENCE_LOG [[Name]------------- [109 : 0xd9] [006 : 0xea] [241 : 0x84] [010 : 0x76] Sequence it's send from client intro game. Header 10 it's ENTERGAME Soo make the entergame packet to send sequence packet. bool CPythonNetworkStream::SendEnterGame() { TPacketCGEnterFrontGame EnterFrontGamePacket; EnterFrontGamePacket.header = HEADER_CG_ENTERGAME; if (!Send (sizeof (EnterFrontGamePacket), &EnterFrontGamePacket)) { Tracen ("Send EnterFrontGamePacket"); return false; } SendInternalBuffer(); return SendSequence(); } I'm waiting for you reply. All CLIENT->GAME packet's should send sequence. I think sequence systems was unfinised when source was leaked and published. I looked intro codes and always all Client->Game packet's should return seqeunce. Link to comment Share on other sites More sharing options...
M.Sorin 282 Posted May 22, 2016 Share Posted May 22, 2016 Hmm , i checked too and ur right. I`ll try tonight to search for all sequence lines Edit: SendInternalBuffer(); just removed this and seems like the game is working fine now when i enter the game Link to comment Share on other sites More sharing options...
Tallywa 35 Posted November 3, 2016 Share Posted November 3, 2016 when i have desactivated If _IMPROVED_PACKET_ENCRYPTION_ is in client and server but i cant connect i dont know why Link to comment Share on other sites More sharing options...
minigutza 54 Posted September 28, 2022 Share Posted September 28, 2022 On 5/22/2016 at 2:26 PM, M.Sorin said: Hmm , i checked too and ur right. I`ll try tonight to search for all sequence lines Edit: SendInternalBuffer(); just removed this and seems like the game is working fine now when i enter the game How to do that? i have irregular unknown packet headers too. Link to comment Share on other sites More sharing options...
regal 20 Posted October 24, 2023 Share Posted October 24, 2023 Any updates on this? I get random packet headers as well sometimes and players can’t connect for a while,(they keep getting random packets), then after few minutes everything is fine. This is very weird and it doesn’t really look packet related 1 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