Jump to content

Affect list not updated


Go to solution Solved by VegaS™,

Recommended Posts

  • Active+ Member

Hey guys,

I found a bug with affect shower. When you summon and unsummon your horse, the affect list is not updated.

Horse summoned:

213503dPGm.png

Horse unsummoned:

213503r5iv.png

I will be really glad if someone will find some solution.

Thanks for possible answers!

Sincerely,

ReFresh

Edited by ReFresh

I'll be always helpful!  😉

Link to comment
https://metin2.dev/topic/28464-affect-list-not-updated/
Share on other sites

  • Forum Moderator
  • Solution

I can't test this right now in-game, but from a fast check, it seems that hide_horse_state command is sent from the server-side when you unsummon the horse, which is defined in interfaceModule.py as HideHorseState:

	def HideHorseState(self):
		self.affectShower.SetHorseState(0, 0, 0)

	def UpdateHorseState(self, level, health, battery):
		self.affectShower.SetHorseState(level, health, battery)

That means when you unsummon the horse, the SetHorseState function is called with (0, 0, 0) arguments, and there's a condition which check if the level is 0, then set the self.horseImage variable as a null value, without arrange the images.

So, in theory, we just need to call the __ArrangeImageList function after that, and it should be fine, the images will be sorted again.

  • root/uiAffectShower.py

Search for the function:

	def SetHorseState(self, level, health, battery):
		[...]

Replace it with:

This is the hidden content, please

Edited by VegaS™
  • Metin2 Dev 12
  • Eyes 2
  • Good 7
  • Love 1
  • Love 8
Link to comment
https://metin2.dev/topic/28464-affect-list-not-updated/#findComment-146225
Share on other sites

	def SetHorseState(self, level, health, battery):
		if level==0:
			self.horseImage=None
+			self.__ArrangeImageList()
		else:
			image = HorseImage()
			image.SetParent(self)
			image.SetState(level, health, battery)
			image.Show()

			self.horseImage=image
			self.__ArrangeImageList()

 

Link to comment
https://metin2.dev/topic/28464-affect-list-not-updated/#findComment-146312
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.

Guest
This topic is now closed to further replies.
×
×
  • 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.