mohammed11 0 Posted August 6, 2020 Share Posted August 6, 2020 iiiiiiiiiiiiis gooooood Link to comment Share on other sites More sharing options...
נσναnz 5 Posted August 8, 2020 Share Posted August 8, 2020 Thanks for the system. Is there a way to manipulate the camera perspective maybe? Some monsters are too big for the camera position.. Link to comment Share on other sites More sharing options...
Finnael 479 Posted August 8, 2020 Share Posted August 8, 2020 44 minutes ago, נσναnz said: Thanks for the system. Is there a way to manipulate the camera perspective maybe? Some monsters are too big for the camera position.. You mean like zooming or rotating the object? Link to comment Share on other sites More sharing options...
נσναnz 5 Posted August 8, 2020 Share Posted August 8, 2020 4 hours ago, Finnael said: You mean like zooming or rotating the object? Yes exactly, Some monsters are large and you need a zoom out to make a good preview. Rotating i think the preview model is rotating by itself so it's not that necessary.. Link to comment Share on other sites More sharing options...
Finnael 479 Posted August 8, 2020 Share Posted August 8, 2020 It is not really that hard to do actually. Inside CRenderTarget.cpp there is a function called RenderModel. And inside that function there is this call: camera_manager.GetCurrentCamera()->SetViewParams( D3DXVECTOR3{ 0.0f, -1500.0f, 600.0f }, D3DXVECTOR3{ 0.0f, 0.0f, 95.0f }, D3DXVECTOR3{0.0f, 0.0f, 1.0f} ); The first parameter here is the position of our camera that looks at the target. Second paremeter is the position of our target. The third parameter here is not important for us. (Though it should be always D3DXVECTOR3{0.0f, 0.0f, 1.0f} otherwise we might get weird errors.) So if you want to zoom out you need to either change the position of the camera or the target. What can you do is have a member variable inside CRenderTarget class. Something like this : D3DXVECTOR3 m_cameraPosition; Initialize this variable inside CRenderTarget constructor like this: m_cameraPosition = D3DXVECTOR3{ 0.0f, -1500.0f, 600.0f }; And change the above code to this: camera_manager.GetCurrentCamera()->SetViewParams( m_cameraPosition, D3DXVECTOR3{ 0.0f, 0.0f, 95.0f }, D3DXVECTOR3{0.0f, 0.0f, 1.0f} ); Now when you change the m_cameraPosition to whatever value you want the camera position will be changed instantly. 3 Link to comment Share on other sites More sharing options...
נσναnz 5 Posted August 8, 2020 Share Posted August 8, 2020 4 hours ago, Finnael said: It is not really that hard to do actually. Inside CRenderTarget.cpp there is a function called RenderModel. And inside that function there is this call: camera_manager.GetCurrentCamera()->SetViewParams( D3DXVECTOR3{ 0.0f, -1500.0f, 600.0f }, D3DXVECTOR3{ 0.0f, 0.0f, 95.0f }, D3DXVECTOR3{0.0f, 0.0f, 1.0f} ); The first parameter here is the position of our camera that looks at the target. Second paremeter is the position of our target. The third parameter here is not important for us. (Though it should be always D3DXVECTOR3{0.0f, 0.0f, 1.0f} otherwise we might get weird errors.) So if you want to zoom out you need to either change the position of the camera or the target. What can you do is have a member variable inside CRenderTarget class. Something like this : D3DXVECTOR3 m_cameraPosition; Initialize this variable inside CRenderTarget constructor like this: m_cameraPosition = D3DXVECTOR3{ 0.0f, -1500.0f, 600.0f }; And change the above code to this: camera_manager.GetCurrentCamera()->SetViewParams( m_cameraPosition, D3DXVECTOR3{ 0.0f, 0.0f, 95.0f }, D3DXVECTOR3{0.0f, 0.0f, 1.0f} ); Now when you change the m_cameraPosition to whatever value you want the camera position will be changed instantly. You know i actually did not think this through, Thanks for the idea I managed to do it but also bind it to the model index. So that i can get the best camera for each monster. Thanks again Link to comment Share on other sites More sharing options...
Finnael 479 Posted August 8, 2020 Share Posted August 8, 2020 1 hour ago, נσναnz said: You know i actually did not think this through, Thanks for the idea I managed to do it but also bind it to the model index. So that i can get the best camera for each monster. Thanks again Glad, I could help. Link to comment Share on other sites More sharing options...
Nyxo 1 Posted August 15, 2020 Share Posted August 15, 2020 Hey @V0lvox could You help me with this or anyone else? (Syserr.txt from client) 0815 17:18:24597 :: Traceback (most recent call last): 0815 17:18:24597 :: File "ui.py", line 1589, in OnOverInItem 0815 17:18:24597 :: File "ui.py", line 87, in __call__ 0815 17:18:24597 :: File "ui.py", line 78, in __call__ 0815 17:18:24598 :: File "uiInventory.py", line 1199, in OverInItem 0815 17:18:24598 :: File "uiInventory.py", line 1375, in ShowToolTip 0815 17:18:24598 :: File "uiToolTip.py", line 590, in SetInventoryItem 0815 17:18:24598 :: File "uiToolTip.py", line 1011, in AddItemData 0815 17:18:24598 :: File "uiToolTip.py", line 1538, in __ModelPreview 0815 17:18:24598 :: AttributeError 0815 17:18:24598 :: : 0815 17:18:24598 :: 'module' object has no attribute 'RenderTarget' 0815 17:18:24598 :: 0815 17:18:24793 :: Traceback (most recent call last): 0815 17:18:24793 :: File "ui.py", line 1589, in OnOverInItem 0815 17:18:24793 :: File "ui.py", line 87, in __call__ 0815 17:18:24793 :: File "ui.py", line 78, in __call__ 0815 17:18:24793 :: File "uiInventory.py", line 1199, in OverInItem 0815 17:18:24794 :: File "uiInventory.py", line 1375, in ShowToolTip 0815 17:18:24794 :: File "uiToolTip.py", line 590, in SetInventoryItem 0815 17:18:24794 :: File "uiToolTip.py", line 976, in AddItemData 0815 17:18:24794 :: File "uiToolTip.py", line 1574, in __ModelPreviewClose 0815 17:18:24794 :: AttributeError 0815 17:18:24794 :: : 0815 17:18:24794 :: 'NoneType' object has no attribute 'Hide' 0815 17:18:24794 :: Link to comment Share on other sites More sharing options...
Finnael 479 Posted August 15, 2020 Share Posted August 15, 2020 Seems like you are trying to implement another system that uses RenderTarget. Better ask that question to the system owner. 1 Link to comment Share on other sites More sharing options...
Nyxo 1 Posted August 15, 2020 Share Posted August 15, 2020 Problem solved, i missed that part from ui.py: class RenderTarget(Window): def __init__(self, layer = "UI"): Window.__init__(self, layer) self.number = -1 def __del__(self): Window.__del__(self) def RegisterWindow(self, layer): self.hWnd = wndMgr.RegisterRenderTarget(self, layer) def SetRenderTarget(self, number): self.number = number wndMgr.SetRenderTarget(self.hWnd, self.number) Everything is working 1 Link to comment Share on other sites More sharing options...
MEKA 9 Posted August 18, 2020 Share Posted August 18, 2020 (edited) Sura Enchanted Blade Skill Problem Skill off: https://metin2.download/picture/Vhkc63uvwbv81VyeibLa9883n307mrZ5/.gif Skill on: https://metin2.download/picture/ADeFvJq66ipYWB9Y9St6Ojdm7fL9ut0W/.gif Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 5 1 2 Link to comment Share on other sites More sharing options...
Finnael 479 Posted August 18, 2020 Share Posted August 18, 2020 (edited) 7 hours ago, MEKA said: Sura Enchanted Blade Skill Problem Skill off: https://metin2.download/picture/Vhkc63uvwbv81VyeibLa9883n307mrZ5/.gif Skill on: https://metin2.download/picture/ADeFvJq66ipYWB9Y9St6Ojdm7fL9ut0W/.gif Send us your uitooltip.py. Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
MEKA 9 Posted August 18, 2020 Share Posted August 18, 2020 (edited) 32 minutes ago, Finnael said: Send us your uitooltip.py. https://paste2.org/akMHpaMv The render target is reset when the sp potion is open Edited August 18, 2020 by MEKA 2 Link to comment Share on other sites More sharing options...
aberious 4 Posted August 19, 2020 Share Posted August 19, 2020 It is not useful for me to disguise weapon, mounts or pets, can someone help me implement it? Link to comment Share on other sites More sharing options...
MEKA 9 Posted August 21, 2020 Share Posted August 21, 2020 (edited) On 8/18/2020 at 8:39 PM, MEKA said: https://paste2.org/akMHpaMv The render target is reset when the sp potion is open @FinnaelHey will you help ? @VegaS™ do you have any idea about this topic ? Edited August 21, 2020 by MEKA Link to comment Share on other sites More sharing options...
Active Member Volvox 1510 Posted August 26, 2020 Author Active Member Share Posted August 26, 2020 Latest Update: This is the hidden content, please Sign In or Sign Up includes all fixxes and some improvements 57 1 1 2 1 1 9 2 23 Link to comment Share on other sites More sharing options...
aberious 4 Posted September 3, 2020 Share Posted September 3, 2020 Does anyone work on the costume weapon? Link to comment Share on other sites More sharing options...
Active Member Volvox 1510 Posted September 4, 2020 Author Active Member Share Posted September 4, 2020 8 hours ago, aberious said: Does anyone work on the costume weapon? What do you mean ? With 98% of user costume work perfect. Link to comment Share on other sites More sharing options...
aberious 4 Posted September 4, 2020 Share Posted September 4, 2020 6 hours ago, V0lvox said: Qué quieres decir ? Con el 98% del disfraz de usuario funciona perfecto. I have the weapon costume lent and it does not work for me brother Link to comment Share on other sites More sharing options...
Active Member Volvox 1510 Posted September 4, 2020 Author Active Member Share Posted September 4, 2020 1 minute ago, aberious said: I have the weapon costume lent and it does not work for me brother so maybe upload your tooltip ? Link to comment Share on other sites More sharing options...
aberious 4 Posted September 4, 2020 Share Posted September 4, 2020 19 minutes ago, V0lvox said: así que tal vez cargue su información sobre herramientas? https://paste2.org/vWO83cyM 1 Link to comment Share on other sites More sharing options...
MEKA 9 Posted September 5, 2020 Share Posted September 5, 2020 On 8/5/2019 at 6:11 PM, V0lvox said: Where is this code from ? You call SetArmor/ SetWeapon /SetHair with 0 somewhere. Contact me Discord and i will have a look How did you solve this? I have the same Link to comment Share on other sites More sharing options...
extendohd 4 Posted October 14, 2020 Share Posted October 14, 2020 On 8/26/2020 at 12:35 PM, V0lvox said: Latest Update: This is the hidden content, please Sign In or Sign Up includes all fixxes and some improvements Link is down,can you please reupload 2 2 Link to comment Share on other sites More sharing options...
Active Member Volvox 1510 Posted October 15, 2020 Author Active Member Share Posted October 15, 2020 13 hours ago, extendohd said: Link is down,can you please reupload This is the hidden content, please Sign In or Sign Up 33 1 1 2 7 10 Link to comment Share on other sites More sharing options...
developerares 1 Posted October 22, 2020 Share Posted October 22, 2020 Nice Link to comment Share on other sites More sharing options...
Recommended Posts