MentaLL 12 Posted May 20, 2020 Share Posted May 20, 2020 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 More sharing options...
Honorable Member xP3NG3Rx 19674 Posted May 20, 2020 Honorable Member Share Posted May 20, 2020 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 More sharing options...
MentaLL 12 Posted May 20, 2020 Author Share Posted May 20, 2020 Thank you penger, you are the best. The problem was what you say, the SNA. mindset Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now