Premium WeedHex 635 Posted September 8, 2022 Premium Share Posted September 8, 2022 27 minutes ago, Thrall said: Its working fine, thanks for the release, but the FPS DROP when player is loading is just to bad... You can buy the real system from who made it for first. 1 2 Link to comment Share on other sites More sharing options...
Premium filipw1 1927 Posted September 8, 2022 Author Premium Share Posted September 8, 2022 7 hours ago, WeedHex said: You can buy the real system from who made it for first. If you read carefully a name of the topic you can actually see what this code is meant for. Link to comment Share on other sites More sharing options...
Artvr3 19 Posted September 9, 2022 Share Posted September 9, 2022 (edited) On 9/7/2022 at 11:52 AM, Tuckii said: anyone having something like this? Check that you have the same case-sensitive " initplayersettingsmodule " . UserInterface.cpp / StdAfx.h / PythonPlayerSettingsModule.cpp Edited September 11, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
ArturxApsik 0 Posted September 13, 2022 Share Posted September 13, 2022 anyone have problem with damage value ? 1 Link to comment Share on other sites More sharing options...
tarata12 16 Posted October 5, 2022 Share Posted October 5, 2022 (edited) when I go to create a new character the client closes syserr: 1005 05:35:14488 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 8 1005 05:35:14488 :: CGraphicThingInstance::RegisterModelThing(iModelThing=0, pModelThing=d:\ymir work\pc\warrior\warrior_novice.gr2) Fix## Edited October 5, 2022 by tarata12 Link to comment Share on other sites More sharing options...
Syntaax 5 Posted October 17, 2022 Share Posted October 17, 2022 If i try to start the client it says "No module named cpsm" any idea ? 1 Link to comment Share on other sites More sharing options...
forum80 18 Posted November 20, 2022 Share Posted November 20, 2022 2 minutes ago, Ymir said: I have both of these problems, does anyone know how to fix them? I have both of these problems, does anyone know how to fix them? 1.PyhonPlayerSetting.cpp look Horse skills make all like warrior horse charge, horse splash 2. problem check playerSetting.py affect count and PyhonPlayerSetting.cpp Link to comment Share on other sites More sharing options...
Ymir 4 Posted November 20, 2022 Share Posted November 20, 2022 On 11/20/2022 at 11:54 PM, forum80 said: 1.PyhonPlayerSetting.cpp look Le abilità del cavallo rendono tutti come la carica del cavallo guerriero, lo splash del cavallo 2. controllo problema playerSetting.py conteggio degli effetti e PyhonPlayerSetting.cpp Sorry, I didn't understand well Does anyone have a solution? Horse skills and "damage" on mobs are no longer seen 1 Link to comment Share on other sites More sharing options...
PandiCore 9 Posted January 10, 2023 Share Posted January 10, 2023 how to add this if app.ENABLE_PREMIUM_EFFECT_ABOVE_HEAD: chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+45, "Bip01", localeInfo.FN_PREMIUM_MARK) #!!! Pay attention for ID of that effect!!! # END_OF_LOCALE on pythonplayersettingsmodule? Link to comment Share on other sites More sharing options...
PandiCore 9 Posted January 14, 2023 Share Posted January 14, 2023 up Link to comment Share on other sites More sharing options...
Pseudabo 32 Posted April 2, 2023 Share Posted April 2, 2023 My client randomly crash after teleport (no any error, syserr clean, I dont find any problem in game, all works perfect - effects, icons, skills, dmg, gm flag, horse, etc..) Using cython, anyone has similar problem or can know whats problem? Its only with teleport 1-5 teleports.. Game is clean, without any problem. Link to comment Share on other sites More sharing options...
Active Member Draveniou1 715 Posted April 2, 2023 Active Member Share Posted April 2, 2023 3 hours ago, Pseudabo said: My client randomly crash after teleport (no any error, syserr clean, I dont find any problem in game, all works perfect - effects, icons, skills, dmg, gm flag, horse, etc..) Using cython, anyone has similar problem or can know whats problem? Its only with teleport 1-5 teleports.. Game is clean, without any problem. It's not a full tutorial man You have to think and add your own effects/motion 1 1 Link to comment Share on other sites More sharing options...
Pseudabo 32 Posted April 2, 2023 Share Posted April 2, 2023 20 minutes ago, Draveniou1 said: It's not a full tutorial man You have to think and add your own effects/motion Actually no. I found problem. If you noticed, there are 67 spells hardcoded in the code and the game loads these files regardless of whether the spells are enabled or not. The problem is that the client randomly crashes during teleportation because it reads TGA images as DDS. This is an old bug that has been causing problems for some time now. A good example of this is loading images when moving from locale to etc. Therefore, if you have these files in the game but have 67 spells disabled, it will result in crashes and you won't get any errors because there are technically none. I'm adding a fix. I recommend applying it to any client because it's not just a fix for this thread, but an overall fix for the client and a prevention of crashes. EterImageLib/DXTCImage.cpp Search: bool CDXTCImage::LoadHeaderFromMemory(const BYTE * c_pbMap) Change: bool CDXTCImage::LoadHeaderFromMemory(const BYTE * c_pbMap, int iSize) Search: DWORD dwMagic; Add under: if (iSize < sizeof(DWORD)) return false; Search: dwMagic = *(DWORD *) c_pbMap; c_pbMap += sizeof(DWORD); Add under: iSize -= sizeof(DWORD); Search: DDSURFACEDESC2 ddsd; Add under: if (iSize < sizeof(DDSURFACEDESC2)) return false; Search: memcpy(&ddsd, c_pbMap, sizeof(DDSURFACEDESC2)); c_pbMap += sizeof(DDSURFACEDESC2); Add under: iSize -= sizeof(DDSURFACEDESC2); Search: return LoadFromMemory((const BYTE*) pvMap); Change: return LoadFromMemory((const BYTE*) pvMap, mappedFile.Size()); Search: bool CDXTCImage::LoadFromMemory(const BYTE * c_pbMap) Change: bool CDXTCImage::LoadFromMemory(const BYTE * c_pbMap, int iSize) Search: if (!LoadHeaderFromMemory(c_pbMap)) Change: if (!LoadHeaderFromMemory(c_pbMap, iSize)) EterImageLib/DXTCImage.h Search: bool LoadFromMemory(const BYTE * c_pbMap); bool LoadHeaderFromMemory(const BYTE * c_pbMap); Change: bool LoadFromMemory(const BYTE * c_pbMap, int iSize); bool LoadHeaderFromMemory(const BYTE * c_pbMap, int iSize); EterLib/GrpImageTexture.cpp Search: if (image.LoadHeaderFromMemory((const BYTE *) c_pvBuf)) Change: if (image.LoadHeaderFromMemory((const BYTE *) c_pvBuf, bufSize)) 10 Link to comment Share on other sites More sharing options...
Honorable Member martysama0134 7174 Posted April 3, 2023 Honorable Member Share Posted April 3, 2023 (edited) On 4/2/2023 at 9:51 AM, Pseudabo said: Actually no. I found problem. If you noticed, there are 67 spells hardcoded in the code and the game loads these files regardless of whether the spells are enabled or not. The problem is that the client randomly crashes during teleportation because it reads TGA images as DDS. This is an old bug that has been causing problems for some time now. A good example of this is loading images when moving from locale to etc. Therefore, if you have these files in the game but have 67 spells disabled, it will result in crashes and you won't get any errors because there are technically none. I'm adding a fix. I recommend applying it to any client because it's not just a fix for this thread, but an overall fix for the client and a prevention of crashes. EterImageLib/DXTCImage.cpp Search: bool CDXTCImage::LoadHeaderFromMemory(const BYTE * c_pbMap) Change: bool CDXTCImage::LoadHeaderFromMemory(const BYTE * c_pbMap, int iSize) Search: DWORD dwMagic; Add under: if (iSize < sizeof(DWORD)) return false; Search: dwMagic = *(DWORD *) c_pbMap; c_pbMap += sizeof(DWORD); Add under: iSize -= sizeof(DWORD); Search: DDSURFACEDESC2 ddsd; Add under: if (iSize < sizeof(DDSURFACEDESC2)) return false; Search: memcpy(&ddsd, c_pbMap, sizeof(DDSURFACEDESC2)); c_pbMap += sizeof(DDSURFACEDESC2); Add under: iSize -= sizeof(DDSURFACEDESC2); Search: return LoadFromMemory((const BYTE*) pvMap); Change: return LoadFromMemory((const BYTE*) pvMap, mappedFile.Size()); Search: bool CDXTCImage::LoadFromMemory(const BYTE * c_pbMap) Change: bool CDXTCImage::LoadFromMemory(const BYTE * c_pbMap, int iSize) Search: if (!LoadHeaderFromMemory(c_pbMap)) Change: if (!LoadHeaderFromMemory(c_pbMap, iSize)) EterImageLib/DXTCImage.h Search: bool LoadFromMemory(const BYTE * c_pbMap); bool LoadHeaderFromMemory(const BYTE * c_pbMap); Change: bool LoadFromMemory(const BYTE * c_pbMap, int iSize); bool LoadHeaderFromMemory(const BYTE * c_pbMap, int iSize); EterLib/GrpImageTexture.cpp Search: if (image.LoadHeaderFromMemory((const BYTE *) c_pvBuf)) Change: if (image.LoadHeaderFromMemory((const BYTE *) c_pvBuf, bufSize)) This fixes the fog.tga issue too. I forgot to add this fix on the WE. Edited April 3, 2023 by martysama0134 3 Check out my GitHub Link to comment Share on other sites More sharing options...
Pseudabo 32 Posted April 4, 2023 Share Posted April 4, 2023 On 4/3/2023 at 10:10 AM, martysama0134 said: This fixes the fog.tga issue too. I forgot to add this fix on the WE. +1 - thanks for your work Link to comment Share on other sites More sharing options...
iSkyx 5 Posted June 4, 2023 Share Posted June 4, 2023 Anyone know how to fix this? 0604 11:40:04110 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 5 0604 11:40:04110 :: CResourceManager::GetResourcePointer: filename error! Link to comment Share on other sites More sharing options...
Premium DemOnJR 564 Posted August 7, 2023 Premium Share Posted August 7, 2023 Update to C++20 This is the hidden content, please Sign In or Sign Up or This is the hidden content, please Sign In or Sign Up idk if is the right one but is working... On 6/4/2023 at 10:42 AM, iSkyx said: Anyone know how to fix this? 0604 11:40:04110 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 5 0604 11:40:04110 :: CResourceManager::GetResourcePointer: filename error! Edit the followin lines with your msm locations mine are inside root/msm/.... static std::vector<TRaceData> m_vecRaceData = { { RACE_WARRIOR_M, "msm/warrior_m.msm", "d:/ymir work/pc/warrior/intro/" }, { RACE_WARRIOR_W, "msm/warrior_w.msm", "d:/ymir work/pc2/warrior/intro/" }, { RACE_ASSASSIN_W, "msm/assassin_w.msm", "d:/ymir work/pc/assassin/intro/" }, { RACE_ASSASSIN_M, "msm/assassin_m.msm", "d:/ymir work/pc2/assassin/intro/" }, { RACE_SURA_M, "msm/sura_m.msm", "d:/ymir work/pc/sura/intro/" }, { RACE_SURA_W, "msm/sura_w.msm", "d:/ymir work/pc2/sura/intro/" }, { RACE_SHAMAN_W, "msm/shaman_w.msm", "d:/ymir work/pc/shaman/intro/" }, { RACE_SHAMAN_M, "msm/shaman_m.msm", "d:/ymir work/pc2/shaman/intro/" }, }; Tests Wihout: With CPP PSM: 37 7 14 Link to comment Share on other sites More sharing options...
Premium filipw1 1927 Posted August 8, 2023 Author Premium Share Posted August 8, 2023 On 8/7/2023 at 5:15 AM, DemOnJR said: Update to C++20 This is the hidden content, please Sign In or Sign Up or This is the hidden content, please Sign In or Sign Up idk if is the right one but is working... Edit the followin lines with your msm locations mine are inside root/msm/.... static std::vector<TRaceData> m_vecRaceData = { { RACE_WARRIOR_M, "msm/warrior_m.msm", "d:/ymir work/pc/warrior/intro/" }, { RACE_WARRIOR_W, "msm/warrior_w.msm", "d:/ymir work/pc2/warrior/intro/" }, { RACE_ASSASSIN_W, "msm/assassin_w.msm", "d:/ymir work/pc/assassin/intro/" }, { RACE_ASSASSIN_M, "msm/assassin_m.msm", "d:/ymir work/pc2/assassin/intro/" }, { RACE_SURA_M, "msm/sura_m.msm", "d:/ymir work/pc/sura/intro/" }, { RACE_SURA_W, "msm/sura_w.msm", "d:/ymir work/pc2/sura/intro/" }, { RACE_SHAMAN_W, "msm/shaman_w.msm", "d:/ymir work/pc/shaman/intro/" }, { RACE_SHAMAN_M, "msm/shaman_m.msm", "d:/ymir work/pc2/shaman/intro/" }, }; Tests Wihout: With CPP PSM: Thanks! I've updated repository with your contribution. 5 1 3 Link to comment Share on other sites More sharing options...
Active+ Member blaxis 274 Posted October 4, 2023 Active+ Member Share Posted October 4, 2023 On 7/29/2022 at 10:35 PM, forum80 said: sura horse skill problem ? https://metin2.download/picture/iWEj7qUIIONIQflilNZURDnfrYsCdkU6/.gif #solved How? I have same problem 1 Link to comment Share on other sites More sharing options...
Premium Ulthar 3093 Posted December 27, 2023 Premium Share Posted December 27, 2023 (edited) https://metin2.download/picture/XFiv7iCRb93jh1VbF5Icfi2Cdh7vAqZg/.gif Its working. edit: also, i dont have any lag when i meet a player. (The typical 0.5/1 sec lag u know) Edited December 27, 2023 by Ulthar Core X - External 2 Internal 1 Ulthar Link to comment Share on other sites More sharing options...
Active+ Member LethalArms 343 Posted December 27, 2023 Active+ Member Share Posted December 27, 2023 This is the hidden content, please Sign In or Sign Up If anyone wants to have this system with Lykan here are the files, i've changed them to work with lykan, it took me a lot of time but it works! Just replace, compile, and it should all work normally. 11 4 2 Link to comment Share on other sites More sharing options...
Amsterdam 340 Posted January 2 Share Posted January 2 someone can post here the horse skill bug fix? i look in all the files and i don't understand why is not working Link to comment Share on other sites More sharing options...
Premium Ulthar 3093 Posted January 2 Premium Share Posted January 2 14 minutes ago, Amsterdam said: someone can post here the horse skill bug fix? i look in all the files and i don't understand why is not working Set it to m1, for me its owrking on M1, but not on P. Ulthar Link to comment Share on other sites More sharing options...
Filachilla 29 Posted January 2 Share Posted January 2 19 minutes ago, Ulthar said: Set it to m1, for me its owrking on M1, but not on P. Because when you check char_skill.cpp, M1 is the maximum.. It's akin to fishing.. Notice that it's not even in the skill_proto (thus has no level), and this isn't a tutorial copy and paste. This is a clean foundation where you need to go through all the skills and their index and adapt it to your game." Link to comment Share on other sites More sharing options...
Premium Ulthar 3093 Posted January 2 Premium Share Posted January 2 3 minutes ago, Filachilla said: Because when you check char_skill.cpp, M1 is the maximum.. It's akin to fishing.. Notice that it's not even in the skill_proto (thus has no level), and this isn't a tutorial copy and paste. This is a clean foundation where you need to go through all the skills and their index and adapt it to your game." thanks for the long aswer. ofc. Ulthar Link to comment Share on other sites More sharing options...
Recommended Posts