Hi, habe questcategories eingebaut und stehe jetzt vor folgendem syserr eintrag:
Code
- 0809 00:56:37377 :: Traceback (most recent call last):
- 0809 00:56:37377 :: File "ui.py", line 1484, in CallEvent
- 0809 00:56:37378 :: File "ui.py", line 87, in __call__
- 0809 00:56:37378 :: File "ui.py", line 78, in __call__
- 0809 00:56:37378 :: File "uiQuestCategory.py", line 230, in __OnClickQuestCategory
- 0809 00:56:37378 :: File "uiQuestCategory.py", line 34, in Open
- 0809 00:56:37378 :: File "uiQuestCategory.py", line 118, in RefreshQuest
- 0809 00:56:37378 :: TypeError
- 0809 00:56:37378 :: :
- 0809 00:56:37378 :: 'NoneType' object is not iterable
- 0809 00:56:37378 ::
die parts in der uiquestcategory.py
Code
- def __OnClickQuestCategory(self, categoryIndex):
- isAlreadyOpen = self.__IsCategoryOpen(categoryIndex)
- self.__CloseCategories()
- if isAlreadyOpen:
- return
- self.__questCategorySlot[categoryIndex].openImage.Down()
- (x,y) = self.__questCategorySlot[categoryIndex].GetLocalPosition()
- self.__questList[categoryIndex].SetPosition(20, y + 20)
- self.__questList[categoryIndex].Open()
- btnCount = self.__questList[categoryIndex].GetCount()
- if btnCount <= 0:
- return
- listHeight = self.__questList[categoryIndex].GetHeight() * len(self.__GetOpenedCategories())
- for i in xrange(categoryIndex+1, self.MAX_CATEGORY):
- slotY = listHeight + (5 + i*20)
- self.__questCategorySlot[i].SetPosition(7, slotY)
- self.__questList[i].SetPosition(20, slotY + 20)
Code
- def RefreshQuest(self):
- questCount = self.GetCount()
- for i in xrange(questCount):
- (questName, questIcon, questCounterName, questCounterValue) = quest.GetQuestData(i)
- if i >= questCount or i >= QuestCategoryWindow.MAX_QUEST:
- break
- if questCounterName != "":
- self.SetCounterText(i, "%s : %d" % (questCounterName, questCounterValue))
- else:
- self.SetCounterText(i, "")
- self.RefreshClock()
welches object ist gemeint, welches nicht wiederholbar sein soll? Und wie kann ich das beheben?
EDIT:
ok habs mit return behoben, ich hoffe es kommen keine weiteren Fehlermeldungen