ѕeмa™ 308 Posted February 16, 2015 Share Posted February 16, 2015 Some one know how send here other table from player.player? void CHARACTER::SendTitleSystem() // test client-game { if (!GetDesc()) { return; } TPacketGCMetin2Dev Metin2DevGC; Metin2DevGC.byHeader = HEADER_GC_METIN2DEV; Metin2DevGC.M2int = GetPlayerID(); // change here to a new table from player.player GetDesc()->Packet(&Metin2DevGC, sizeof(TPacketGCMetin2Dev)); } for example a new table created , named "test"??? Thanks. https://m2admin.net/ Link to comment Share on other sites More sharing options...
Premium V0iĐ 114 Posted April 3, 2015 Premium Share Posted April 3, 2015 I tried (ctrl+c, ctrl+v) the client-game communication, but doesn't works for me The sysser write this: Analyze: login phase does not handle this packet! header 58 What i doing wrong? thanks for helping me! Link to comment Share on other sites More sharing options...
Kodii 0 Posted June 22, 2015 Share Posted June 22, 2015 (edited) Hi Sanchez I have a problem ... I see the "none" (I posted a type of children in text), but directly after clicking on the button, I have a black screen ... I have to force quit I use the event function: vid = net.SendM2DevPacket(player.GetTargetVID()) self.test.SetText(str(vid)) Thanks ! Edited June 23, 2015 by Kodii Link to comment Share on other sites More sharing options...
Kodii 0 Posted June 24, 2015 Share Posted June 24, 2015 Push ... (I'm just getting disconnected when I press the test button.) My function (53 is a test): net.SendM2DevPacket(53) I have an error in the sysser when my crash client ...: SYSERR: Jun 24 21:11:11.804832 :: Process: UNKNOWN HEADER: 44, LAST HEADER: 0(0), REMAIN BYTES: 6, fd: 25 Header 44: Header CG PongRegarding the condition: bool CPythonNetworkStream::SendMetin2DevOrgPacket(int data){ TPacketCGMetin2DevOrg M2DevPacket; M2DevPacket.byHeader = HEADER_CG_METIN2DEVORG; M2DevPacket.data = data; if (!Send(sizeof(M2DevPacket), &M2DevPacket)) return false; LogBox("test"); return SendSequence();} The fonction return SendSequence and not false !I did a test to see if the packet is received by the game: case HEADER_CG_METIN2DEVORG: sys_log(0, "TEST"); Metin2DevReceivePacket(ch, c_pData); break; But I have nothing in the syslog.The packet is not received. I don't understand at all what the problem is .... Link to comment Share on other sites More sharing options...
Former Staff flygun 304 Posted August 11, 2015 Former Staff Share Posted August 11, 2015 (edited) net.SendM2DevPacket(53 Push ... (I'm just getting disconnected when I press the test button.) My function (53 is a test): net.SendM2DevPacket(53) I have an error in the sysser when my crash client ...: SYSERR: Jun 24 21:11:11.804832 :: Process: UNKNOWN HEADER: 44, LAST HEADER: 0(0), REMAIN BYTES: 6, fd: 25 Header 44: Header CG PongRegarding the condition: bool CPythonNetworkStream::SendMetin2DevOrgPacket(int data){ TPacketCGMetin2DevOrg M2DevPacket; M2DevPacket.byHeader = HEADER_CG_METIN2DEVORG; M2DevPacket.data = data; if (!Send(sizeof(M2DevPacket), &M2DevPacket)) return false; LogBox("test"); return SendSequence();} The fonction return SendSequence and not false !I did a test to see if the packet is received by the game: case HEADER_CG_METIN2DEVORG: sys_log(0, "TEST"); Metin2DevReceivePacket(ch, c_pData); break; But I have nothing in the syslog.The packet is not received. I don't understand at all what the problem is .... replace this net.SendM2DevPacket(53) with this net.SendM2DevPacket(self,53) Edited August 11, 2015 by flygun Link to comment Share on other sites More sharing options...
ryud3v 1 Posted January 2, 2016 Share Posted January 2, 2016 Hi.. I followed your guide to the letter .. but I do not understand how to view the id of my pg .. when I run the login window does not open .. how do I do?I have to create a button to display it? Link to comment Share on other sites More sharing options...
berk 1 Posted February 13, 2016 Share Posted February 13, 2016 Thank you sanchez its wery helpfull Link to comment Share on other sites More sharing options...
mdxyz 240 Posted February 13, 2016 Share Posted February 13, 2016 tx 2 Link to comment Share on other sites More sharing options...
yekta745 0 Posted April 28, 2016 Share Posted April 28, 2016 thank you Link to comment Share on other sites More sharing options...
kodepiko 38 Posted June 4, 2016 Share Posted June 4, 2016 would be nice to see how to deal with string type value in packet at clientside, I'm getting mad trying to catch string at clientside, always some errors.. Link to comment Share on other sites More sharing options...
Asha 8 Posted September 22, 2016 Share Posted September 22, 2016 Thank you. Really helped me to understand how it works packets in Metin2. A great like. Link to comment Share on other sites More sharing options...
iRemixDerGott 1 Posted January 3, 2017 Share Posted January 3, 2017 Is there any part of the game which uses UDP? Also I'd like to point out that the code in the original post is bad, the structure should be packed to ensure that there is no padding - this is standard practise. 1 Link to comment Share on other sites More sharing options...
kordel33 0 Posted August 16, 2017 Share Posted August 16, 2017 Hi, how i can remove limited warehouse ? I can only put items at first slot Link to comment Share on other sites More sharing options...
Alchemy 4 Posted January 6, 2018 Share Posted January 6, 2018 Thanks Link to comment Share on other sites More sharing options...
kingshero 8 Posted May 27, 2018 Share Posted May 27, 2018 hello in client src in PythonNetworkStreamPhaseGame.cpp in this function bool CPythonNetworkStream::RecvGuild() i see switch (GuildPacket.subheader) { case GUILD_SUBHEADER_GC_LIST: { how to get TPacketGCGuildSubMember from game this packet in game src packet.h not found and when edit TGuildMemberPacketData in guild.h i have SYSERR: Unknown packet header: 102, last: 75 75 in client syserr Link to comment Share on other sites More sharing options...
Dean 85 Posted July 27, 2018 Share Posted July 27, 2018 You're the real MVP! Thanks a bunch mate, most appreciated! 1 for brain_cells in xrange(brain): if brain_cells == 0: print("0x3703c7 Fatal error occurred. Please replace the brain.") break if brain_cells == "damaged": print("0x3703c7 Error occurred. Please repair damaged brain_cells") break print("brain_cells are at 100% capacity.") Link to comment Share on other sites More sharing options...
timsah724 0 Posted January 17, 2019 Share Posted January 17, 2019 why dont I see anything log-related Link to comment Share on other sites More sharing options...
nefdulin 69 Posted May 4, 2020 Share Posted May 4, 2020 (edited) Okay, so if you do all the steps in the first post you will NOT see any log box appering. This is not a bug or an error on your end. The problem(!) is very simple. We created the logic of what happens when we send our packet but we didn't send the packet at all. And since this is a new packet we've written the game will not send it for us. Let's say we want to send the packet when we pickup an item. To achieve that all we have to do is call "SendMetin2DevPacket" function inside PickupItem(DWORD dwVID) function. You can find the PickupItem function inside char_item.cpp file. Edited May 4, 2020 by nefdulin 1 Link to comment Share on other sites More sharing options...
KemppiOn 0 Posted May 12, 2020 Share Posted May 12, 2020 Just a question - Does what youre trying to do now comply with the terms of service/license agreement of this game? And also, what is this WPE you mention? Link to comment Share on other sites More sharing options...
Finnael 481 Posted August 10, 2020 Share Posted August 10, 2020 (edited) On 5/12/2020 at 12:51 PM, KemppiOn said: Just a question - Does what youre trying to do now comply with the terms of service/license agreement of this game? As far as I know, It doesn't. Thanks for the guide btw. Very helpful. Edited August 10, 2020 by Finnael Link to comment Share on other sites More sharing options...
ridetpro 117 Posted August 10, 2020 Share Posted August 10, 2020 On 5/12/2020 at 12:51 PM, KemppiOn said: Just a question - Does what youre trying to do now comply with the terms of service/license agreement of this game? And also, what is this WPE you mention? WPE- Winsock packet editor http://www.packeteditor.com/?call=61626F7574 1 1 Link to comment Share on other sites More sharing options...
Premium astroNOT 161 Posted March 9, 2021 Premium Share Posted March 9, 2021 On 2/23/2014 at 1:41 AM, Sanchez said: def Button1_Event(self net.SendM2DevPacket(player.GetTargetVID()) Hello, Ik its an old post, but on the last bit, with the button creation, can't see to figure out in which module (python file) to put the class method? And under what class? And also, who's "net", if anybody could help, would really appreciate it! Link to comment Share on other sites More sharing options...
Recommended Posts