Premium filipw1 1930 Posted March 9, 2022 Premium Share Posted March 9, 2022 This is the hidden content, please Sign In or Sign Up Metin2 Download or This is the hidden content, please Sign In or Sign Up Time of loading each fragment of the game before and after 453 3 10 5 2 1 1 1 3 3 5 1 120 19 190 Link to comment Share on other sites More sharing options...
Active Member Thorek 281 Posted March 13, 2022 Active Member Share Posted March 13, 2022 (edited) Good work ༼ ͡° ͜ʖ ͡° ༽ Edited March 13, 2022 by Thorek 1 1 3 Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4880 Posted March 13, 2022 Bot Share Posted March 13, 2022 (edited) work perfect Edited August 16, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
CITY 38 Posted March 13, 2022 Share Posted March 13, 2022 (edited) GM.mse not work problem with effect [GM] https://metin2.download/picture/S82l0FK8w2Qq0LhZd0650B2G1ZuiO4SM/.jpg another problem add #include "PythonPlayer.h" problem solver Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium filipw1 1930 Posted March 13, 2022 Author Premium Share Posted March 13, 2022 (edited) 2 hours ago, CITY said: GM.mse not work problem with effect [GM] https://metin2.download/picture/79wyE4ZzLzywCzt92D6fS0qHXt7FGgAY/.jpg another problem add #include "PythonPlayer.h" problem solver Thanks for mentioning, forget to add include. I'll eat my rosół and then update the repository. Updated repository. Those who already added the code, please replace it with new one. Otherwise when you use emoticons (ctrl + 1 etc) players around you won't see it. Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4880 Posted March 13, 2022 Bot Share Posted March 13, 2022 5 minutes ago, filipw1 said: Updated repository. Those who already added the code, please replace it with new one. Otherwise when you use emoticons (ctrl + 1 etc) players around you won't see it. The new emotion like official doesn't work Link to comment Share on other sites More sharing options...
Active Member Thorek 281 Posted March 13, 2022 Active Member Share Posted March 13, 2022 (edited) 18 minutes ago, Cryptex said: The new emotion like official doesn't work You must add new emotion to m_vecEffectData vector and v_vecEmoticonString. Edited March 13, 2022 by Thorek Link to comment Share on other sites More sharing options...
CITY 38 Posted March 13, 2022 Share Posted March 13, 2022 2 hours ago, filipw1 said: Thanks for mentioning, forget to add include. I'll eat my rosół and then update the repository. Updated repository. Those who already added the code, please replace it with new one. Otherwise when you use emoticons (ctrl + 1 etc) players around you won't see it. thanks Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4880 Posted March 13, 2022 Bot Share Posted March 13, 2022 (edited) strange effect when i hit monster, players Edited August 16, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
CITY 38 Posted March 14, 2022 Share Posted March 14, 2022 (edited) 12 hours ago, Cryptex said: strange effect when i hit monster, players You need to configure their own playersettings to fix the problem Edited August 16, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4880 Posted March 14, 2022 Bot Share Posted March 14, 2022 6 minutes ago, CITY said: You need to configure their own playersettings to fix the problem I can't wait to check each line ... 1 2 Link to comment Share on other sites More sharing options...
EAkar 8 Posted March 17, 2022 Share Posted March 17, 2022 (edited) std::vector<TEffect> m_vecEffectData = Edited August 26, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
MariusDrg95 1 Posted March 27, 2022 Share Posted March 27, 2022 (edited) How can i solve this? I use a clean source Edited August 16, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
avertusss 8 Posted April 9, 2022 Share Posted April 9, 2022 (edited) On 3/17/2022 at 12:59 PM, EAkar said: std::vector<TEffect> m_vecEffectData = I have the same problem @filipw1 Any solution? Edited August 26, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
EAkar 8 Posted April 16, 2022 Share Posted April 16, 2022 On 4/9/2022 at 7:29 PM, avertusss said: I have the same problem @filipw1 Any solution? Yes : "Bip01", "D:/ymir work/pc/common/effect/armor/armor_9_terabithia.mse" No :(VS ERROR) : "Bip01", 'D:/ymir work/pc/common/effect/armor/armor_9_terabithia.mse" ' ' ' ' No " " " Yes OK? Control files. { pkBase.EFFECT_EMOTICON + 17, "", "d:/ymir work/effect/etc/emoticon/hungry.mse" }, { pkBase.EFFECT_EMOTICON + 18, "", "d:/ymir work/effect/etc/emoticon/siren.mse" }, { pkBase.EFFECT_EMOTICON + 19, "", "d:/ymir work/effect/etc/emoticon/letter.mse" }, { pkBase.EFFECT_EMOTICON + 20, "", "d:/ymir work/effect/etc/emoticon/call.mse" }, { pkBase.EFFECT_EMOTICON + 21, "", "d:/ymir work/effect/etc/emoticon/celebration.mse" }, { pkBase.EFFECT_EMOTICON + 22, "", "d:/ymir work/effect/etc/emoticon/alcohol.mse" }, { pkBase.EFFECT_EMOTICON + 23, "", "d:/ymir work/effect/etc/emoticon/busy.mse" }, { pkBase.EFFECT_EMOTICON + 24, "", "d:/ymir work/effect/etc/emoticon/whirl.mse" }, new emotions(emotion bag) added but not working. On 3/13/2022 at 3:46 PM, Thorek said: You must add new emotion to m_vecEffectData vector and v_vecEmoticonString. new emotions(emotion bag) added but not working. { pkBase.EFFECT_EMOTICON + 17, "", "d:/ymir work/effect/etc/emoticon/hungry.mse" }, { pkBase.EFFECT_EMOTICON + 18, "", "d:/ymir work/effect/etc/emoticon/siren.mse" }, { pkBase.EFFECT_EMOTICON + 19, "", "d:/ymir work/effect/etc/emoticon/letter.mse" }, { pkBase.EFFECT_EMOTICON + 20, "", "d:/ymir work/effect/etc/emoticon/call.mse" }, { pkBase.EFFECT_EMOTICON + 21, "", "d:/ymir work/effect/etc/emoticon/celebration.mse" }, { pkBase.EFFECT_EMOTICON + 22, "", "d:/ymir work/effect/etc/emoticon/alcohol.mse" }, { pkBase.EFFECT_EMOTICON + 23, "", "d:/ymir work/effect/etc/emoticon/busy.mse" }, { pkBase.EFFECT_EMOTICON + 24, "", "d:/ymir work/effect/etc/emoticon/whirl.mse" }, Link to comment Share on other sites More sharing options...
EAkar 8 Posted April 17, 2022 Share Posted April 17, 2022 (edited) It's working perfectly now. here is the plugin for new feelings for you: Search: { pkMotionManager.NAME_ANGRY, "angry.msa", 0 }, ADD: { pkMotionManager.NAME_DANCE_7, "dance_7.msa", 0 }, { pkMotionManager.NAME_JOY, "joy.msa", 0 }, { pkMotionManager.NAME_PUSHUP, "pushup.msa", 0 }, { pkMotionManager.NAME_EXERCISE, "exercise.msa", 0 }, { pkMotionManager.NAME_DOZE, "doze.msa", 0 }, { pkMotionManager.NAME_SELFIE, "selfie.msa", 0 }, Search: { pkBase.EFFECT_EMOTICON + 11, "", "d:/ymir work/effect/etc/emoticon/fish.mse" }, ADD: { pkBase.EFFECT_EMOTICON + 12, "", "d:/ymir work/effect/etc/emoticon/charging.mse" }, { pkBase.EFFECT_EMOTICON + 13, "", "d:/ymir work/effect/etc/emoticon/nosay.mse" }, { pkBase.EFFECT_EMOTICON + 14, "", "d:/ymir work/effect/etc/emoticon/weather1.mse" }, { pkBase.EFFECT_EMOTICON + 15, "", "d:/ymir work/effect/etc/emoticon/weather2.mse" }, { pkBase.EFFECT_EMOTICON + 16, "", "d:/ymir work/effect/etc/emoticon/weather3.mse" }, { pkBase.EFFECT_EMOTICON + 17, "", "d:/ymir work/effect/etc/emoticon/hungry.mse" }, { pkBase.EFFECT_EMOTICON + 18, "", "d:/ymir work/effect/etc/emoticon/siren.mse" }, { pkBase.EFFECT_EMOTICON + 19, "", "d:/ymir work/effect/etc/emoticon/letter.mse" }, { pkBase.EFFECT_EMOTICON + 20, "", "d:/ymir work/effect/etc/emoticon/call.mse" }, { pkBase.EFFECT_EMOTICON + 21, "", "d:/ymir work/effect/etc/emoticon/celebration.mse" }, { pkBase.EFFECT_EMOTICON + 22, "", "d:/ymir work/effect/etc/emoticon/alcohol.mse" }, { pkBase.EFFECT_EMOTICON + 23, "", "d:/ymir work/effect/etc/emoticon/busy.mse" }, { pkBase.EFFECT_EMOTICON + 24, "", "d:/ymir work/effect/etc/emoticon/whirl.mse" }, If you use it this way, the emoji of new emotions will not appear in the game (except for animations such as dancing, selfie) So use it this way. Open PlayerSettingsModule.py Search: def __LoadGameEffect(): if app.ENABLE_CPP_PSM: cpsm.LoadGameEffect() ADD: net.RegisterEmoticonString("(sweat)") net.RegisterEmoticonString("(money)") net.RegisterEmoticonString("(happy)") net.RegisterEmoticonString("(love)") net.RegisterEmoticonString("(love2)") net.RegisterEmoticonString("(angry)") net.RegisterEmoticonString("(aha)") net.RegisterEmoticonString("(gloom)") net.RegisterEmoticonString("(sorry)") net.RegisterEmoticonString("(!)") net.RegisterEmoticonString("(?)") net.RegisterEmoticonString("(fish)") if app.ENABLE_EXPRESSING_EMOTION: ## THANK YOU OWSAP net.RegisterEmoticonString("(charging)") net.RegisterEmoticonString("(nosay)") net.RegisterEmoticonString("(weather1)") net.RegisterEmoticonString("(weather2)") net.RegisterEmoticonString("(weather3)") net.RegisterEmoticonString("(hungry)") net.RegisterEmoticonString("(siren)") net.RegisterEmoticonString("(letter)") net.RegisterEmoticonString("(call)") net.RegisterEmoticonString("(celebration)") net.RegisterEmoticonString("(alcohol)") net.RegisterEmoticonString("(busy)") net.RegisterEmoticonString("(whirl)") now everything is ok. If you are using the S Skill system. PlayerSettingsModule.cpp Open Search and Replace: static const DWORD GUILD_SKILL_DRAGONBLOOD = pkMotionManager.NAME_SKILL + 107; static const DWORD GUILD_SKILL_DRAGONBLESS = pkMotionManager.NAME_SKILL + 108; static const DWORD GUILD_SKILL_BLESSARMOR = pkMotionManager.NAME_SKILL + 109; static const DWORD GUILD_SKILL_SPPEDUP = pkMotionManager.NAME_SKILL + 110; static const DWORD GUILD_SKILL_DRAGONWRATH = pkMotionManager.NAME_SKILL + 111; static const DWORD GUILD_SKILL_MAGICUP = pkMotionManager.NAME_SKILL + 112; static const DWORD HORSE_SKILL_WILDATTACK = pkMotionManager.NAME_SKILL + 113; static const DWORD HORSE_SKILL_CHARGE = pkMotionManager.NAME_SKILL + 114; static const DWORD HORSE_SKILL_SPLASH = pkMotionManager.NAME_SKILL + 115; Note : If your 6th Skills are not visible Open PlayerSettingsModule.py and Search and Change : NEW_678TH_SKILL_ENABLE = constInfo.NEW_678TH_SKILL_ENABLE Now everything is smooth. Take care of yourselves. I love you. Greetings from Turkey. Edited April 17, 2022 by EAkar Link to comment Share on other sites More sharing options...
Akino 0 Posted April 18, 2022 Share Posted April 18, 2022 (edited) The idea is good, but after adding this, you will notice that when a player approaches or you go to cities with players, the game loses fps (possibly this is normal on all clients before adding this, don't know, never had it on my server, probably been using LoadStaticCache forever) I recommend using the LoadStaticCache, this makes loading slower but will prevent fps drop when rendering nearby players. Example: char szFileName[FILE_MAX_NUM]; pRaceData->RegisterMotionMode(pkMotionManager.MODE_GENERAL); for (const auto& it : m_vecEmotion) { snprintf(szFileName, sizeof(szFileName), "%s%s%s", stFolder, "action/", it.stName); auto pkMootionThing = pRaceData->RegisterMotionData(pkMotionManager.MODE_GENERAL, it.wMotionIndex, szFileName, it.byPercentage); if (pkMootionThing) { CResourceManager::Instance().LoadStaticCache(pkMootionThing->GetFileName()); } } For emoticons, I suggest you change the way they are done, for example in game.py: Replace: net.SendChatPacket("(double_kill)") For: chrmgr.SetEmoticon(-1,14) net.SendEmoticon(14) #####Note: If you do the LoadStaticCache instead of making the load faster, it will make it slower.### Edited April 18, 2022 by Akino 1 Link to comment Share on other sites More sharing options...
Helsinky 533 Posted April 26, 2022 Share Posted April 26, 2022 (edited) well, is a problem with horse skill and kingdoms language the spells for the horse are gone and those for the kingdom are moved down Edited August 16, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium Jfirewall 280 Posted April 26, 2022 Premium Share Posted April 26, 2022 in pythonplayersettingsmodule.cpp search const bool CPlayerSettingsModule::LoadGameSound() and under add: const bool CPlayerSettingsModule::LoadGameNPC() { using namespace boost::algorithm; CMappedFile file; const VOID* pvData; if (!CEterPackManager::Instance().Get(file, NPC_LIST_FILE_NAME, &pvData)) { TraceError("CPythonPlayerSettingsModule::LoadGameNPC(fileName=%s) - Load Error", NPC_LIST_FILE_NAME); return false; } CMemoryTextFileLoader fileLoader; fileLoader.Bind(file.Size(), pvData); CTokenVector kTokenVector; for (size_t i = 0; i < fileLoader.GetLineCount(); ++i) { if (!fileLoader.SplitLineByTab(i, &kTokenVector)) continue; const uint32_t& vnum = atoi(kTokenVector[0].c_str()); std::string& name = kTokenVector[1]; trim(name); if (vnum) { CRaceManager::Instance().RegisterRaceName(vnum, name.c_str()); } else { std::string& src = kTokenVector[2]; trim(src); CRaceManager::Instance().RegisterRaceSrcName(name.c_str(), src.c_str()); } } return true; } search cpsmLoadGameSkill and under add: PyObject* cpsmLoadGameNPC(PyObject* poSelf, PyObject* poArgs) { CPlayerSettingsModule::LoadGameNPC(); return Py_BuildNone(); } search { "LoadGameSkill", cpsmLoadGameSkill, METH_VARARGS }, and add under: { "LoadGameNPC", cpsmLoadGameNPC, METH_VARARGS }, in pythonplayersettingsmodule.h search #pragma once and under add: static const char* NPC_LIST_FILE_NAME = "npclist.txt"; search const static bool LoadGameSound(); and under add: const static bool LoadGameNPC(); in root playersetingmodule.py searh def __LoadGameNPC(): and replace: def __LoadGameNPC(): if app.ENABLE_CPP_PSM: cpsm.LoadGameNPC() else: ## paste your code here pass update npclist.txt 1 1 Link to comment Share on other sites More sharing options...
Premium filipw1 1930 Posted April 26, 2022 Author Premium Share Posted April 26, 2022 @firewall I measured this, for me it takes 7 to 10 ms to load npclist so I thought it isn't a big deal. Link to comment Share on other sites More sharing options...
MariusDrg95 1 Posted April 26, 2022 Share Posted April 26, 2022 (edited) On c++20 i receive this error If i change the compiler to c++17 or lower it works, is any solution to make it work on c++20 ? Edited August 16, 2022 by Metin2 Dev Core X - External 2 Internal 1 1 Link to comment Share on other sites More sharing options...
naber 0 Posted July 1, 2022 Share Posted July 1, 2022 (edited) On 4/26/2022 at 4:09 PM, MariusDrg95 said: On c++20 i receive this error If i change the compiler to c++17 or lower it works, is any solution to make it work on c++20 ? +1 Edited August 15, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
forum80 18 Posted July 29, 2022 Share Posted July 29, 2022 (edited) sura horse skill problem ? https://metin2.download/picture/iWEj7qUIIONIQflilNZURDnfrYsCdkU6/.gif #solved Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Tuckii 10 Posted September 7, 2022 Share Posted September 7, 2022 (edited) anyone having something like this? Edited September 11, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Thrall 182 Posted September 7, 2022 Share Posted September 7, 2022 Its working fine, thanks for the release, but the FPS DROP when player is loading is just to bad... Link to comment Share on other sites More sharing options...
Recommended Posts