Jump to content

Official LoadMap


xP3NG3Rx

Recommended Posts

  • Honorable Member

Hello,

 

Small performance snippet from the official binary after some reverse engineering.

I did not make huge tests, but it seems just fine for me, if you have any problem, let me know in comment below.

 

1.) Get rid of every __LoadMap function + calls from the introLoading.py file. Also you can completly remove the function net.Warp as well.

6vVTYnH.png

2.) Modify the following functions in the CPythonNetworkStreamPhaseLoading.cpp this way:

bool CPythonNetworkStream::RecvMainCharacter()
{
//  [..] Add to the bottom the Warp function 
	Warp(MainChrPacket.lX, MainChrPacket.lY);
	SendClientVersionPacket();
	return true;
}
bool CPythonNetworkStream::RecvMainCharacter2_EMPIRE()
{
//  [..] Add to the bottom the Warp function 
	Warp(mainChrPacket.lX, mainChrPacket.lY);
	SendClientVersionPacket();
	return true;
}
bool CPythonNetworkStream::RecvMainCharacter3_BGM()
{
//  [..] Add to the bottom the Warp function 
	Warp(mainChrPacket.lX, mainChrPacket.lY);
	SendClientVersionPacket();
	return true;
}
bool CPythonNetworkStream::RecvMainCharacter4_BGM_VOL()
{
//  [..] Add to the bottom the Warp function 
	Warp(mainChrPacket.lX, mainChrPacket.lY);
	SendClientVersionPacket();
	return true;
}

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 23
  • Love 31
  • Love 28
  • Good 9
  • Lmao 1
  • Think 2
  • Confused 1
  • Dislove 4
Link to comment
Share on other sites

  • Bronze

The RecvMainCharacter is useless HEADER_GC_MAIN_CHARACTER = 15 (Binary) and serverside HEADER_GC_MAIN_CHARACTER_OLD = 15.

 

The right packet is the HEADER_GC_MAIN_CHARACTER2_EMPIRE = 113 (Binary) and serverside HEADER_GC_MAIN_CHARACTER = 113.

 

About the BGM packets that updating the warp is all fine, cause you need to update the wrap for the right sound (I'm not sure if is really needed in binary though).

 

I'm just saying this for understanding.

Edited by HITRON
  • Love 4
Link to comment
Share on other sites

  • Honorable Member

Useless or not I don't mind, the code is there in the public source as in the official binary still, as you can see on the picture so I just put it there too.

Btw the metin2 private server owners or devs are not rocket scientists, so they don't really know which packet is in used neither which is not, oh yeah they don't even care them :).

  • Love 9
  • Good 1
  • Lmao 1
Link to comment
Share on other sites

  • 10 months later...


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