Jump to content

Bug Render Target System


Go to solution Solved by Volvox,

Recommended Posts

So you dont want to see the Render on refine ?

Do you use my Render Target Edit ?


Then your define look like this
 

def AddItemData(self, itemVnum, metinSlot, attrSlot = 0, flags = 0, window_type = player.INVENTORY, slotIndex = -1, transmutation = -1,  preview = 0)

So you have to look where you call AddItemData on UiTooltip with refine window.

If you dont understand, what iam talking about, upload UiTooltop.py and tell me, what exactly you want ?

Link to comment
https://metin2.dev/topic/28467-bug-render-target-system/#findComment-146237
Share on other sites

  • Solution

You wrote:
 

def AddItemData(self, itemVnum, metinSlot, attrSlot = 0, flags = 0, unbindTime = 0, window_type = player.INVENTORY, slotIndex = -1, preview = 0)

this means, that preview is everytime you not call it explicit as zero 1.
That is why, it is shown at refine.
So what do you have to do ?
Change the define to preview=0 OR
 

	def AddRefineItemData(self, itemVnum, metinSlot, attrSlot = 0):
		for i in xrange(player.METIN_SOCKET_MAX_NUM):
			metinSlotData=metinSlot[i]
			if self.GetMetinItemIndex(metinSlotData) == constInfo.ERROR_METIN_STONE:
				metinSlot[i]=player.METIN_SOCKET_TYPE_SILVER

		self.AddItemData(itemVnum, metinSlot, attrSlot)

TO:

	def AddRefineItemData(self, itemVnum, metinSlot, attrSlot = 0):
		for i in xrange(player.METIN_SOCKET_MAX_NUM):
			metinSlotData=metinSlot[i]
			if self.GetMetinItemIndex(metinSlotData) == constInfo.ERROR_METIN_STONE:
				metinSlot[i]=player.METIN_SOCKET_TYPE_SILVER

		self.AddItemData(itemVnum, metinSlot, attrSlot, 0, 0, player.INVENTORY, -1, 0)

Hopefully you understand.

  • Love 1
Link to comment
https://metin2.dev/topic/28467-bug-render-target-system/#findComment-146242
Share on other sites

  • 2 years later...
  • Active+ Member

In any case if any others encounter the "bug" with the RenderTarget on Refine and the above fixed is not working due to "too many values / arguments 7 (9given)",

I've played a bit with the arguments. just add the "preview = 0" as seen below. 
 

	def AddRefineItemData(self, itemVnum, metinSlot, attrSlot = 0): 
		for i in xrange(player.METIN_SOCKET_MAX_NUM):
			metinSlotData=metinSlot[i]
			if self.GetMetinItemIndex(metinSlotData) == constInfo.ERROR_METIN_STONE:
				metinSlot[i]=player.METIN_SOCKET_TYPE_SILVER

		self.AddItemData(itemVnum, metinSlot, attrSlot, preview = 0) #### Fix for: https://metin2.dev/topic/28467-bug-render-target-system/

 

Edited by KolenMG
I've looked again after encountering a bug. now it should be completly bugless.
Link to comment
https://metin2.dev/topic/28467-bug-render-target-system/#findComment-166492
Share on other sites

  • 4 weeks later...
On 12/21/2021 at 5:09 PM, Volvox said:

You wrote:
 

def AddItemData(self, itemVnum, metinSlot, attrSlot = 0, flags = 0, unbindTime = 0, window_type = player.INVENTORY, slotIndex = -1, preview = 0)

this means, that preview is everytime you not call it explicit as zero 1.
That is why, it is shown at refine.
So what do you have to do ?
Change the define to preview=0 OR
 

	def AddRefineItemData(self, itemVnum, metinSlot, attrSlot = 0):
		for i in xrange(player.METIN_SOCKET_MAX_NUM):
			metinSlotData=metinSlot[i]
			if self.GetMetinItemIndex(metinSlotData) == constInfo.ERROR_METIN_STONE:
				metinSlot[i]=player.METIN_SOCKET_TYPE_SILVER

		self.AddItemData(itemVnum, metinSlot, attrSlot)

TO:

	def AddRefineItemData(self, itemVnum, metinSlot, attrSlot = 0):
		for i in xrange(player.METIN_SOCKET_MAX_NUM):
			metinSlotData=metinSlot[i]
			if self.GetMetinItemIndex(metinSlotData) == constInfo.ERROR_METIN_STONE:
				metinSlot[i]=player.METIN_SOCKET_TYPE_SILVER

		self.AddItemData(itemVnum, metinSlot, attrSlot, 0, 0, player.INVENTORY, -1, 0)

Hopefully you understand.

Hello, I did this and it worked without any problems. But the stone still appears when I press it. I didn't want to use the other solution on the internet, so is there another way?

 

Link to comment
https://metin2.dev/topic/28467-bug-render-target-system/#findComment-166881
Share on other sites

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.