Honorable Member Mali 41859 Posted March 15, 2019 Honorable Member Share Posted March 15, 2019 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) This is the hidden content, please Sign In or Sign Up ( GitHub ) Spoiler 95 2 3 2 1 2 21 2 57 Link to comment Share on other sites More sharing options...
karde2018 0 Posted March 16, 2019 Share Posted March 16, 2019 Oh, Tnx Link to comment Share on other sites More sharing options...
r00t3r 67 Posted March 16, 2019 Share Posted March 16, 2019 Thank, tested and working . Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted March 16, 2019 Share Posted March 16, 2019 Hi there, first, thanks for you sharing, But there is a problem for users of 2008 c++ compilator: std::vector::emplace_back Used in PythonWhisper.h: {if (std::find(b_writing[i].begin(), b_writing[i].end(), name) == b_writing[i].end()) b_writing[i].emplace_back(name);}; Isn't supported (https://en.cppreference.com/w/cpp/container/vector/emplace_back) due to older c++ version. Anyway, thanks for the share 1 Link to comment Share on other sites More sharing options...
Honorable Member Mali 41859 Posted March 16, 2019 Author Honorable Member Share Posted March 16, 2019 Just change emplace_back to push_back And please don't use vs2008 in 2019 2 Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted March 16, 2019 Share Posted March 16, 2019 (edited) I don't use vs2008 xD I just tell it because many people will come there and cry because they've followed tutorials Anyway your system works but there's 2 problems I let you show https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif (1 can be fixed easly on the source) https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif (Without submitting anything) Edited August 27, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
Honorable Member Mali 41859 Posted March 16, 2019 Author Honorable Member Share Posted March 16, 2019 (edited) Barbara Palvin is so beautiful Edited March 16, 2019 by Mali61 for barbara Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted March 16, 2019 Share Posted March 16, 2019 (edited) Take a look: An example: Hi {enter} Hi {delete} Salut {enter} there is already 8 request (also 8 logs) for 2 words. I think with many players it can be a real problems of performance and mysql spam. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active Member hachiwari 138 Posted March 16, 2019 Active Member Share Posted March 16, 2019 Nice piece of shit Link to comment Share on other sites More sharing options...
Honorable Member Mali 41859 Posted March 16, 2019 Author Honorable Member Share Posted March 16, 2019 (edited) 10 minutes ago, tmoitoi said: Take a look: An example: Hi {enter} Hi {delete} Salut {enter} there is already 8 request (also 8 logs) for 2 words. I think with many players it can be a real problems of performance and mysql spam. I changed code in PythonNetworkStreamPhaseGame.cpp. Can you test it? Thanks for the message 6 minutes ago, hachiwari said: Nice piece of shit Edited August 26, 2022 by Metin2 Dev Core X - External 2 Internal 3 Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted March 16, 2019 Share Posted March 16, 2019 Still the same Link to comment Share on other sites More sharing options...
Honorable Member Mali 41859 Posted March 16, 2019 Author Honorable Member Share Posted March 16, 2019 Fixed offline player problem: https://www.youtube.com/watch?v=GzNYtKLRADE&feature=youtu.be 2 Link to comment Share on other sites More sharing options...
Kori 170 Posted March 16, 2019 Share Posted March 16, 2019 59 minutes ago, tmoitoi said: Still the same You can try to add a bypass for log this with regex Here is a example http://txt2re.com/index-c++.php3?s=|?whisper_renewal<|&3&-1 // URL that generated this code: // http://txt2re.com/index-c++.php3?s=|?whisper_renewal<|&3&-1 #include <stdlib.h> #include <string> #include <iostream> #include <pme.h> int main() { std::string txt="|?whisper_renewal<|"; std::string re1=".*?"; // Non-greedy match on filler std::string re2="(whisper_renewal)"; // Variable Name 1 PME re(re1+re2,"gims"); int n; if ((n=re.match(txt))>0) { std::string var1=re[1].c_str(); std::cout << "("<<var1<<")"<< std::endl; } } //----- // C++ does not provide a regular expression feature as standard. // // To run this code you will need to first download and install // the PCRE library from http://www.pcre.org/ and // the PME library from ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Contrib/ // // Note that on Linux systems PCRE is often already installed in /usr/lib/libpcre* or /usr/local/lib/libpcre*. // // Compile and run on Unix using // # c++ x.cpp -lpme -lpcre // # ./a.out With c++11 is easy with std::regex 1 1 Link to comment Share on other sites More sharing options...
tmoitoi 26 Posted March 16, 2019 Share Posted March 16, 2019 Fix for offline players work well About log I already ignore the whisper_renewal sequence and now that's perfect. @Kori i show here log to understand the problem 1 Link to comment Share on other sites More sharing options...
kondzio299 1 Posted April 12, 2019 Share Posted April 12, 2019 I have problem in clinet, 0412 16:45:37904 :: File "uiWhisper.py", line 303, in OnUpdate 0412 16:45:37906 :: AttributeError 0412 16:45:37906 :: : 0412 16:45:37907 :: 'NoneType' object has no attribute 'GetText' 0412 16:45:37908 :: Spoiler if len(self.chatLine.GetText()) > 0 and not whisper.IsSended(self.targetName): Link to comment Share on other sites More sharing options...
kondzio299 1 Posted April 15, 2019 Share Posted April 15, 2019 Dnia 12.04.2019 o 16:56, kondzio299 napisał: I have problem in clinet, 0412 16:45:37904 :: File "uiWhisper.py", line 303, in OnUpdate 0412 16:45:37906 :: AttributeError 0412 16:45:37906 :: : 0412 16:45:37907 :: 'NoneType' object has no attribute 'GetText' 0412 16:45:37908 :: Odkryj ukrytą treść if len(self.chatLine.GetText()) > 0 and not whisper.IsSended(self.targetName): can anyone help? Please Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10272 Posted April 15, 2019 Forum Moderator Share Posted April 15, 2019 On 4/12/2019 at 5:56 PM, kondzio299 said: 0412 16:45:37904 :: File "uiWhisper.py", line 303, in OnUpdate 0412 16:45:37906 :: AttributeError 0412 16:45:37906 :: : 0412 16:45:37907 :: 'NoneType' object has no attribute 'GetText' 0412 16:45:37908 :: You should replace the condition in function OnUpdate: #if 0 != self.targetName: if self.targetName and self.chatLine: 1 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
Honorable Member Mali 41859 Posted April 15, 2019 Author Honorable Member Share Posted April 15, 2019 54 minutes ago, VegaS™ said: You should replace the condition in function OnUpdate: #if 0 != self.targetName: if self.targetName and self.chatLine: Updated thanks 1 Link to comment Share on other sites More sharing options...
Raptt 0 Posted April 17, 2019 Share Posted April 17, 2019 Révélation 0417 04:02:51745 :: File "ui.py", line 1020, in CallEvent 0417 04:02:51745 :: File "ui.py", line 88, in __call__ 0417 04:02:51745 :: File "ui.py", line 70, in __call__ 0417 04:02:51745 :: File "uiWhisper.py", line 316, in AcceptTarget 0417 04:02:51746 :: File "interfaceModule.py", line 1488, in RegisterTemporaryWhisperDialog 0417 04:02:51746 :: File "uiWhisper.py", line 224, in OpenWithTarget 0417 04:02:51746 :: File "uiWhisper.py", line 322, in SetTimer 0417 04:02:51746 :: NameError 0417 04:02:51746 :: : 0417 04:02:51746 :: global name 'time' is not defined *edit *solved Link to comment Share on other sites More sharing options...
Catii 94 Posted April 17, 2019 Share Posted April 17, 2019 Acum 13 minute, Raptt a spus: 0417 04:02:51745 :: File "ui.py", line 1020, in CallEvent 0417 04:02:51745 :: File "ui.py", line 88, in __call__ 0417 04:02:51745 :: File "ui.py", line 70, in __call__ 0417 04:02:51745 :: File "uiWhisper.py", line 316, in AcceptTarget 0417 04:02:51746 :: File "interfaceModule.py", line 1488, in RegisterTemporaryWhisperDialog 0417 04:02:51746 :: File "uiWhisper.py", line 224, in OpenWithTarget 0417 04:02:51746 :: File "uiWhisper.py", line 322, in SetTimer 0417 04:02:51746 :: NameError 0417 04:02:51746 :: : 0417 04:02:51746 :: global name 'time' is not defined import time Link to comment Share on other sites More sharing options...
Raptt 0 Posted April 17, 2019 Share Posted April 17, 2019 yes thanks! nice system thanks! good job Link to comment Share on other sites More sharing options...
cjunior2011 8 Posted May 14, 2019 Share Posted May 14, 2019 (edited) what's wrong? Spoiler code: Spoiler Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
IShungite 2 Posted June 5, 2019 Share Posted June 5, 2019 (edited) Le 14/05/2019 à 07:18, cjunior2011 a dit : what's wrong? Révéler le contenu masqué code: Révéler le contenu masqué Try : def Close(self): chat.ClearWhisper(self.targetName) if app.ENABLE_WHISPER_RENEWAL: if self.targetName != 0: if whisper.IsSended(self.targetName) and self.targetName: whisper.Remove(self.targetName) Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
cjunior2011 8 Posted June 6, 2019 Share Posted June 6, 2019 21 hours ago, IShungite said: Try : def Close(self): chat.ClearWhisper(self.targetName) if app.ENABLE_WHISPER_RENEWAL: if self.targetName != 0: if whisper.IsSended(self.targetName) and self.targetName: whisper.Remove(self.targetName) #Solved thank u very much, its solved my problem, @IShungite 1 Link to comment Share on other sites More sharing options...
Spamp 0 Posted July 23, 2019 Share Posted July 23, 2019 I followed the Tutorial but when i click on the Whisper Button my Metin2 crashed. Hope anyone can help me. uiWhisper.py(line:94) LoadDialog ui.py(line:2832) GetChild DialogWindow.LoadDialog.BindObject - <type 'exceptions.KeyError'>:'typing' 0723 10:16:40437 :: ============================================================================================================ 0723 10:16:40437 :: Abort!!!! uiwhisper.py try: GetObject=self.GetChild self.titleName = GetObject("titlename") self.titleNameEdit = GetObject("titlename_edit") self.closeButton = GetObject("closebutton") self.scrollBar = GetObject("scrollbar") self.chatLine = GetObject("chatline") self.minimizeButton = GetObject("minimizebutton") self.ignoreButton = GetObject("ignorebutton") self.reportViolentWhisperButton = GetObject("reportviolentwhisperbutton") self.acceptButton = GetObject("acceptbutton") self.sendButton = GetObject("sendbutton") self.board = GetObject("board") self.editBar = GetObject("editbar") self.gamemasterMark = GetObject("gamemastermark") #typing if app.ENABLE_WHISPER_RENEWAL: self.typing = GetObject("typing") except: import exception exception.Abort("DialogWindow.LoadDialog.BindObject") Link to comment Share on other sites More sharing options...
Recommended Posts