Jump to content

'str' object is not callable


Recommended Posts

Version of Files XXX

Hi dear community, i have a weired error.

I'm trying to add the dragon soul set on my server, but when i add the affect part (When i complete all the slot of the dragon soul and press the button "Active" in game) i got this error:

 

0520 15:19:42226 :: Traceback (most recent call last):

0520 15:19:42226 ::   File "game.py", line 887, in BINARY_NEW_AddAffect

0520 15:19:42226 ::   File "uiAffectShower.py", line 558, in BINARY_NEW_AddAffect

0520 15:19:42226 :: TypeError
0520 15:19:42226 :: : 
0520 15:19:42226 :: 'str' object is not callable
0520 15:19:42226 :: 

 

 

 

Line 558 of uiAffectShower.py:

 

			except Exception, e:
				print "except Aff auto potion affect ", e
				pass

		else:
			if affect != chr.NEW_AFFECT_AUTO_SP_RECOVERY and affect != chr.NEW_AFFECT_AUTO_HP_RECOVERY and not self.AFFECT_PET_DATA_DICT.has_key(affect):
				description = description(float(value))

			try:

 

 

What is wrong?  thanks in advance for who try to help me.

mindset

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Honorable Member

Where the hell should we know how the code looks like what you are trying to add?

description = description(float(value))

But.. This code expects a variable in the description of the affect. Which means if the description of the affect supposed to print out the value then you have to set the SA as the 3rd token, otherwise SNA must be there. But to figure out which affect number generates this error, you need to debug it, or print the affect number out when the error occurs.

If this system has a new affect and its description is like this:

TOOLTIP_DS_SET_AFFECT	blablabla

You need to add SNA:

TOOLTIP_DS_SET_AFFECT	blablabla	SNA

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.