Premium Galet 515 Posted January 31, 2015 Premium Share Posted January 31, 2015 Hello, since some times, I got a strange bug, my quests are present in the left of my screen but when I click on it (or if I do nothing) my quests aren't displayed in "Quests" pannel "n" key. So I looked in my syserr and I guess I found the bug. Here's my syserr : 0201 00:24:11523 :: invalid idx 0 0201 00:24:28704 :: Traceback (most recent call last): 0201 00:24:28704 :: File "game.py", line 785, in RefreshQuest 0201 00:24:28705 :: File "interfaceModule.py", line 606, in RefreshQuest 0201 00:24:28705 :: File "uiCharacter.py", line 679, in RefreshQuest 0201 00:24:28705 :: ValueError 0201 00:24:28705 :: : 0201 00:24:28705 :: too many values to unpack 0201 00:24:28705 :: 0201 00:24:28738 :: Traceback (most recent call last): 0201 00:24:28738 :: File "game.py", line 785, in RefreshQuest 0201 00:24:28739 :: File "interfaceModule.py", line 606, in RefreshQuest 0201 00:24:28739 :: File "uiCharacter.py", line 679, in RefreshQuest 0201 00:24:28739 :: ValueError 0201 00:24:28739 :: : 0201 00:24:28739 :: too many values to unpack 0201 00:24:28739 :: 0201 00:24:28740 :: Traceback (most recent call last): 0201 00:24:28740 :: File "game.py", line 785, in RefreshQuest 0201 00:24:28740 :: File "interfaceModule.py", line 606, in RefreshQuest 0201 00:24:28741 :: File "uiCharacter.py", line 679, in RefreshQuest 0201 00:24:28741 :: ValueError 0201 00:24:28741 :: : 0201 00:24:28741 :: too many values to unpack 0201 00:24:28741 :: 0201 00:24:28741 :: Traceback (most recent call last): 0201 00:24:28741 :: File "game.py", line 785, in RefreshQuest 0201 00:24:28741 :: File "interfaceModule.py", line 606, in RefreshQuest 0201 00:24:28742 :: File "uiCharacter.py", line 679, in RefreshQuest 0201 00:24:28742 :: ValueError 0201 00:24:28742 :: : 0201 00:24:28742 :: too many values to unpack 0201 00:24:28742 :: 0201 00:24:28742 :: Traceback (most recent call last): 0201 00:24:28742 :: File "game.py", line 785, in RefreshQuest 0201 00:24:28743 :: File "interfaceModule.py", line 606, in RefreshQuest 0201 00:24:28743 :: File "uiCharacter.py", line 679, in RefreshQuest 0201 00:24:28743 :: ValueError 0201 00:24:28743 :: : 0201 00:24:28743 :: too many values to unpack 0201 00:24:28743 :: I conclude that the problem are the "too many values to unpack". Did someone have a fix please ? Have a nice day. Link to comment Share on other sites More sharing options...
Former Staff flygun 305 Posted January 31, 2015 Former Staff Share Posted January 31, 2015 it happened suddenly or you added or changed somethings ? Link to comment Share on other sites More sharing options...
Premium Galet 515 Posted January 31, 2015 Author Premium Share Posted January 31, 2015 I changed some things, but I'm pretty sure it's about python 2.7 ^^ Here's the "buggy" piece of code, i'm pretty sure the problem is from it. for i in questRange[:questCount]: (questName, questIcon, questCounterName, questCounterValue) = quest.GetQuestData(self.questShowingStartIndex+i) self.questNameList[i].SetText(questName) self.questNameList[i].Show() self.questLastCountList[i].Show() self.questLastTimeList[i].Show() Link to comment Share on other sites More sharing options...
Former Staff flygun 305 Posted February 1, 2015 Former Staff Share Posted February 1, 2015 it's not buggy what you mean with this I'm pretty sure it's about python 2.7 ^^ be more specific you got 2.2 and use 2.7 codes? O.o Link to comment Share on other sites More sharing options...
Premium Galet 515 Posted February 1, 2015 Author Premium Share Posted February 1, 2015 The code is right indeed but : i updated my binaries to python 2.7, so I think this bug is due to this change. If I put "for i, k, m in questRange[:questCount]:" for example, the syserr will be different. (need 1 more value to unpack). Link to comment Share on other sites More sharing options...
Premium Galet 515 Posted February 1, 2015 Author Premium Share Posted February 1, 2015 # Bring Up My Post Link to comment Share on other sites More sharing options...
Premium Galet 515 Posted February 2, 2015 Author Premium Share Posted February 2, 2015 Sorry but bump Link to comment Share on other sites More sharing options...
Denis 1478 Posted February 2, 2015 Share Posted February 2, 2015 You only changed python22 to python27? Or you made more changes? Link to comment Share on other sites More sharing options...
Premium Galet 515 Posted February 2, 2015 Author Premium Share Posted February 2, 2015 I'm pretty sure the bug was brought by python change, because I tried a new clean 40k client and the bug was there... Link to comment Share on other sites More sharing options...
Premium Galet 515 Posted February 5, 2015 Author Premium Share Posted February 5, 2015 F5 ^^ Link to comment Share on other sites More sharing options...
pbuzz 31 Posted February 7, 2015 Share Posted February 7, 2015 try like this: for i in questRange[:questCount].iteritems(): (questName, questIcon, questCounterName, questCounterValue) = quest.GetQuestData(self.questShowingStartIndex+i) self.questNameList[i].SetText(questName) self.questNameList[i].Show() self.questLastCountList[i].Show() self.questLastTimeList[i].Show() Link to comment Share on other sites More sharing options...
Premium Galet 515 Posted February 7, 2015 Author Premium Share Posted February 7, 2015 I'll try thanks. ^^ But maybe it's because the game send more than 4 value, no ? Link to comment Share on other sites More sharing options...
pbuzz 31 Posted February 7, 2015 Share Posted February 7, 2015 yes, without iteritems it will loop only over the keys (in your case 4), but the game can return less or more then 4 values and that's why you need to use iteritems() to loop over keys + values at the same time 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