Jump to content

Stuck with Header problem... :d


Recommended Posts

Hello guys,

I got a problem with my source again. Hopefully somebody's willing & able to help here.

So the problem is following:

After teleporting to another map e.g from spiderdungeon to map1 blue my client's crashing and the syserr's saying:

0427 21:36:23765 :: Phase Game does not handle this header (header: 81, last: 45, 81)
0427 21:36:23799 :: Unknown packet header: 12, last: 81 117

I tried to seach through google and all metin communitys I could think of but without succsess *² -> or maybe I'm just too stupid to use them, hopefully I'm not :D

thanks in advance guys, hopefully we can come to a conclusion

 

*² Well I found something (espacialy on m2dev) but it couldn't help me that much.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

@BerserK

Here is a little test which you can do (in order to fix your problem):

Go in Client_source\UserInterface\PythonNetworkStreamPhaseGame.cpp

Find there "bool CPythonNetworkStream::RecvQuestInfoPacket()": add change it:

Spoiler

Replace this part:


	if (0 != (c_rFlag & QUEST_SEND_TITLE))
	{
		if (!Recv(sizeof(szTitle), &szTitle))
			return false;

		szTitle[30]='\0';
	}
	if (0 != (c_rFlag & QUEST_SEND_CLOCK_NAME))
	{
		if (!Recv(sizeof(szClockName), &szClockName))
			return false;

		szClockName[16]='\0';
	}
	if (0 != (c_rFlag & QUEST_SEND_CLOCK_VALUE))
	{
		if (!Recv(sizeof(iClockValue), &iClockValue))
			return false;
	}
	if (0 != (c_rFlag & QUEST_SEND_COUNTER_NAME))
	{
		if (!Recv(sizeof(szCounterName), &szCounterName))
			return false;

		szCounterName[16]='\0';
	}
	if (0 != (c_rFlag & QUEST_SEND_COUNTER_VALUE))
	{
		if (!Recv(sizeof(iCounterValue), &iCounterValue))
			return false;
	}
	if (0 != (c_rFlag & QUEST_SEND_ICON_FILE))
	{
		if (!Recv(sizeof(szIconFileName), &szIconFileName))
			return false;

		szIconFileName[24]='\0';
	}

With this one:


	if (0 != (c_rFlag & QUEST_SEND_TITLE))
	{
		if (!Recv(sizeof(szTitle), &szTitle))
		{
			TraceError("!Recv(sizeof(szTitle), &szTitle)");
			return false;
		}

		szTitle[30]='\0';
	}
	if (0 != (c_rFlag & QUEST_SEND_CLOCK_NAME))
	{
		if (!Recv(sizeof(szClockName), &szClockName))
		{
			TraceError("!Recv(sizeof(szClockName), &szClockName)");
			return false;
		}

		szClockName[16]='\0';
	}
	if (0 != (c_rFlag & QUEST_SEND_CLOCK_VALUE))
	{
		if (!Recv(sizeof(iClockValue), &iClockValue))
		{
			TraceError("!Recv(sizeof(iClockValue), &iClockValue)");
			return false;
		}
	}
	if (0 != (c_rFlag & QUEST_SEND_COUNTER_NAME))
	{
		if (!Recv(sizeof(szCounterName), &szCounterName))
		{
			TraceError("!Recv(sizeof(szCounterName), &szCounterName)");
			return false;
		}
		szCounterName[16]='\0';
	}
	if (0 != (c_rFlag & QUEST_SEND_COUNTER_VALUE))
	{
		if (!Recv(sizeof(iCounterValue), &iCounterValue))
		{
			TraceError("!Recv(sizeof(iCounterValue), &iCounterValue)");
			return false;
		}
	}
	if (0 != (c_rFlag & QUEST_SEND_ICON_FILE))
	{
		if (!Recv(sizeof(szIconFileName), &szIconFileName))
		{
			TraceError("!Recv(sizeof(szIconFileName), &szIconFileName)");
			return false;
		}

		szIconFileName[24]='\0';
	}

Let me know about errors in syserr.txt after you'll recompile the game client.

If the problem will be in this part of code, I'll show how to fix.

P.S.: In my case problem was there, and it's already fixed;)

Regards.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.