Jump to content

Official LoadMap


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

 

  • 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
  • Love 4
Link to post
  • 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
  • Lmao 1
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

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