Sherer 481 Posted November 30, 2017 Share Posted November 30, 2017 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Hello, Working on some new stuff I found out that current implementation of event looks a bit tricky. Due to this fact I basically deciced to re-implement it in C++11 providing up to date tech. Don`t forget to take a look at this topic before you start: https://metin2dev.org/board/index.php?/topic/305-src-compile-with-gcc48-c11-and-optimized-flags/ So lets begin. Add include into the main.cpp: #ifdef __NEW_EVENT_HANDLER__ #include "EventFunctionHandler.h" #endif And add this into main function before: while (idle()); #ifdef __NEW_EVENT_HANDLER__ CEventFunctionHandler EventFunctionHandler; #endif Now add this at the end of idle: #ifdef __NEW_EVENT_HANDLER__ CEventFunctionHandler::instance().Process(); #endif Now search for: sys_log(0, "<shutdown> Destroying CArenaManager..."); And add before: #ifdef __NEW_EVENT_HANDLER__ sys_log(0, "<shutdown> Destroying CEventFunctionHandler..."); CEventFunctionHandler::instance().Destroy(); #endif Now open service.h and add this define: #define __NEW_EVENT_HANDLER__ That`s all. Now just download attachment and add included files to your source. 46 1 2 12 1 65 Link to comment Share on other sites More sharing options...
Салом 20 Posted November 30, 2017 Share Posted November 30, 2017 @Sherer We can not open the attachment file. Please upload the files to an external site (Mega/dropbox) Link to comment Share on other sites More sharing options...
Sherer 481 Posted December 1, 2017 Author Share Posted December 1, 2017 50 minut temu, Салом napisał: @Sherer We can not open the attachment file. Please upload the files to an external site (Mega/dropbox) Added Link to comment Share on other sites More sharing options...
Honorable Member Mali 41858 Posted December 1, 2017 Honorable Member Share Posted December 1, 2017 Nice :') Link to comment Share on other sites More sharing options...
Tasho 243 Posted December 1, 2017 Share Posted December 1, 2017 #ifdef __NEW_EVENT_HANDLER__ CEventFunctionHandler EventFunctionHandler; #endif That doesn't need to exist, but if someone really want to use: Search for: CEventFunctionHandler::instance().Process(); Replace with: EventFunctionHandler.Process(); Thanks for release, i like that structure, keep up the good work. Link to comment Share on other sites More sharing options...
Sherer 481 Posted December 1, 2017 Author Share Posted December 1, 2017 2 godziny temu, Tasho napisał: #ifdef __NEW_EVENT_HANDLER__ CEventFunctionHandler EventFunctionHandler; #endif That doesn't need to exist, but if someone really want to use: Search for: CEventFunctionHandler::instance().Process(); Replace with: EventFunctionHandler.Process(); Thanks for release, i like that structure, keep up the good work. Indeed. It is just singleton initial call. Link to comment Share on other sites More sharing options...
Sherer 481 Posted October 24, 2019 Author Share Posted October 24, 2019 Reupload (cannot edit thread):https://gofile.io/?c=ZZuJVu 2 Link to comment Share on other sites More sharing options...
CenkAksu 0 Posted May 18, 2020 Share Posted May 18, 2020 hello @Sherer realy nice post! Can you reupload the files please? Link to comment Share on other sites More sharing options...
Honorable Member Mali 41858 Posted May 18, 2020 Honorable Member Share Posted May 18, 2020 This is the hidden content, please Sign In or Sign Up 40 1 1 11 7 Link to comment Share on other sites More sharing options...
Mafuyu 51 Posted April 13, 2021 Share Posted April 13, 2021 REUPLOAD AMK Link to comment Share on other sites More sharing options...
Honorable Member Mali 41858 Posted April 13, 2021 Honorable Member Share Posted April 13, 2021 (edited) 40 minutes ago, Mafuyu said: REUPLOAD AMK Why are you cursing for no reason? Link is at the top of the topic. You might want to go for an eye checkup. Edited April 13, 2021 by Mali61 1 Link to comment Share on other sites More sharing options...
Mafuyu 51 Posted April 13, 2021 Share Posted April 13, 2021 (edited) 2 minutes ago, Mali61 said: Why are you cursing for no reason? Link is at the top of the topic. You might want to go for an eye checkup. big brain i wouldnt cry if it would be that simple my guuuuy Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Honorable Member Mali 41858 Posted April 13, 2021 Honorable Member Share Posted April 13, 2021 (edited) 2 minutes ago, Mafuyu said: big brain i wouldnt cry if it would be that simple my guuuuy The link is broken = I have to swear Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Mafuyu 51 Posted April 13, 2021 Share Posted April 13, 2021 (edited) Just now, Mali61 said: The link is broken = I have to swear is this some "only paid user can access this website" shit? Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Management AZICKO 7343 Posted April 13, 2021 Management Share Posted April 13, 2021 (edited) 4 minutes ago, Mafuyu said: big brain i wouldnt cry if it would be that simple my guuuuy What browser are you using? Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal 1 Scamming ? Reselling ? metin2.download | metin2.dev | fr.metin2.dev | metin2dev.org | metin2.top | top-metin2.org Link to comment Share on other sites More sharing options...
Mafuyu 51 Posted April 13, 2021 Share Posted April 13, 2021 (edited) 3 minutes ago, ASIKOO said: What browser are you using? Im using opera gx €dit: website is getting blocked because of some trojans out there (malwarebytes detecting it) ffs Edited April 13, 2021 by Mafuyu Link to comment Share on other sites More sharing options...
Management AZICKO 7343 Posted April 13, 2021 Management Share Posted April 13, 2021 2 minutes ago, Mafuyu said: Im using opera gx I do not understand, are you using a VPN? Proxy? Scamming ? Reselling ? metin2.download | metin2.dev | fr.metin2.dev | metin2dev.org | metin2.top | top-metin2.org Link to comment Share on other sites More sharing options...
Mafuyu 51 Posted April 13, 2021 Share Posted April 13, 2021 (edited) 1 minute ago, ASIKOO said: I do not understand, are you using a VPN? Proxy? no, website is getting blocked by malwarebytes because of trojan detection. I turned it off then it worked^^ Edited April 13, 2021 by Mafuyu Link to comment Share on other sites More sharing options...
Management AZICKO 7343 Posted April 13, 2021 Management Share Posted April 13, 2021 1 minute ago, Mafuyu said: no, website is getting blocked by malwarebytes because of trojan detection. I turned it off then it worked^^ Hm.. Okay Scamming ? Reselling ? metin2.download | metin2.dev | fr.metin2.dev | metin2dev.org | metin2.top | top-metin2.org Link to comment Share on other sites More sharing options...
Recommended Posts