Jump to content

unknown header +++


Recommended Posts

  • Bronze

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
Share on other sites

  • Bronze
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
Share on other sites

  • Bronze
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
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
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

  • Activity

    1. 2

      acces root denied

    2. 7

      Acce system

    3. 5

      Transmutation Reversal - bug

    4. 0

      How to compile Metin2 .py script to .pyc

    5. 2

      acces root denied

    6. 2

      VPS Choice

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.