Jump to content

Recommended Posts

Hi, I have a little problem with python. Syserr client:

1114 19:04:30070 :: Traceback (most recent call last):

1114 19:04:30070 ::   File "game.py", line 1944, in BINARY_ServerCommand_Run

1114 19:04:30070 ::   File "stringCommander.py", line 63, in Run

1114 19:04:30070 ::   File "stringCommander.py", line 31, in __call__

1114 19:04:30070 ::   File "stringCommander.py", line 20, in __call__

1114 19:04:30070 ::   File "game.py", line 2284, in PetGui_SetData

1114 19:04:30070 ::   File "uipet.py", line 83, in SetData

1114 19:04:30070 :: IndexError
1114 19:04:30070 :: : 
1114 19:04:30070 :: list index out of range
1114 19:04:30070 :: 

1114 19:04:30070 :: Unknown Server Command PetGui_SetData Smoczuś |10|300|3000|1|0|0|0|0|Max._PZ._|1000|Silny_Przeciwko_Potworom|2|Silny_Przeciwko_Ludziom|1 | PetGui_SetData

Python side game:

def PetGui_SetData(self, data):
		self.pet_gui.SetData(data)

uipet

def SetData(self, data):
		data = data.replace('_', ' ')
		dziel = data.split('|')
		self.Board.SetTitleName(dziel[0])
		level = dziel[1] + "/20"
		self.level_text = self.comp.TextLine(self.Board, level, 73, 31, self.comp.RGB(0, 0, 0))
		exp = str(dziel[2]) + "/" + str(dziel[3])
		self.exp_text = self.comp.TextLine(self.Board, exp, 110, 51, self.comp.RGB(0, 0, 0))
		if int(dziel[2]) > 0:
			self.pelny.SetPercentage(int(dziel[2]), int(dziel[3]))
			self.pelny.Show()
		self.points_text = self.comp.TextLine(self.Board, dziel[4], 110, 101, self.comp.RGB(0, 0, 0))
		self.wit_text = self.comp.TextLine(self.Board, dziel[5], 50, 120, self.comp.RGB(0, 0, 0))
		self.int_text = self.comp.TextLine(self.Board, dziel[6], 50, 140, self.comp.RGB(0, 0, 0))
		self.str_text = self.comp.TextLine(self.Board, dziel[7], 50, 160, self.comp.RGB(0, 0, 0))
		self.zre_text = self.comp.TextLine(self.Board, dziel[8], 50, 180, self.comp.RGB(0, 0, 0))
		xbon1 = "- " + str(dziel[9]) + ": " + str(dziel[10])
		xbon2 = "- " + str(dziel[11]) + ": " + str(dziel[12])
		xbon3 = "- " + str(dziel[13]) + ": " + str(dziel[14])
		self.bon1 = self.comp.TextLine(self.Board, xbon1, 70, 240, self.comp.RGB(0, 0, 0))
		self.bon2 = self.comp.TextLine(self.Board, xbon2, 70, 260, self.comp.RGB(0, 0, 0))
		self.bon3 = self.comp.TextLine(self.Board, xbon3, 70, 280, self.comp.RGB(0, 0, 0))
		if self.Skill.IsShow():
			self.bon1.Show()
			self.bon2.Show()
			self.bon3.Show()
		else:
			self.bon1.Hide()
			self.bon2.Hide()
			self.bon3.Hide()
		self.RenderList = {
			"Smoczuś" : "dino",
			"Kotek" : "kotek",
			"Niedźwiadek" : "niedzwiadek",
			"Panda" : "panda",
		}
		self.Dzielenie = str(dziel[0])
		self.RenderName = self.RenderList[self.Dzielenie]
		self.pet_render = self.comp.ExpandedImage(self.Board, 216, 35, 'd:/ymir work/ui/image/' + self.RenderName + '.tga')
		if int(dziel[4]) > 0:
			self.plus_wit.Show()
			self.plus_int.Show()
			self.plus_str.Show()
			self.plus_zre.Show()
		else:
			self.plus_wit.Hide()
			self.plus_int.Hide()
			self.plus_str.Hide()
			self.plus_zre.Hide()

and cmdchat in quest

cmdchat("PetGui_SetData "..PetsInfo("name", id).."|"..PetsInfo("level", id).."|"..PetsInfo("exp", id).."|"..PetsInfo("exp_max", id).."|"..PetsInfo("points", id).."|"..PetsInfo("wit", id).."|"..PetsInfo("int", id).."|"..PetsInfo("str", id).."|"..PetsInfo("zre", id).."|"..PetsInfo("bonus1typ", id).."|"..PetsInfo("bonus1war", id).."|"..PetsInfo("bonus2typ", id).."|"..PetsInfo("bonus2war", id).."|"..PetsInfo("bonus3typ", id).."|"..PetsInfo("bonus3war", id).."")

Can you help me? 

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.