Transmutation system bug

Indította xTryx, 2018-10-26, 13:35:58

Sziasztok!
Beraktam a rendszert, de elég érdekes hibákat produkál.
Az ablaknál alulról hiányoznak a gombok,
a leltárban minden tárgynál ott a kis zöld jel,
semmi syserr.
Ötletek?

Uiinventory részei:

if app.ENABLE_CHANGE_LOOK_SYSTEM:
USE_TYPE_TUPLE = USE_TYPE_TUPLE + ("USE_RESET_LOOK_VNUM",)
questionDialog = None




def RefreshEquipSlotWindow(self):
getItemVNum=player.GetItemIndex
getItemCount=player.GetItemCount
setItemVNum=self.wndEquip.SetItemSlot
for i in xrange(player.EQUIPMENT_PAGE_COUNT):
slotNumber = player.EQUIPMENT_SLOT_START + i
itemCount = getItemCount(slotNumber)
if itemCount <= 1:
itemCount = 0
setItemVNum(slotNumber, getItemVNum(slotNumber), itemCount)
if app.ENABLE_CHANGE_LOOK_SYSTEM:
if player.GetItemLook(slotNumber):
self.wndEquip.EnableSlotCoverImage(slotNumber)
else:
self.wndEquip.DisableSlotCoverImage(slotNumber)

if app.ENABLE_NEW_EQUIPMENT_SYSTEM:
for i in xrange(player.NEW_EQUIPMENT_SLOT_COUNT):
slotNumber = player.NEW_EQUIPMENT_SLOT_START + i
itemCount = getItemCount(slotNumber)
if itemCount <= 1:
itemCount = 0
setItemVNum(slotNumber, getItemVNum(slotNumber), itemCount)
if app.ENABLE_CHANGE_LOOK_SYSTEM:
if player.GetItemLook(slotNumber):
self.wndEquip.EnableSlotCoverImage(slotNumber)
else:
self.wndEquip.DisableSlotCoverImage(slotNumber)
print "ENABLE_NEW_EQUIPMENT_SYSTEM", slotNumber, itemCount, getItemVNum(slotNumber)



self.wndEquip.RefreshSlot()
self.RefreshCostumeSlot()



def SelectEmptySlot(self, selectedSlotPos):
if app.ENABLE_CHANGE_LOOK_SYSTEM:
if constInfo.BusySlots():
return
if constInfo.GET_ITEM_QUESTION_DIALOG_STATUS() == 1:
return



if app.ENABLE_CHANGE_LOOK_SYSTEM:
def __CanResetLookVnum(self, dstSlotPos):
dstItemVNum = player.GetItemIndex(dstSlotPos)
if dstItemVNum == 0:
return False

if player.GetItemLook(dstSlotPos):
return True

return False



def UseItemSlot(self, slotIndex):
if app.ENABLE_CHANGE_LOOK_SYSTEM:
if constInfo.BusySlots():
return
if constInfo.GET_ITEM_QUESTION_DIALOG_STATUS():
return


def OnUpdate(self):
self.RefreshBagSlotWindow()
if app.ENABLE_CHANGE_LOOK_SYSTEM:
for i in xrange(player.INVENTORY_PAGE_SIZE):
if app.ENABLE_CHANGE_LOOK_SYSTEM:
GlobalSlot = self.__InventoryLocalSlotPosToGlobalSlotPos(i)

if player.GetItemLook(GlobalSlot):
self.wndItem.EnableSlotCoverImage(i)
else:
self.wndItem.DisableSlotCoverImage(i)

if player.FindActivedChangeLookSlot(0) == GlobalSlot or player.FindActivedChangeLookSlot(1) == GlobalSlot:
self.wndItem.ActivateChangeLookSlot(i)
else:
self.wndItem.DeactivateChangeLookSlot(i)


Ha más is kell pótlom.

Uhhhh, onupdatebe egy for ciklus a leltárhoz? Miféle rendszer ez? Akárki írta nincs képbe a kliens és a szerver közti kommunikációval. :-[

Elvileg vmi lent féle, de ha egy shang féle, vagy nem tudom melyik a legjobb system linket kaphatnék azt megköszönném.