Jump to content

Speachless

Premium
  • Posts

    683
  • Joined

  • Last visited

  • Days Won

    8
  • Feedback

    0%

Everything posted by Speachless

  1. Topic updated. Should work ok for marty now too and you can chose if you want to load from d or not.
  2. I did multitasking and I burned my brain that's why i reacted like that. Posting on dev, writing on discord, answering to questions in the game, fixing a post on server's forum, checking the code, configuring a vps. all in the same time. #include <iostream> using namespace std; int main() { std::string FileNameStr = "d:/ymir work"; if (FileNameStr.find("ymir") == string::npos) cout<<"Hello World"; else cout<<"it is ymir"; } CPU Time: 0.00 sec(s), Memory: 3236 kilobyte(s) #include <iostream> using namespace std; int main() { std::string FileNameStr = "d:/ymir work"; if (FileNameStr[1] != ':') cout<<"Hello World"; else cout<<"it is ymir"; } CPU Time: 0.00 sec(s), Memory: 3240 kilobyte(s) And there is no performance difference between "ymir" and : It is more acurate with : i know. But both works in metin2 case and once i will test with : i will update the post.
  3. You're confusing a thing. All metin2 sources are configured to load the files from d:/ymir work. It's only for test-environment not for release. Still my way has less performance loss. and there is no point to change. See the videos above. This is my last time i enter any forum. Same shit happened in the past and i have no patience to argue like in the old days. Run tests before post.
  4. Problem happens on a cd/dvd-rom not on a hard drive. ElRenardo code doesn't fix this problem. As long as you do my tutorial the problem is permanently solved with no visible performance loss or crashes. Please run some test first.
  5. You're way doesn't fix the slow loading when a dvdrom is connected.
  6. I've done the test of course. No more slow loading if i have a dvdrom with letter D. No file is loaded from d:/ymir work I had no time to shorten the code, i just wanted to get it work and after it worked i posted for everyone. Everyone can make it better after. ##########
  7. In EterPackManager.cpp update this: bool CEterPackManager::Get(CMappedFile & rMappedFile, const char * c_szFileName, LPCVOID * pData) { if (m_iSearchMode == SEARCH_PACK_FIRST) { if (GetFromPack(rMappedFile, c_szFileName, pData)) return true; if (c_szFileName[1] != ':' && GetFromFile(rMappedFile, c_szFileName, pData)) { TraceError("%s", c_szFileName); // only for log. it's not an error. return true; } } if (m_iSearchMode == SEARCH_FILE_FIRST) { if (GetFromFile(rMappedFile, c_szFileName, pData)) return true; return GetFromPack(rMappedFile, c_szFileName, pData); } return false; } And bool CEterPackManager::isExist(const char * c_szFileName) { return isExistInPack(c_szFileName); } In CEterPackManager::GetFromFile comment if(m_bTryRelativePath) {.....} (not sure necessary, i did it in the past) In UserInterface set bPackFirst to true to not load from d:/ and false to load from d:/ bool bPackFirst = TRUE; bPackFirst = TRUE; There is a common problem on all metin2 sources. The game will first load the files which are in d:/ymir work folder and if you have a dvd/cd-rom with letter D the game will load very slow and have big fps drops (for some players the game can be unplayable). I know many players who had a dvd-rom with letter D and reported me how bad the client works. Using this solution: 1. The game will no longer load d:/ymir files. 2. Client will open faster, load the files faster. 3. Less fps drop. Normal metin2 client without fix and with a dvd-rom that has letter D assigned: [Hidden Content] After fix: [Hidden Content] Check this video:
  8. In shop_manager LPITEM item = owner->GetItem(pTable[i]->pos); if (item->IsEquipped() == true) continue; [Hidden Content] Should work.
  9. I like the titlebar we have when compiling with vs2019, but makes the client to have a bigger height. In PythonSystem.cpp search for if (m_Config.height >= screen_height) And update with if (m_Config.height >= screen_height) { int config_height = m_Config.height; int difference = (config_height-screen_height)+7; m_Config.height = config_height - difference; } Without fix: With fix:
  10. Thank you for doing this. I would like to donate for your work. Send me a paypal adress via private message.
  11. In the end I succeeded! I can't explain in words the feeling. Launcher works normal on vs 2015. Now, i will start with the tutorial. The important thing, i learned about compiling libs. #Done, works perfect.
  12. In order that mali's tutorial to work i have upgraded from vs2013 to 2015, but i can't fix the unexternal error about libjpeg even i have recompiled the lib with vs2015. Edit: I upgraded to vs2019, tutorial is fully functional.
  13. I checked your files. I am sure my compiler is not compatible with the code. I am installing a newer version and try again.
  14. I pay for Discord SDK implementation. Actualy, i want to make discord to see the game when i start it. Write me in private.
  15. Check your tables, go to navigat and repiar your tables. After search for any syserr failed query.
  16. In root/npclist.txt you write the vnum of mob + folder name In mob_proto you create the vnum for the pet In quest of pet_system you add the vnum of item and vnum of mob. For weapons you have to create vnum in item_proto (database and client), and in locale/language/itemlist.txt you add the vnum and weapon location. To see an example search for 469 vnum.
  17. Dear lord, protect us from mad people.
  18. I received a warning because i wanted the topic to have no title or content, but the answer to be in comments, because this forum can't have a restriction for non-registered users so all kids can copy paste elsewhere under their name.
  19. Rinnegan edit RegisterMotionData not RegisterCacheMotionData
  20. Just move to dmca friendtly hosting providers and don't use metin2 logo.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.