Jump to content

Recommended Posts

Hello

------------------------------------------------------
This way I solved the problem that the client crash the issue is this can bring some problem to the server? is it 100% safe?
------------------------------------------------------

open PythonNetworkStream.cpp
search :

bool CPythonNetworkStream::RecvErrorPacket(int header)
{
    TraceError("Phase %s does not handle this header (header: %d, last: %d, %d)",
        m_strPhase.c_str(), header, g_iLastPacket[0], g_iLastPacket[1]);

    ClearRecvBuffer();
    return true;
}

replace:

bool CPythonNetworkStream::RecvErrorPacket(int header)
{
    if (0 == header)
        return true;
}

new search: 

    if (!s_packetHeaderMap.Get(header, &PacketType))
    {
        TraceError("Unknown packet header: %d, last: %d %d", header, g_iLastPacket[0], g_iLastPacket[1]);
        ClearRecvBuffer();

        PostQuitMessage(0);
        return false;
    }

replace:

    if (!s_packetHeaderMap.Get(header, &PacketType))
    {
        if (0 == header)
            return true;
    }

 

  • Confused 1
Link to comment
https://metin2.dev/topic/27910-unknown-header/
Share on other sites

No, its not safe nor good solution for unknown header packets.. Your client will not be closed if you receive wrong packets, but your whole client will go nuts (you will see that your level is 98865556, you will see nonsense items in your inventory etc.)

  • Love 1
Link to comment
https://metin2.dev/topic/27910-unknown-header/#findComment-143135
Share on other sites

2 minutes ago, ondry said:

No, its not safe nor good solution for unknown header packets.. Your client will not be closed if you receive wrong packets, but your whole client will go nuts (you will see that your level is 98865556, you will see nonsense items in your inventory etc.)

?  thanks if do you have any idea for fix unknown header closed client 

Link to comment
https://metin2.dev/topic/27910-unknown-header/#findComment-143136
Share on other sites

22 minutes ago, Draveniou1 said:

?  thanks if do you have any idea for fix unknown header closed client 

If you are getting "Unknown packet header : [random number], last: 251 250" then you can try to disable IMPROVED_PACKET_ENCRYPTION - but you will have to make some changes about buffer

Link to comment
https://metin2.dev/topic/27910-unknown-header/#findComment-143137
Share on other sites

unknown header errors are caused by the removal of missing or faulty codes from the server and client. To solve this problem, it is necessary to find out exactly where the error originates. this takes a lot of effort and time, it would be better for you if you develop untouched files in the mainline.

  • Love 2
Link to comment
https://metin2.dev/topic/27910-unknown-header/#findComment-143166
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.