.Incredible™ 8 Posted February 21, 2019 Share Posted February 21, 2019 Hi, sorted not exit in my python do you know what to do? 0221 03:30:04746 :: File "game.py", line 1665, in BINARY_RefreshTargetMonsterDropInfo 0221 03:30:04746 :: File "uiTarget.py", line 546, in RefreshMonsterInfoBoard 0221 03:30:04746 :: File "uiTarget.py", line 151, in Refresh 0221 03:30:04746 :: File "uiTarget.py", line 168, in __LoadInformation 0221 03:30:04746 :: File "uiTarget.py", line 248, in __LoadInformation_Drops 0221 03:30:04747 :: File "uiTarget.py", line 295, in AppendItem 0221 03:30:04747 :: NameError 0221 03:30:04747 :: : 0221 03:30:04747 :: global name 'sorted' is not defined 0221 03:30:04747 :: here is the python part item.SelectItem(vnum) itemName = item.GetItemName() if type(vnums) != int and len(vnums) > 1: vnums = sorted(vnums) realName = itemName[:itemName.find("+")] if item.GetItemType() == item.ITEM_TYPE_METIN: realName = localeInfo.TARGET_INFO_STONE_NAME itemName = realName + "+0 - +4" else: itemName = realName + "+" + str(vnums[0] % 10) + " - +" + str(vnums[len(vnums) - 1] % 10) vnum = vnums[len(vnums) - 1] Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10274 Posted February 21, 2019 Forum Moderator Share Posted February 21, 2019 Try to replace: vnums = sorted(vnums) With: vnums.sort() 1 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
.Incredible™ 8 Posted February 21, 2019 Author Share Posted February 21, 2019 Thank you, fixxed. 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