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 1454in OnSelectEmptySlot

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

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

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

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

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

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

1010 11
:52:15278 ::   File "uiguildstorage.py"line 266in 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:
    
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 KeyErrorpass

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 KeyErrorpass

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 KeyErrorpass 
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 -.- ?