Jump to content

Official LoadMap


Recommended Posts

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;
}

 

  • Love 18
Link to post

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 (see edit history)
  • Love 4
Link to post

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
  • Lmao 1
  • Rainbow 1
Link to post
  • ASIKOO changed the title to Official LoadMap

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


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