Former Staff arves100 1669 Posted October 23, 2020 Former Staff Share Posted October 23, 2020 (edited) Memory leaks are very important when we speak about reusing memory, it prevents the game to keep allocating new RAM over and over. WIth this simple fixes memory leaks on Metin2 will be fixed. 1. Server Open the file game/main.cpp Search this function: int main(int argc, char **argv) { After this add the following code: return 0; Now open the file db/Main.cpp. Search this function: int main() { After this add the following code: return 0; 2. Client Open the file UserInterface/UserInterface.cpp Search this function: int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { After this add the following code: return 0; I hope it will works now, enjoy just 200MB for a complete client. Good luck. Edited November 4, 2021 by VegaS™ 2 1 1 1 20 18 Everyday you wake up as a Metin2 developer is a bad day... METIN1 src when Link to comment Share on other sites More sharing options...
Johnny69 410 Posted October 23, 2020 Share Posted October 23, 2020 Best fix ever. No memory leak for me. Thanks. 1 Link to comment Share on other sites More sharing options...
HITRON 746 Posted October 23, 2020 Share Posted October 23, 2020 Stop releasing the secrets for fixing memory leaks ffs. 1 Link to comment Share on other sites More sharing options...
Premium WeedHex 646 Posted October 23, 2020 Premium Share Posted October 23, 2020 (edited) On 10/23/2020 at 10:15 AM, HITRON said: Stop releasing the secrets for fixing memory leaks ffs. kekky Edited August 10, 2022 by WeedHex Link to comment Share on other sites More sharing options...
Hik 110 Posted October 23, 2020 Share Posted October 23, 2020 Like this? int main(int argc, char **argv) { return 0; #ifdef DEBUG_ALLOC DebugAllocator::StaticSetUp(); #endif ecc... } 1 Link to comment Share on other sites More sharing options...
Honorable Member Mali 47540 Posted October 23, 2020 Honorable Member Share Posted October 23, 2020 (edited) I'm still getting messages like this: you finally got me out of this trouble with a professional solution. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 2 Link to comment Share on other sites More sharing options...
Former Staff arves100 1669 Posted October 23, 2020 Author Former Staff Share Posted October 23, 2020 18 minutes ago, Hik said: Like this? int main(int argc, char **argv) { return 0; #ifdef DEBUG_ALLOC DebugAllocator::StaticSetUp(); #endif ecc... } Yes! 1 1 1 Everyday you wake up as a Metin2 developer is a bad day... METIN1 src when Link to comment Share on other sites More sharing options...
DrTurk 136 Posted October 23, 2020 Share Posted October 23, 2020 Nice tutorial, my server is now running flawless Link to comment Share on other sites More sharing options...
Premium WeedHex 646 Posted October 23, 2020 Premium Share Posted October 23, 2020 (edited) Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium masodikbela 1481 Posted October 23, 2020 Premium Share Posted October 23, 2020 (edited) Me upon opening the topic: https://static.wikia.nocookie.net/darkestdungeon_gamepedia/images/3/38/Vo_narr_town_backstory_19.ogg Edited October 23, 2020 by masodikbela 2 The one and only UI programming guideline Something New Link to comment Share on other sites More sharing options...
Hik 110 Posted October 23, 2020 Share Posted October 23, 2020 It works great! : D Link to comment Share on other sites More sharing options...
Management ɛʟ Ǥʟɑçѳи 🧊 7910 Posted October 23, 2020 Management Share Posted October 23, 2020 Works. Thanks! 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...
66Dragon99 284 Posted October 23, 2020 Share Posted October 23, 2020 dunno does anyone found other kind of memory leaks? Link to comment Share on other sites More sharing options...
Xelo 1 Posted October 23, 2020 Share Posted October 23, 2020 Thank u very much, it work's perfectly! Link to comment Share on other sites More sharing options...
Forum Moderator Gurgarath 2904 Posted October 23, 2020 Forum Moderator Share Posted October 23, 2020 Excellent work! It's just mastermind because we all tried to fix memory leaks by ourselves and try to analize them while in fact we can simply tell the game to return 0 to every memory it stores once it used it. Excellent. Deserved +1 2 Gurgarath coming soon Link to comment Share on other sites More sharing options...
66Dragon99 284 Posted October 24, 2020 Share Posted October 24, 2020 dunno check if Dungeon using more memory than right, with notice on all entities or otherwise if this stuff isn't necessery everythings OK... 00 Link to comment Share on other sites More sharing options...
LastSamurai23 240 Posted October 24, 2020 Share Posted October 24, 2020 thanks! Link to comment Share on other sites More sharing options...
DomeSs 0 Posted October 24, 2020 Share Posted October 24, 2020 its make 100kb less for me Link to comment Share on other sites More sharing options...
Tunga 10 Posted October 27, 2020 Share Posted October 27, 2020 thanks it works. its even doesn't use ram. Link to comment Share on other sites More sharing options...
Kafa 160 Posted October 27, 2020 Share Posted October 27, 2020 funny Link to comment Share on other sites More sharing options...
Premium TAUMP 926 Posted October 27, 2020 Premium Share Posted October 27, 2020 thanks, my server works without ram. 3 Link to comment Share on other sites More sharing options...
Developer Mitachi 1864 Posted October 27, 2020 Developer Share Posted October 27, 2020 Always the best. Link to comment Share on other sites More sharing options...
flexio 83 Posted October 28, 2020 Share Posted October 28, 2020 i did everything from tutorial and it doesnt work. Can you help me please. Teşekkür ederim Link to comment Share on other sites More sharing options...
HITRON 746 Posted October 29, 2020 Share Posted October 29, 2020 Thanks again, I'm not paying anymore host 300€ with 64GB Ram, Now is enough to use even 4GB Ram without problems and still too much and only for 20€ per month, you have helped me a lot, send me your PayPal so i can donate some € for this amazing tutorial! 2 Link to comment Share on other sites More sharing options...
Active Member MariusExygo 1173 Posted October 31, 2020 Active Member Share Posted October 31, 2020 not working for me, i have error "return is not defined" 2 7 https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now