Jump to content

Metin2 Dev

Bot
  • Posts

    2151
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Metin2 Dev

  1. Official root with those changes is public.
  2. You mean ProtoReader ? For unpacking item_ mob_ proto from official locale ?
  3. Two hours? For real?
  4. Of course it depends on all those things you have metion but I'm just curious how long is compiling anybody else, no matter what. Yes, of course there is a difference between #ifdefs. To clarify my question I would like to know which of these are better to give to the players?
  5. What's the difference between Distribute and Release?
  6. Hi community! I've been recently making some changes to my solution and it's projects and I managed to optimalize the compilation process of client binary in debug mode to 4 minutes. I think it is a good opportunity to compare it with you. How long do you compile your client binary in debug mode (Clean Solution -> Rebuild Solution)?
  7. This is just an example of "fixing this bug for making more bugs *yaaay*".
  8. What is the latest change you have made?
  9. Lol never, this is joke. But thanks for mention.
  10. Dump_Proto from sources should works fine.
  11. To the players that are already inside, take them out to the login and then tell them something like "your account is already connected"?
  12. Well actually I still can't manage connection with database via packets.
  13. Many people had some problems with a stuffs around protos. Please unpack your current and make sure there are really correct values.
  14. Make sure you are editing correct thing. If you are using SQL, edit a value in database, if txt, then edit it in text files.
  15. This is really usefull if you are newbie into a development. But be aware of possible SQL injection (not this case). It is better to do this within a packets system.
  16. How do you want to get those data if you removed calling?
  17. Would be great to know more info. Did you removed argument from declaration of function?
  18. What about this? void LocaleService_LoadConfig() { MULTI_LOCALE_REPORT_PORT = 1012, MULTI_LOCALE_CODE = 0; strcpy(MULTI_LOCALE_NAME, "pl"); sprintf(MULTI_LOCALE_PATH, "locale/%s", "pl"); } #HardCoded
  19. You don't have an object called closeButton in UIScript/WhisperDialog.py.
  20. Well, there is second solution which should be better but I think it's the same. Make sure you will implement this to an old broken file. In method MessengerManager::RemoveFromList search for: if (companion.size() == 0) return; Under this add: if (!IsInList(account, companion)) return; Then add a new method to a file: bool MessengerManager::IsInList(MessengerManager::keyA account, MessengerManager::keyA companion) { if (m_Relation.find(account) == m_Relation.end()) return false; if (m_Relation[account].empty()) return false; return m_Relation[account].find(companion) != m_Relation[account].end(); } And do not forget to declare the method in Database/Messenger_Message.h: bool IsInList(MessengerManager::keyA account, MessengerManager::keyA companion);
  21. I'm not sure but I guess that pc.give_item() is not stacking items like pc.give_item2() does and that's a difference between them.
  22. In Database/Messenger_Manager.cpp find method MessengerManager::RemoveFromList and replace it by: void MessengerManager::RemoveFromList(MessengerManager::keyA account, MessengerManager::keyA companion) { if (companion.empty()) return; char companionEscaped[CHARACTER_NAME_MAX_LEN * 2 + 1]; DBManager::instance().EscapeString(companionEscaped, sizeof(companionEscaped), companion.c_str(), companion.length()); DBManager::instance().Query("DELETE FROM messenger_list%s WHERE account='%s' AND companion = '%s'", get_table_postfix(), account.c_str(), companionEscaped); __RemoveFromList(account, companion); sys_log(1, "Messenger Remove %s %s", account.c_str(), companion.c_str()); TPacketGGMessenger pack; pack.bHeader = HEADER_GG_MESSENGER_REMOVE; strlcpy(pack.szAccount, account.c_str(), sizeof(pack.szAccount)); strlcpy(pack.szCompanion, companion.c_str(), sizeof(pack.szCompanion)); P2P_MANAGER::instance().Send(&pack, sizeof(TPacketGGMessenger)); }
×
×
  • 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.