Gildenlager Items

10/10/2015 11:59 °Ace°#1
Guten Tag Epvp,

ich habe ein neuen Client verwendet, weil der alte mir zu viele Probleme zubereitet hat.
Nun hab ich den Gildenlager so gut wie fast fertig, jedoch wenn ich ein Items rein tue und es wieder raus holen will, ist es zwar in meinem Inventar, aber auch im Lager zu sehen. Mag mir einer helfen ?


PHP Code:
1010 11:52:15278 :: Traceback (most recent call last):

1010 11:52:15278 ::   File "ui.py", line 1454, in OnSelectEmptySlot

1010 11
:52:15278 ::   File "ui.py", line 87, in __call__

1010 11
:52:15278 ::   File "ui.py", line 78, in __call__

1010 11
:52:15278 ::   File "uiInventory.py", line 667, in SelectEmptySlot

1010 11
:52:15278 ::   File "mouseModule.py", line 394, in RunCallBack

1010 11
:52:15278 ::   File "ui.py", line 87, in __call__

1010 11
:52:15278 ::   File "ui.py", line 69, in __call__

1010 11
:52:15278 ::   File "uiguildstorage.py", line 266, in DropToInventory

1010 11
:52:15278 :: AttributeError
1010 11
:52:15278 :: : 
1010 11:52:15278 :: 'dict' object has no attribute 'pop'
1010 11:52:15278 :: 
In Ente Thread war die Lösung für so ein Problem, was ein anderer auch hatte:
[Only registered and activated users can see links. Click Here To Register...]

PHP Code:
try:
    
x = s[i]
    
del s[i]
    return 
x
except KeyError
:
    return 
None #None is the 2nd parameter of pop in this case 
PHP Code:
in UnselectItemSlot:
        try:
            
constInfo.GUILDSTORAGE["slots"]["TAB"+str(self.tab)].pop(selectedSlotPos,None)
        
except AttributeError:
            try: 
del constInfo.GUILDSTORAGE["slots"]["TAB"+str(self.tab)][selectedSlotPos]
            
except KeyError: pass

in DropToInventory
:
        try:
            
constInfo.GUILDSTORAGE["slots"]["TAB"+str(self.tab)].pop(attachedSlotPos,None)
        
except AttributeError:
            try: 
del constInfo.GUILDSTORAGE["slots"]["TAB"+str(self.tab)][attachedSlotPos]
            
except KeyError: pass

in MoveItemSlot
:
        try:
            
constInfo.GUILDSTORAGE["slots"]["TAB"+str(from_[0])].pop(from_[1],None)
        
except AttributeError:
            try: 
del constInfo.GUILDSTORAGE["slots"]["TAB"+str(from_[0])][from_[1]]
            
except KeyError: pass 
Ich weiß wo ich UnselectItemSlot, DropToInventory und MoveItemSlot ersetze. Das wird in der uiguildstorage.py gemacht. Wo füge ich das erste ein ? Mag es mir einer erklären. Da steht ja nur "try".
10/11/2015 19:13 °Ace°#2
#kann keiner helfen -.- ?