Metin2 EP, Valorant VP dahil tüm oyun ürünlerini en uygun fiyatlarla bulabilir, Item ve Karakterlerinizi hızlıca satabilirsiniz. HEMEN TIKLA!
Hata tamamen import kaynaklı, eklediğin toplu oto sil/sat sisteminin mantığıyla doğrudan alakası yok. Client, uiDeleteItem.py dosyasını yüklerken grid isimli bir modül arıyor ama bulamadığı için daha karakter seçim ekranında kendini kapatıyor.Hayırlı geceler toplu oto sil sat sistemi ekliyorum fakat uideleteitem içinde hata veriyor
1212 22:17:06702 ::
networkModule.py(line:205) SetSelectCharacterPhase
system.py(line:177) __hybrid_import
system.py(line:142) _process_result
introSelect.py(line:28) <module>
system.py(line:177) __hybrid_import
system.py(line:142) _process_result
interfaceModule.py(line:41) <module>
system.py(line:177) __hybrid_import
system.py(line:142) _process_result
uiDeleteItem.py(line:16) <module>
system.py(line:183) __hybrid_import
networkModule.SetSelectCharacterPhase - <type 'exceptions.ImportError'>:No module named grid
1212 22:17:06702 :: ============================================================================================================
1212 22:17:06702 :: Abort!!!!
uigrid dosyası veya grid py dosyası yok benim alt yapıda pack deHata tamamen import kaynaklı, eklediğin toplu oto sil/sat sisteminin mantığıyla doğrudan alakası yok. Client, uiDeleteItem.py dosyasını yüklerken grid isimli bir modül arıyor ama bulamadığı için daha karakter seçim ekranında kendini kapatıyor.
Logda zaten açık açık söylüyor: No module named grid. Yani bu dosya client tarafında yok ya da yanlış isimle duruyor.
Genelde şu yüzden oluyor: Aldığın sistem başka bir client altyapısına göre yazılmış oluyor. O client’ta grid.py diye bir dosya var ama senin client’ta ya hiç yok ya da uiGrid.py gibi farklı bir isimle bulunuyor. Import satırı da buna göre uyumsuz kalıyor.
Yapman gereken ilk şey root klasörünü kontrol etmek. grid.py gerçekten var mı yok mu bak. Yoksa, sistemin alındığı client’tan o dosyayı alman gerekiyor. Eğer sende uiGrid.py benzeri bir dosya varsa, uiDeleteItem.py içindeki import grid satırını client’ındaki gerçek dosya adına göre düzeltmen lazım.
Bir diğer ihtimal de dosya var ama pack’e eklenmemiş olması. Pack kullanıyorsan, grid.py’nin gerçekten pack içinde olduğundan ve client’ın onu okuyabildiğinden emin ol. Aksi halde dosya oradaymış gibi görünse bile import sırasında yine bulunamaz.
Özetle sorun net: uiDeleteItem grid modülüne bağlı ama client’ta o modül yok ya da yanlış isimle duruyor. Import’u client yapına göre düzenlediğinde hata tamamen ortadan kalkar.
class GridSlotWindow(SlotWindow):
def __init__(self):
SlotWindow.__init__(self)
self.startIndex = 0
def __del__(self):
SlotWindow.__del__(self)
def RegisterWindow(self, layer):
self.hWnd = wndMgr.RegisterGridSlotWindow(self, layer)
def ArrangeSlot(self, StartIndex, xCount, yCount, xSize, ySize, xBlank, yBlank):
self.startIndex = StartIndex
wndMgr.ArrangeSlot(self.hWnd, StartIndex, xCount, yCount, xSize, ySize, xBlank, yBlank)
self.startIndex = StartIndex
def GetStartIndex(self):
return self.startIndex
GRID_TABLE_KEY_LIST = ( "start_index", "x_count", "y_count", "x_step", "y_step", )
elif Type == "candidate_list":
parent.Children[Index] = CandidateListBox()
parent.Children[Index].SetParent(parent)
self.LoadElementCandidateList(parent.Children[Index], ElementValue, parent)
elif Type == "grid_table":
parent.Children[Index] = GridSlotWindow()
parent.Children[Index].SetParent(parent)
self.LoadElementGridTable(parent.Children[Index], ElementValue, parent)
def LoadElementCandidateList(self, window, value, parentWindow):
if False == self.CheckKeyList(value["name"], value, self.CANDIDATE_LIST_KEY_LIST):
return False
window.SetPosition(int(value["x"]), int(value["y"]))
window.SetItemSize(int(value["item_xsize"]), int(value["item_ysize"]))
window.SetItemStep(int(value["item_step"]))
window.Show()
return True
def LoadElementGridTable(self, window, value, parentWindow):
if False == self.CheckKeyList(value["name"], value, self.GRID_TABLE_KEY_LIST):
return False
xBlank = 0
yBlank = 0
if True == value.has_key("x_blank"):
xBlank = int(value["x_blank"])
if True == value.has_key("y_blank"):
yBlank = int(value["y_blank"])
if localeInfo.IsARABIC():
pass
else:
window.SetPosition(int(value["x"]), int(value["y"]))
window.ArrangeSlot( int(value["start_index"]),
int(value["x_count"]),
int(value["y_count"]),
int(value["x_step"]),
int(value["y_step"]),
xBlank,
yBlank)
if True == value.has_key("image"):
r = 1.0
g = 1.0
b = 1.0
a = 1.0
if True == value.has_key("image_r") and \
True == value.has_key("image_g") and \
True == value.has_key("image_b") and \
True == value.has_key("image_a"):
r = float(value["image_r"])
g = float(value["image_g"])
b = float(value["image_b"])
a = float(value["image_a"])
wndMgr.SetSlotBaseImage(window.hWnd, value["image"], r, g, b, a)
if True == value.has_key("style"):
if "select" == value["style"]:
wndMgr.SetSlotStyle(window.hWnd, wndMgr.SLOT_STYLE_SELECT)
if localeInfo.IsARABIC():
self.LoadDefaultData(window, value, parentWindow)
else:
window.Show()
return True
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?