Jump to content

Recommended Posts

  • Contributor

Does Anyone have this bug when weapon is render on reder target?

https://metin2.download/video/3LtS8ZJ9bo2yiA0ewaO5xwFabZcF7PgP/.mp4

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 13
  • Confused 1
  • Good 6
  • Love 2
  • Love 5

spacer.png

  • 4 weeks later...

Hello. There would be one problem with the render target system.

 

1: Shows all character costume weapons

Presentation: https://metin2.download/picture/MWBcj3M4HmPOUrswRwOssK15s5H6Uszf/.jpg    https://metin2.download/picture/gJUKINx954hESLW5bCPIsdqxoZzSsyeo/.jpg

 

Would anyone help please?

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 7
  • Scream 1
  • Good 3
  • Love 1
  • Love 3
  • 3 weeks later...

Hey, everything working fine except some effects like white lion smoke / blue armor smoke, what am i doing wrong or missing?

Here's what i mean:

spacer.png

 

Also:

On 1/31/2021 at 6:04 PM, szotyizz said:

Hello. There would be one problem with the render target system.

 

1: Shows all character costume weapons

Presentation: https://metin2.download/picture/MWBcj3M4HmPOUrswRwOssK15s5H6Uszf/.jpg    https://metin2.download/picture/gJUKINx954hESLW5bCPIsdqxoZzSsyeo/.jpg

 

Would anyone help please?

 

Check this:

Spoiler

uitooltip.py

search for:


		elif item.ITEM_TYPE_WEAPON == itemType:

 

at the end of that elif check if you have it like this:



			if preview != 0:
				if item.WEAPON_SWORD == itemSubType: 
					if player.GetRace() != 7 and player.GetRace() != 3:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
				if item.WEAPON_DAGGER == itemSubType or item.WEAPON_BOW == itemSubType: 
					if player.GetRace() == 5 or player.GetRace() == 1:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
				if item.WEAPON_TWO_HANDED == itemSubType: 
					if player.GetRace() == 0 or player.GetRace() == 4:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
				if item.WEAPON_BELL == itemSubType or item.WEAPON_FAN == itemSubType: 
					if player.GetRace() == 7 or player.GetRace() == 3:
						self.__ModelPreview(itemVnum, 3, player.GetRace())

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1

It's all lies

On 2021. 02. 22. at 15:20, displayjokes said:

Hé, minden rendben működik, kivéve néhány effektet, mint a fehér oroszlánfüst / kék páncélfüst, mit csinálok rosszul vagy hiányzik?

Erre gondolok:

spacer.png

 

Is:

Nézd meg:

  Rejtett tartalom felfedése

uitooltip.py

keresés:





		

 

az elif végén ellenőrizze, hogy van-e így:






			if preview != 0:
				if item.WEAPON_SWORD == itemSubType: 
					if player.GetRace() != 7 and player.GetRace() != 3:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
				if item.WEAPON_DAGGER == itemSubType or item.WEAPON_BOW == itemSubType: 
					if player.GetRace() == 5 or player.GetRace() == 1:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
				if item.WEAPON_TWO_HANDED == itemSubType: 
					if player.GetRace() == 0 or player.GetRace() == 4:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
				if item.WEAPON_BELL == itemSubType or item.WEAPON_FAN == itemSubType: 
					if player.GetRace() == 7 or player.GetRace() == 3:
						self.__ModelPreview(itemVnum, 3,

 

 

I have this in uitooltip.py please check it.

 

This is the hidden content, please

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 19
  • Eyes 1
  • Not Good 1
  • Smile Tear 1
  • Think 1
  • Good 5
  • Love 14
3 hours ago, szotyizz said:

I have this in uitooltip.py please check it.

 

This is the hidden content, please

My bad, i read weapons and assumed it was normal weapons.

Anyway, your code is right by the tutorial i think.

 

Here's how i fixed it (my costume weapon system uses value3 to identify the type of weapon):

Search for (inside the "elif itemSubType == 3: #weapon") :


					if player.GetRace() != 7 and player.GetRace() != 3:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
					if player.GetRace() == 5 or player.GetRace() == 1:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
					if player.GetRace() == 0 or player.GetRace() == 4:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
					if player.GetRace() == 7 or player.GetRace() == 3:
						self.__ModelPreview(itemVnum, 3, player.GetRace())

Replace with:


					if item.WEAPON_SWORD == item.GetValue(3): 
						if player.GetRace() != 7 and player.GetRace() != 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_DAGGER == item.GetValue(3) or item.WEAPON_BOW == item.GetValue(3):
						if player.GetRace() == 5 or player.GetRace() == 1:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_TWO_HANDED == item.GetValue(3):
						if player.GetRace() == 0 or player.GetRace() == 4:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_BELL == item.GetValue(3) or item.WEAPON_FAN == item.GetValue(3): 
						if player.GetRace() == 7 or player.GetRace() == 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())

 

The piece of code you had is just randomly checking if you are a race or another and setting the weapon in the model.

This fix checks the weapon you're using and if the race you are can use that type of weapon.

 

Let me know if it works.

Edited by displayjokes
  • Metin2 Dev 3
  • Eyes 1
  • Sad 1
  • Good 3

It's all lies

23 hours ago, displayjokes said:

My bad, i read weapons and assumed it was normal weapons.

Anyway, your code is right by the tutorial i think.

 

Here's how i fixed it (my costume weapon system uses value3 to identify the type of weapon):

Search for (inside the "elif itemSubType == 3: #weapon") :



					if player.GetRace() != 7 and player.GetRace() != 3:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
					if player.GetRace() == 5 or player.GetRace() == 1:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
					if player.GetRace() == 0 or player.GetRace() == 4:
						self.__ModelPreview(itemVnum, 3, player.GetRace())
					if player.GetRace() == 7 or player.GetRace() == 3:
						self.__ModelPreview(itemVnum, 3, player.GetRace())

Replace with:



					if item.WEAPON_SWORD == item.GetValue(3): 
						if player.GetRace() != 7 and player.GetRace() != 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_DAGGER == item.GetValue(3) or item.WEAPON_BOW == item.GetValue(3):
						if player.GetRace() == 5 or player.GetRace() == 1:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_TWO_HANDED == item.GetValue(3):
						if player.GetRace() == 0 or player.GetRace() == 4:
							self.__ModelPreview(itemVnum, 3, player.GetRace())
					if item.WEAPON_BELL == item.GetValue(3) or item.WEAPON_FAN == item.GetValue(3): 
						if player.GetRace() == 7 or player.GetRace() == 3:
							self.__ModelPreview(itemVnum, 3, player.GetRace())

 

The piece of code you had is just randomly checking if you are a race or another and setting the weapon in the model.

This fix checks the weapon you're using and if the race you are can use that type of weapon.

 

Let me know if it works.

Thank you very much! The code works!

I would add a little fix too. Presentation: https://metin2.download/picture/67vxVifX442WeL96BoRexPaUI6o0e7Hq/.png

 

In uitooltip.py you have added an additional parameter to def AddItemData, your def probably looks something like this:

"def AddItemData(self, itemVnum, metinSlot, attrSlot = 0, flags = 0, unbindTime = 0, preview = 1):"

 

Solution: 

 

Python: uiattachmetin.py

 

##Search

self.oldToolTip.AddItemData

 

##Replace

self.oldToolTip.AddItemData(itemIndex, metinSlot, 0, 0, 0, 0)

 

##Search

self.newToolTip.AddItemData

 

##Replace

self.newToolTip.AddItemData(itemIndex, metinSlot, 0, 0, 0, 0)

 

 

##Parameter explanation

 

## 1. itemVnum

## 2. metinSlot

## 3. attrslot (0 default)

## 4. flags (0 default)

## 5. preview (1 default)

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 5
  • Not Good 1
  • Good 3
  • Love 2
On 2/25/2021 at 3:14 PM, szotyizz said:

I would add a little fix too. Presentation: https://metin2.download/picture/67vxVifX442WeL96BoRexPaUI6o0e7Hq/.png

 

In uitooltip.py you have added an additional parameter to def AddItemData, your def probably looks something like this:

"def AddItemData(self, itemVnum, metinSlot, attrSlot = 0, flags = 0, unbindTime = 0, preview = 1):"

 

Solution: 

 

Python: uiattachmetin.py

 

##Search

self.oldToolTip.AddItemData

 

##Replace

self.oldToolTip.AddItemData(itemIndex, metinSlot, 0, 0, 0, 0)

 

##Search

self.newToolTip.AddItemData

 

##Replace

self.newToolTip.AddItemData(itemIndex, metinSlot, 0, 0, 0, 0)

 

 

##Parameter explanation

 

## 1. itemVnum

## 2. metinSlot

## 3. attrslot (0 default)

## 4. flags (0 default)

## 5. preview (1 default)

Another fix:
## in function

def AddRefineItemData(self, itemVnum, metinSlot, attrSlot = 0):

 

##search for:

self.AddItemData(itemVnum, metinSlot, attrSlot)

 

##change with:

self.AddItemData(itemVnum, metinSlot, attrSlot, 0, 0)

 

this one is when you are trying to upgrade one item and it shows 2x like this:

spacer.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Not Good 1
  • Good 2
  • Love 1

It's all lies

Anyone have a solution? 

 

https://metin2.download/picture/kOS8Vl1WbJNBwqJp9Mg4Gw8H24D3Tzv3/.gif?fbclid=IwAR1YkedDLkgGyPuLPZsigWMZl1Va3S0oeBVJ_ppDfu7_Aj0vqfjPO43HGxs

 

One of my acquaintances has such a mistake.

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 4
  • Not Good 1
  • Good 1
  • Love 1
  • Love 2
  • 4 weeks later...

Hello, can anyone post rendertarget.py ?

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

  • 1 month later...

what is the problem? If you see in my inventory it looks like it should be but in my item shop it goes crazy it does not load, and the same happens with the costumes, some are seen, others are not and others are the same, you see another different outfit or nothing just the character with nothing.

spacer.png

ITEMSHOP

spacer.png

Edited by Metin2 Dev
Core X - External 2 Internal

Anotaci-n-2024-06-28-185820.png

 

 

Hey I got this problem when i try to compile the client

https://metin2.download/picture/WdJz3AujrG4Qjzxp0QCwJJ5E3SMG0Bpg/.png

Anyone have a solution?

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Love 1
  • Love 1
  • 2 weeks later...

Good afternoon, the system works, but there are some bugs. The render is made on all items, should do it only on weapons, costumes, armor and effects. How can I put the lock on the other items? Another problem is that if they are ninja and step over sword comes out render only with the pg without weapon, you could not put the block that does not come out ?

  • 1 month later...
  • Active+ Member

Hello there. I will make a request.
The system works fine but what I want is this:

For example, when we watch a weapon and then start watching an armor, how can we make the two appear together?

2 hours ago, blaxis said:

Thank you for the answer. Unfortunately, I don't have much coding knowledge.
Can you show an example, please?

I will look for example.

If you want to learn something and do it on your own..

Just call the render function on uiTooltip, where you call it for weapon (e.g.) and them check if player has equipped armor (player.GetItemIndex(slotPos)) on Armor slot pos (Google/ binary src)

If yes, then call render function below with player.GetItemIndex(slotPos) instead of itemvnum

 

 

  • Metin2 Dev 1
  • Active+ Member
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

 

Same error with debug.. What is the solution?

  • 3 weeks later...
12 hours ago, blaxis said:

CPythonTextTail::DeleteCharacterTextTail - Find VID[0] Error

 

PLEASE HELP ME ? ?

This is not a "real" error. 
You can do something link this, if you dont wanna see this error.

void CInstanceBase::DetachTextTail()
{
	if (!m_isTextTail)
		return;

	m_isTextTail=false;
	if(GetVirtualID() > 0)
		CPythonTextTail::Instance().DeleteCharacterTextTail(GetVirtualID());
}

 

  • Love 1
  • Active+ Member
7 hours ago, V0lvox said:

This is not a "real" error. 
You can do something link this, if you dont wanna see this error.

void CInstanceBase::DetachTextTail()
{
	if (!m_isTextTail)
		return;

	m_isTextTail=false;
	if(GetVirtualID() > 0)
		CPythonTextTail::Instance().DeleteCharacterTextTail(GetVirtualID());
}

 

Thank you ! Solved..

  • 4 weeks later...
  • Active+ Member
On 10.07.2021 at 22:53, V0lvox said:

örneğin arayacağım.

Bir şeyler öğrenmek ve kendi başınıza yapmak istiyorsanız..

Sadece uiTooltip'te render işlevini çağırın, burada silah için çağırırsınız (örn.) ve onlar, oyuncunun Armor slot pozisyonunda (Google/ binary src) zırh (player.GetItemIndex(slotPos)) kuşanmış olup olmadığını kontrol eder.

Evetse, itemvnum yerine player.GetItemIndex(slotPos) ile aşağıdaki oluşturma işlevini çağırın

 

 

Unfortunately, I couldn't apply what you said because I don't have much coding knowledge.

What do I need to do to display armor and weapon together? Can anyone help?

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.