Yardım Offline Shop Pack Taraflı Hata / 'GameWindow' object has no attribute 'serverCommander'

Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

karew1

MT Üye
MT Üye
Merhabalar,

Ciddi olarak söyleyebilirim, birkaç gündür uğraşıyorum bu sistem ile ( offline shop sistemine ek olarak 8 adet price, won ve ep sistemide sistem beraberinde kuruluyor... ) fakat, en son burada takıldım ve çözemiyorum... Lütfen bir yardım :)

Syserr:
0916 02:03:37963 ::   File "networkModule.py", line 253, in SetGamePhase

0916 02:03:37965 ::   File "game.py", line 131, in __init__

0916 02:03:37967 ::   File "interfaceModule.py", line 334, in MakeInterface

0916 02:03:37968 ::   File "interfaceModule.py", line 193, in __MakeWindows

0916 02:03:37969 ::   File "uiInventory.py", line 446, in __init__

0916 02:03:37970 ::   File "uiInventory.py", line 557, in __LoadWindow

0916 02:03:37973 ::   File "ui.py", line 3122, in GetChild

0916 02:03:37973 :: KeyError
0916 02:03:37975 :: :
0916 02:03:37976 :: Sil_Slot
0916 02:03:37977 ::

0916 02:03:37991 :: Traceback (most recent call last):

0916 02:03:37992 ::   File "game.py", line 2447, in BINARY_ServerCommand_Run

0916 02:03:37992 :: AttributeError
0916 02:03:37993 :: :
0916 02:03:37994 :: 'GameWindow' object has no attribute 'serverCommander'
0916 02:03:37996 ::

0916 02:03:37997 :: Traceback (most recent call last):

0916 02:03:37998 ::   File "game.py", line 2675, in BINARY_OfflineShop_UpdateOnlinePlayerCount

0916 02:03:37999 :: AttributeError
0916 02:03:37999 :: :
0916 02:03:38000 :: 'NoneType' object has no attribute 'UpdateOnlinePlayerCount'
0916 02:03:38001 ::

0916 02:03:38001 :: Traceback (most recent call last):

0916 02:03:38003 ::   File "game.py", line 2447, in BINARY_ServerCommand_Run

0916 02:03:38003 :: AttributeError
0916 02:03:38004 :: :
0916 02:03:38008 :: 'GameWindow' object has no attribute 'serverCommander'
0916 02:03:38009 ::

0916 02:03:38010 :: Traceback (most recent call last):

0916 02:03:38011 ::   File "game.py", line 2679, in BINARY_OfflineShop_UpdateOnlineShopCount

0916 02:03:38011 :: AttributeError
0916 02:03:38012 :: :
0916 02:03:38012 :: 'NoneType' object has no attribute 'UpdateOnlineShopCount'
0916 02:03:38013 ::

0916 02:03:38408 :: Traceback (most recent call last):

0916 02:03:38408 ::   File "game.py", line 2447, in BINARY_ServerCommand_Run

0916 02:03:38409 :: AttributeError
0916 02:03:38410 :: :
0916 02:03:38412 :: 'GameWindow' object has no attribute 'serverCommander'
0916 02:03:38413 ::

Ek olarak karaktere giriş yapabiliyorum ve %100 doluyor oyun ekranı açılmıyor öyle kalıyor şu anda ve debug.exe ile çalıştırdığım için aynı hataları Syserr dosyasına yazdırmaya devam ediyor...

ui.py:
class ScriptWindow(Window):
    def __init__(self, layer = "UI"):
        Window.__init__(self, layer)
        self.Children = []
        self.ElementDictionary = {}
    def __del__(self):
        Window.__del__(self)

    def ClearDictionary(self):
        self.Children = []
        self.ElementDictionary = {}
    def InsertChild(self, name, child):
        self.ElementDictionary[name] = child

    def IsChild(self, name):
        return self.ElementDictionary.has_key(name)
    def GetChild(self, name):
        return self.ElementDictionary[name]

    def GetChild2(self, name):
        return self.ElementDictionary.get(name, None)

game.py:
    def BINARY_ServerCommand_Run(self, line):
        #dbg.TraceError(line)
        try:
            #print " BINARY_ServerCommand_Run", line
            return self.serverCommander.Run(line)
        except RuntimeError, msg:
            dbg.TraceError(msg)
            return 0

Game.py:
    # BEGIN_OFFLINE_SHOP
    def __OfflineShop_Open(self):
        self.interface.OpenOfflineShopInputNameDialog()

    def BINARY_OfflineShop_Appear(self, vid, text):
        if chr.GetInstanceType(vid) == chr.INSTANCE_TYPE_NPC:
            self.interface.AppearOfflineShop(vid, text)

    def BINARY_OfflineShop_Disappear(self, vid):
        if chr.GetInstanceType(vid) == chr.INSTANCE_TYPE_NPC:
            self.interface.DisappearOfflineShop(vid)

    def BINARY_OfflineShop_UpdateOnlinePlayerCount(self, playerCount):
        if self.interface:
            self.interface.wndMiniMap.UpdateOnlinePlayerCount(playerCount)

    def BINARY_OfflineShop_UpdateOnlineShopCount(self, shopCount):
        if self.interface:
            self.interface.wndMiniMap.UpdateOnlineShopCount(shopCount)

    def __CloseOfflineShopBuilderWindow(self):
        self.interface.CloseOfflineShopBuilder()

    def BINARY_Update_Gold(self, gold):
        constInfo.gold =(int(gold))
    def BINARY_Update_Weed_Stone1(self, weed_stone1):
        constInfo.weed_stone1 =(int(weed_stone1))
    def BINARY_Update_Weed_Stone2(self, weed_stone2):
        constInfo.weed_stone2 =(int(weed_stone2))
    def BINARY_Update_Weed_Stone3(self, weed_stone3):
        constInfo.weed_stone3 =(int(weed_stone3))
    def BINARY_Update_Weed_Stone4(self, weed_stone4):
        constInfo.weed_stone4 =(int(weed_stone4))
    def BINARY_Update_Soul_Stone(self, soul_stone):
        constInfo.soul_stone =(int(soul_stone))
    def BINARY_Update_Gold_Bar(self, gold_bar):
        constInfo.gold_bar =(int(gold_bar))
    def BINARY_Update_Cheque_Offlineshop(self, cheque):
        constInfo.cheque =(int(cheque))
    def BINARY_Update_Dragon_Coins(self, cash):
        constInfo.ep =(int(cash))
    # END_OF_OFFLINE_SHOP
 
O kadar şeyi bir arada kurmak zorlu bi süreç. Eksik fonksiyonlar var sanırsam. Python kısmındaki tüm anlatımları tekrardan kontrol ederek uygulayın
 
Tekrardan bütün eklediğim kodları kontrol edeceğim ama burada 2 adet hata veriyor.
İlki :
KeyError
Sil_Slot
Sonraki,
'GameWindow' object has no attribute 'serverCommander'

şimdi buralara kadar belkide 5-6 hata çözerek geldim Python taraflı bundan dolayı pes etmekde istemiyorum. Zaten kodların yarısını kontrol ettim diyebilirim :(
 
Geri