CxL'Mufuku 800 Posted February 3, 2019 Share Posted February 3, 2019 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Hi, I don't think I have to tell much about this. It'll look like the official one, some code is c&p from the official root files. Most of the own written code is NOT like the offical one. I added a new python module ("renderTarget"), so you don't need methods which officials use, like this: "playerm2g2.MyShopDecoShow( True )" You are able to display more than one render target at the same time. If you want to know more, take a look at the code. If there are any bugs, just message me. Download: This is the hidden content, please Sign In or Sign Up Password: Cxl.Services 383 5 5 6 8 3 4 1 1 6 4 5 2 132 17 224 __________________________________________________________________________________________Never trade with an alleged "CxL'"-Member on this board. You can see a list of all verified members *here*. I don't care what they all say I'ma do this thing my way Been grinding hard on it all day We work hard then we all play Link to comment Share on other sites More sharing options...
Forum Moderator Raylee 658 Posted February 3, 2019 Forum Moderator Share Posted February 3, 2019 Cool work Keep it up Best regards Raylee Link to comment Share on other sites More sharing options...
Tunga 10 Posted February 3, 2019 Share Posted February 3, 2019 Thanks! Link to comment Share on other sites More sharing options...
Active Member Koray 2011 Posted February 3, 2019 Active Member Share Posted February 3, 2019 I don't tested ingame just looked a little bit to codes probably there is have a memory leak, doesn't exist any exception handler and a typo issue. Quote auto pTex = new CGraphicRenderTargetTexture; if (!pTex->Create(width, height, D3DFMT_X8R8G8B8, D3DFMT_D16)) { delete pTex; TraceError("CRenderTarget::CRenderTarget: Could not create CGraphicRenderTargetTexture %dx%d", width, height); throw std::runtime_error("CRenderTarget::CRenderTarget: Could not create CGraphicRenderTargetTexture"); } m_renderTargetTexture = std::unique_ptr<CGraphicRenderTargetTexture>(pTex); you can modify with; (not tested) Quote auto pTex = std::make_shared<CGraphicRenderTargetTexture>(); if (!pTex->Create(width, height, D3DFMT_X8R8G8B8, D3DFMT_D16)) { TraceError("CRenderTarget::CRenderTarget: Could not create CGraphicRenderTargetTexture %u%u", width, height); PostQuitMessage(0); } m_renderTargetTexture = std::unique_ptr<CGraphicRenderTargetTexture>(*pTex); 2 Link to comment Share on other sites More sharing options...
CxL'Mufuku 800 Posted February 3, 2019 Author Share Posted February 3, 2019 (edited) vor 1 Stunde schrieb Koray: I don't tested ingame just looked a little bit to codes probably there is have a memory leak, doesn't exist any exception handler and a typo issue. As far as I remember your code will crash, however, there will be no problem if you init the unique pointer with the raw pointer (as long as you won't delete the object via the raw pointer) But you're right with the TraceError it should be %u, but I am quite sure no one will ever get this error. Also the exception should work without problems, it will show an error and close the client.- I think it's just a matter of ones own liking. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal __________________________________________________________________________________________Never trade with an alleged "CxL'"-Member on this board. You can see a list of all verified members *here*. I don't care what they all say I'ma do this thing my way Been grinding hard on it all day We work hard then we all play Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted February 4, 2019 Share Posted February 4, 2019 I have this error: Compilator intern error in grprendertargettexture.h and i dont know why And this is the line RECT m_renderRect{}; https://m2admin.net/ Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted February 4, 2019 Share Posted February 4, 2019 hace 25 minutos, ѕeмa™ dijo: I have this error: Compilator intern error in grprendertargettexture.h and i dont know why And this is the line RECT m_renderRect{}; Solved using this: https://support.microsoft.com/es-es/help/3185410/c1001-internal-compiler-error-occurs-when-you-build-a-visual-c-project 3 1 1 1 6 https://m2admin.net/ Link to comment Share on other sites More sharing options...
jackdagostino 0 Posted February 4, 2019 Share Posted February 4, 2019 what exactly does this do? sorry, I'm Italian I do not understand English well Link to comment Share on other sites More sharing options...
CxL'Mufuku 800 Posted February 4, 2019 Author Share Posted February 4, 2019 vor 4 Stunden schrieb ѕeмa™: Solved using this: https://support.microsoft.com/es-es/help/3185410/c1001-internal-compiler-error-occurs-when-you-build-a-visual-c-project Great that you got it working by yourself. I don't have time to test, but you shoud be able to remove the {} After that it should compile without the hotfix. (The bracets are some "magic" of resharper) vor 1 Minute schrieb jackdagostino: what exactly does this do? sorry, I'm Italian I do not understand English well It's the "ingame granny/model viewer" of the officials. It's used there for the shop decoration and monster card system. Ofc you can do much more with it. 1 __________________________________________________________________________________________Never trade with an alleged "CxL'"-Member on this board. You can see a list of all verified members *here*. I don't care what they all say I'ma do this thing my way Been grinding hard on it all day We work hard then we all play Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted February 4, 2019 Share Posted February 4, 2019 hace 1 minuto, CxL'Mufuku dijo: Great that you got it working by yourself. I don't have time to test, but you shoud be able to remove the {} After that it should compile without the hotfix. (The bracets are some "magic" of resharper) Yes it works but the animation doesnt work for me idk why, still searching... 76a6b7e7353c0406535010f8a6401d29.mp4 https://m2admin.net/ Link to comment Share on other sites More sharing options...
CxL'Mufuku 800 Posted February 4, 2019 Author Share Posted February 4, 2019 (edited) Gerade eben schrieb ѕeмa™: Yes it works but the animation doesnt work for me idk why, still searching... 76a6b7e7353c0406535010f8a6401d29.mp4 Seems like its not calling RenderModels, did you add it correctly? Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal __________________________________________________________________________________________Never trade with an alleged "CxL'"-Member on this board. You can see a list of all verified members *here*. I don't care what they all say I'ma do this thing my way Been grinding hard on it all day We work hard then we all play Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted February 4, 2019 Share Posted February 4, 2019 (edited) Yep hace 1 minuto, CxL'Mufuku dijo: Seems like its not calling RenderModels, did you add it correctly? Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal https://m2admin.net/ Link to comment Share on other sites More sharing options...
CxL'Mufuku 800 Posted February 4, 2019 Author Share Posted February 4, 2019 (edited) vor 2 Minuten schrieb ѕeмa™: Yep hmm. PERF_CHECKER_RENDER_GAME is set to false? You could check it with TraceError("test..."); after RenderModels(); (Idk, if debug mode will change something on this var) Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal __________________________________________________________________________________________Never trade with an alleged "CxL'"-Member on this board. You can see a list of all verified members *here*. I don't care what they all say I'ma do this thing my way Been grinding hard on it all day We work hard then we all play Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted February 4, 2019 Share Posted February 4, 2019 (edited) hace 2 minutos, CxL'Mufuku dijo: hmm. PERF_CHECKER_RENDER_GAME is set to false? You could check it with TraceError("test..."); after RenderModels(); (Idk, if debug mode will change something on this var) Yes it is false, and i use distribute mode Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal https://m2admin.net/ Link to comment Share on other sites More sharing options...
CxL'Mufuku 800 Posted February 4, 2019 Author Share Posted February 4, 2019 (edited) vor 3 Minuten schrieb ѕeмa™: Yes it is false, and i use distribute mode Well it's difficult without seeing your source. However, have a look at the "AlwaysRender" part, it could be that too. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal __________________________________________________________________________________________Never trade with an alleged "CxL'"-Member on this board. You can see a list of all verified members *here*. I don't care what they all say I'ma do this thing my way Been grinding hard on it all day We work hard then we all play Link to comment Share on other sites More sharing options...
Premium TAUMP 852 Posted February 4, 2019 Premium Share Posted February 4, 2019 Why you use Distribute wtf? 1 Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted February 4, 2019 Premium Share Posted February 4, 2019 28 minutes ago, T4UMP said: Why you use Distribute wtf? ? 4 Link to comment Share on other sites More sharing options...
Sumnix 9 Posted February 5, 2019 Share Posted February 5, 2019 9 hours ago, ѕeмa™ said: Yes it works but the animation doesnt work for me idk why, still searching... 76a6b7e7353c0406535010f8a6401d29.mp4 PythonApplication.cpp find -> void CPythonApplication::UpdateGame() find -> DWORD t3=ELTimer_GetMSec(); add before -> m_kRenderTargetManager.UpdateModels(); Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted February 5, 2019 Share Posted February 5, 2019 hace 5 horas, Sumnix dijo: PythonApplication.cpp find -> void CPythonApplication::UpdateGame() find -> DWORD t3=ELTimer_GetMSec(); add before -> m_kRenderTargetManager.UpdateModels(); Solved. The problem was updatemodels after a return in if (!PERF_CHECKER_RENDER_GAME) { i didnt saw that .... anyway thanks all of you. 1 https://m2admin.net/ Link to comment Share on other sites More sharing options...
Kori 170 Posted February 5, 2019 Share Posted February 5, 2019 1 hour ago, ѕeмa™ said: Solved. The problem was updatemodels after a return in if (!PERF_CHECKER_RENDER_GAME) { i didnt saw that .... anyway thanks all of you. Can you share with all users here? Link to comment Share on other sites More sharing options...
Premium msnas 1427 Posted February 5, 2019 Premium Share Posted February 5, 2019 il y a 1 minute, Kori a dit : Can you share with all users here? It's not that hard. if (!PERF_CHECKER_RENDER_GAME) { m_kRenderTargetManager.RenderBackgrounds(); float fAspect=m_kWndMgr.GetAspect(); float fFarClip=m_pyBackground.GetFarClip(); m_pyGraphic.SetPerspective(30.0f, fAspect, 100.0, fFarClip); CCullingManager::Instance().Process(); m_kChrMgr.Deform(); m_kEftMgr.Update(); m_kRenderTargetManager.DeformModels(); Link to comment Share on other sites More sharing options...
Kori 170 Posted February 5, 2019 Share Posted February 5, 2019 3 minutes ago, Mário. said: It's not that hard. if (!PERF_CHECKER_RENDER_GAME) { m_kRenderTargetManager.RenderBackgrounds(); float fAspect=m_kWndMgr.GetAspect(); float fFarClip=m_pyBackground.GetFarClip(); m_pyGraphic.SetPerspective(30.0f, fAspect, 100.0, fFarClip); CCullingManager::Instance().Process(); m_kChrMgr.Deform(); m_kEftMgr.Update(); m_kRenderTargetManager.DeformModels(); Thats right but we know all the new users cant make this and i cant post im online with my phone now xD Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted February 5, 2019 Share Posted February 5, 2019 hace 1 hora, Kori dijo: Thats right but we know all the new users cant make this and i cant post im online with my phone now xD Oh sorry i thought it was easy to understand, anyway its already explained by Mario. Thanks again to all of you 1 https://m2admin.net/ Link to comment Share on other sites More sharing options...
Kori 170 Posted February 5, 2019 Share Posted February 5, 2019 (edited) 23 minutes ago, ѕeмa™ said: Oh sorry i thought it was easy to understand, anyway its already explained by Mario. Thanks again to all of you I have 2 questions The system works really good but: first can i add here hair or armor ?https://metin2.download/picture/114whVK37v0GyPoafz2ig9GBn0YmkL1E/.gif secound can i make this for armors and weapons too not only for mobs ? Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 3 1 1 Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted February 5, 2019 Share Posted February 5, 2019 (edited) hace 30 minutos, Kori dijo: I have 2 questions The system works really good but: first can i add here hair or armor ?https://metin2.download/picture/114whVK37v0GyPoafz2ig9GBn0YmkL1E/.gif secound can i make this for armors and weapons too not only for mobs ? Yes u can, just add something like this: Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 1 https://m2admin.net/ Link to comment Share on other sites More sharing options...
Recommended Posts