Jump to content
  • Register Now

    Sign up and take advantage of the features of our community! Some forums are only accessible to our members!

  • 0

KeyError


Datheft15

Question

Hey I have a problem.

 

0903 13:43:14056 :: Traceback (most recent call last):

0903 13:43:14056 ::   File "uiInventory.py", line 1652, in OnUpdate

0903 13:43:14057 ::   File "uiInventory.py", line 696, in ActualizarBonus

0903 13:43:14057 ::   File "ui.py", line 3233, in GetChild

0903 13:43:14057 :: KeyError
0903 13:43:14057 :: : 
0903 13:43:14057 :: 'bonus_1'
0903 13:43:14057 :: 

In uiinventory.py 

 

self.GetChild("bonus_1").SetText(str(player.GetStatus(69)))

In inventorywindow.py

 

				{
					"name" : "txt_info_defenza_espada",
					"type" : "text",
					"x" : 176 - 5,
					"y" : 55,
					"text" : "Kard véd.:"
				},
				{
					"name" : "Thin_info_defenza_espada",
					"type" : "image",
					"x" : 176 + SPACE_BONUS_INVENTORY - 65,
					"y" : 55 - 2,
					"image" : IMAGE_CHELO,
					"children" : 
					(
						{
							"name" : "bonus_1",
							"type" : "text",
							"x" : 26,
							"y" : 3,
							"text" : "999",
							"r" : 1.0,
							"g" : 1.0,
							"b" : 1.0,
							"a" : 1.0,
							"text_horizontal_align":"center"
						},
					),
				},

 

Link to post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.