Cube Bug

01/11/2016 15:37 BizepsSupportAccount#1
hallo liebe epvp com mein cube fenster ist total am rumbuggen, sobald ich z.B npc 20383 öffne und was craften will stürzt client ab hier mal der syserror


PHP Code:
´0111 15:26:00334 :: CSoundManager::PlayMusic Failed to load stream sound BGM/login_window.mp3
0111 15
:26:08316 :: CSoundManager::PlayMusic Failed to load stream sound BGM/characterselect.mp3
0111 15
:26:17782 :: CSoundManager::PlayMusic Failed to load stream sound BGM/enter_the_east.mp3
0111 15
:26:22313 :: Traceback (most recent call last):

0111 15:26:22313 ::   File "game.py"line 1817in BINARY_Cube_MaterialInfo

0111 15
:26:22313 ::   File "uiCube.py"line 442in Refresh

0111 15
:26:22313 :: KeyError
0111 15
:26:22313 :: : 
0111 15:26:22313 :: 1
0111 15
:26:22313 :: 

0111 15:26:22314 :: Traceback (most recent call last):

0111 15:26:22314 ::   File "game.py"line 1817in BINARY_Cube_MaterialInfo

0111 15
:26:22314 ::   File "uiCube.py"line 442in Refresh

0111 15
:26:22314 :: KeyError
0111 15
:26:22314 :: : 
0111 15:26:22314 :: 1
0111 15
:26:22314 :: 

0111 15:26:22314 :: Traceback (most recent call last):

0111 15:26:22314 ::   File "game.py"line 1796in BINARY_Cube_MaterialInfo

0111 15
:26:22314 :: ValueError
0111 15
:26:22314 :: : 
0111 15:26:22314 :: need more than 1 value to unpack
0111 15
:26:22314 :: 

0111 15:26:22328 :: Traceback (most recent call last):

0111 15:26:22328 ::   File "game.py"line 1779in BINARY_Cube_MaterialInfo

0111 15
:26:22328 :: IndexError
0111 15
:26:22328 :: : 
0111 15:26:22328 :: list index out of range
0111 15
:26:22328 :: 
keiner will helfen ?? :(
01/12/2016 16:46 BizepsSupportAccount#2
push
01/13/2016 17:47 gerald500#3
was steht den in

0111 15:26:22313 :: File "uiCube.py", line 442, in Refresh

poste das mal
02/10/2016 20:30 BizepsSupportAccount#4
push, bug exestiert immer noch. kann bitte kurz jmd helfen?

PHP Code:
 0210 20:29:22331 :: Traceback (most recent call last):

0210 20:29:22331 ::   File "ui.py"line 1180in OnMove

0210 20
:29:22331 ::   File "ui.py"line 87in __call__

0210 20
:29:22331 ::   File "ui.py"line 69in __call__

0210 20
:29:22331 ::   File "ui.py"line 2305in OnMove

0210 20
:29:22331 ::   File "ui.py"line 87in __call__

0210 20
:29:22331 ::   File "ui.py"line 69in __call__

0210 20
:29:22331 ::   File "uiCube.py"line 186in OnScrollResultList

0210 20
:29:22331 ::   File "uiCube.py"line 431in Refresh

0210 20
:29:22331 :: ZeroDivisionError
0210 20
:29:22331 :: : 
0210 20:29:22331 :: integer division or modulo by zero
0210 20
:29:22331 :: 
02/11/2016 10:49 .Inya#5
Poste die Relevanten Code Zeilen die in der Syserr angegeben werden und wir könnten dir evtl helfen
02/11/2016 21:01 BizepsSupportAccount#6
[Only registered and activated users can see links. Click Here To Register...]
Ein Bild von den betroffenen Zeilen
02/11/2016 21:04 #Metho#7
Das Bild existiert nicht mehr; poste es doch als puren Code hier im Forum.
02/11/2016 21:17 BizepsSupportAccount#8
PHP Code:
def Refresh(self):
        for 
slotPos in xrange(self.cubeSlot.GetSlotCount()):

            if 
not slotPos in self.cubeItemInfo:
                
self.cubeSlot.ClearSlot(slotPos)
                continue

            
invenPos self.cubeItemInfo[slotPos]
            
itemCount player.GetItemCount(invenPos)
            if 
itemCount 0:
                
self.cubeSlot.SetItemSlot(slotPosplayer.GetItemIndex(invenPos), itemCount)
            else:
                
del self.cubeItemInfo[slotPos]
                
self.cubeSlot.ClearSlot(slotPos)

        
0
        
for itemVnumcount in self.cubeResultInfos[self.firstSlotIndex:]:
            
currentSlot self.resultSlots[i]

            
item.SelectItem(itemVnum)
            
            
currentSlot.SetItemSlot(0itemVnumcount)
            
currentSlot.Show()

            
# Center Align
            
item.SelectItem(itemVnum)
            
sizeXsizeY item.GetItemSize()
            
localXlocalY currentSlot.GetLocalPosition()

            
currentSlot.SetSize(self.SLOT_SIZEXself.SLOT_SIZEY sizeY)

            
adjustLocalY 0
            
if sizeY 3:
                
adjustLocalY int(32 sizeY)

            
currentSlot.SetPosition(localXadjustLocalY)

            
1
            
if <= i:
                break 
431 ist in dem fall diese Zeile:

adjustLocalY = int(32 / sizeY)
02/11/2016 22:17 .Inya#9
Dein item hat eine Size von 0, vllt falsch eingetragen in der datenbank? Daher 0 division
02/11/2016 22:33 BizepsSupportAccount#10
Nein die Size ist auf 2 ^.
02/13/2016 02:31 BizepsSupportAccount#11
Kommt schon Leute, hab nicht soviel Ahnung von Python.
02/13/2016 13:16 blackout85#12
Quote:
Originally Posted by BizepsSupportAccount View Post
Nein die Size ist auf 2 ^.
der Error sagt aber genau das Gegenteil aus, sizeY ist leer wie .Inya schon sagte.
02/13/2016 13:56 BizepsSupportAccount#13
Es hat aber ne größe von 2 und ist nicht falsch eingetragen.. aber ich kontrolliere es mal trotzdem nochmal.