Honorable Member xP3NG3Rx 19674 Posted January 17, 2021 Honorable Member Share Posted January 17, 2021 (edited) M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Hello everyone. Yesterday @Doonqa asked me if I could reverse this function of the game from the official binary. Known fact these functions are necessary and obligatory for the multilanguage systems and I have them since years ago, here they are. This is the hidden content, please Sign In or Sign Up Edit: I have found something related to the arabic codepage, so I just post it here: <! It has not been tested. !> Spoiler And here is the code for it: // EterPythonLib/PythonWindow.cpp void CWindow::GetMouseLocalPosition(long & rlx, long & rly) { CWindowManager::Instance().GetMousePosition(rlx, rly); if (GetDefaultCodePage() == CP_ARABIC && m_bWindowType == WINDOW_TYPE_TEXTLINE) { rlx = m_rect.right - rlx; rly -= m_rect.top; } else { rlx = rlx - m_rect.left; rly = rly - m_rect.top; } } And here are some parts that I have forgotten: 1.) Open the EterPythonLib/PythonWindow.h and add the followings into the CWindow class as you can see here: namespace UI { class CWindow { // [...] public: enum WindowTypes { WINDOW_TYPE_WINDOW, WINDOW_TYPE_TEXTLINE, WINDOW_TYPE_MAX_NUM }; protected: BYTE m_bWindowType; } } 2.1.) Open the EterPythonLib/PythonWindow.cpp and add the following to the CWindow constructor as the following example shows: CWindow::CWindow(PyObject * ppyObject): // [...] { // [...] m_bWindowType = WINDOW_TYPE_WINDOW; } 2.2.) Then repeat the previous step in the the CTextLine constructor too: m_bWindowType = WINDOW_TYPE_TEXTLINE; Any problem appears, comment box is down below ⬇ Cheers! Edited March 26, 2021 by xP3NG3Rx Added some small code #1 | added forgotten parts 69 1 1 2 3 11 3 46 Link to comment Share on other sites More sharing options...
Doonqa 0 Posted January 17, 2021 Share Posted January 17, 2021 thank you so much you're The Best Link to comment Share on other sites More sharing options...
IGNEEL 24 Posted January 17, 2021 Share Posted January 17, 2021 Thank you , this function is very important for Arab servers Link to comment Share on other sites More sharing options...
numNum 37 Posted January 18, 2021 Share Posted January 18, 2021 (edited) You have them since years ago and you kept them in you pc?!! , do you know how Arabs suffer with adding any windows ?!!!! thx for releasing it anyways Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19674 Posted March 19, 2021 Author Honorable Member Share Posted March 19, 2021 A small update has been added to the the first post. 2 Link to comment Share on other sites More sharing options...
klars99 4 Posted March 22, 2021 Share Posted March 22, 2021 identifier "m_bWindowType" is undefined identifier "WINDOW_TYPE_EX_IMAGE" is undefined Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19674 Posted March 26, 2021 Author Honorable Member Share Posted March 26, 2021 @klars99 Oh, I forgot that those are also new stuffs. #Updated Link to comment Share on other sites More sharing options...
numNum 37 Posted March 26, 2021 Share Posted March 26, 2021 (edited) Thanks for the update Edited March 26, 2021 by jeddawee Link to comment Share on other sites More sharing options...
adilo 1 Posted May 1, 2021 Share Posted May 1, 2021 On 1/17/2021 at 7:32 AM, xP3NG3Rx said: I have mistakes Who will amend it for me These files are without add-ons Link to comment Share on other sites More sharing options...
adilo 1 Posted May 17, 2021 Share Posted May 17, 2021 not work Link to comment Share on other sites More sharing options...
Siverbot 6 Posted October 20, 2021 Share Posted October 20, 2021 On 5/17/2021 at 6:15 PM, adilo said: not work what does not work ? Link to comment Share on other sites More sharing options...
lordsas61 15 Posted March 22, 2022 Share Posted March 22, 2022 @ xP3NG3Rx LeftRightReverse for { "name" : "PetInfoUIBG", "type" : "expanded_image", "style" : ("attach",), "x" : 0, "y" : 0, "image" : PET_UI_BG_IMAGE }, class ExpandedImageBox(ImageBox): not work. Why code not work? I not understand. 2 hours ago, lordsas61 said: @ xP3NG3Rx LeftRightReverse for { "name" : "PetInfoUIBG", "type" : "expanded_image", "style" : ("attach",), "x" : 0, "y" : 0, "image" : PET_UI_BG_IMAGE }, class ExpandedImageBox(ImageBox): not work. Why code not work? I not understand. This function does not work in Expanded_Images. Because Expanded_Image is rendering from a different code. Therefore, it is necessary to define LeftRightReverse there. I'm not writing the solution because no one helped. Experts don't try hard to find it, but it's probably hard for newbies I seem to have already written the answer, but whatever. 1 Link to comment Share on other sites More sharing options...
Contributor MrQuin 6402 Posted March 22, 2022 Contributor Share Posted March 22, 2022 (edited) 3 hours ago, lordsas61 said: @ xP3NG3Rx LeftRightReverse for { "name" : "PetInfoUIBG", "type" : "expanded_image", "style" : ("attach",), "x" : 0, "y" : 0, "image" : PET_UI_BG_IMAGE }, class ExpandedImageBox(ImageBox): not work. Why code not work? I not understand. This function does not work in Expanded_Images. Because Expanded_Image is rendering from a different code. Therefore, it is necessary to define LeftRightReverse there. I'm not writing the solution because no one helped. Experts don't try hard to find it, but it's probably hard for newbies I seem to have already written the answer, but whatever. Cause it's hard to add the same codes to the GrpExpandedImage you little shit(I mean brain dead since you struggled with it to begin with) Edited March 22, 2022 by MrQuin 1 2 My only accounts are here and on M2D, Don't trust anyone else from other shitty sites. Link to comment Share on other sites More sharing options...
freedom 3 Posted July 24, 2022 Share Posted July 24, 2022 (edited) hello i did same and this happens why ?? @ xP3NG3Rx https://metin2.download/picture/KI0JeM1igp6T2ZHXPF6xJMcRZ84470YS/.png Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts