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
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 8
  • Good 7
  • Love 1
  • Love 4
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • 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.