Çözüldü Vegas Biyolog Sistemi

Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

sharap

MT Üye
MT Üye
Mesaj
298
Çözümler
15
Beğeni
140
Puan
529
Ticaret Puanı
0
Herkese Merhaba; Vegas Biyolog sistemini eklemeye çalışıyorum bütün eklemelerimi yaptım ama şöyle bir hatam var neyden kaynaklı olabilir sizce.

Ekran Alıntısı.PNG


Karakterin biyolog görevi yapılmamış seviye 50 Ama herhangi bir tepki yok pack tarafındaki;

Seysr::
0317 19:29:51359 :: Traceback (most recent call last):

0317 19:29:51359 ::   File "game.py", line 2123, in BINARY_ServerCommand_Run

0317 19:29:51359 ::   File "stringCommander.py", line 63, in Run

0317 19:29:51359 ::   File "stringCommander.py", line 31, in __call__

0317 19:29:51360 ::   File "stringCommander.py", line 20, in __call__

0317 19:29:51360 ::   File "interfaceModule.py", line 1989, in SetBioData

0317 19:29:51360 ::   File "uiBiyolog.py", line 403, in LoadData

0317 19:29:51360 :: TypeError
0317 19:29:51360 :: :
0317 19:29:51360 :: SAFE_SetStringEvent() takes exactly 3 arguments (4 given)
0317 19:29:51360 ::

0317 19:29:51360 :: Unknown Server Command biodata 1 0 0 | biodata


Yukarıdaki gibi. Alakalı kod bloğu;

UiBiyolog.py Kod Bloğu::
            return
        else:
            if level != self.bioLevel:
                item.SelectItem(bio_data[level][15])
                if item.GetIconImageFileName().find("gr2") == -1:
                    self.ozutIcon.LoadImage(item.GetIconImageFileName())
                    self.ozutIcon.SAFE_SetStringEvent("MOUSE_OVER_IN",self.OverInItem,bio_data[level][15])
                    self.ozutIcon.Show()
                    self.checkBoxOzut.Show()
                else:
                    self.ozutIcon.Hide()
                    self.checkBoxOzut.Hide()
                item.SelectItem(bio_data[level][16])
                if item.GetIconImageFileName().find("gr2") == -1:
                    self.unutkanlikIcon.LoadImage(item.GetIconImageFileName())
                    self.unutkanlikIcon.SAFE_SetStringEvent("MOUSE_OVER_IN",self.OverInItem,bio_data[level][16])
                    self.unutkanlikIcon.Show()
                    self.checkBoxUnutkanlik.Show()
                else:
                    self.unutkanlikIcon.Hide()
                    self.checkBoxUnutkanlik.Hide()
                self.ShowBonusText()


InterFaceModule.py:
    if app.ENABLE_BIYOLOG:
        def MakeBioWindow(self):
            if self.wndBio == None:
                self.wndBio = uiBiyolog.BiologWindow()
                self.wndBio.LoadEmpty()
                return True
            return False
        def OpenBiologWindow(self):
            self.MakeBioWindow()
            if self.wndBio.IsShow():
                self.wndBio.Close()
            else:
                self.wndBio.Open()
        def SetBioData(self, level, count, time):
            self.MakeBioWindow()
            self.wndBio.LoadData(int(level), int(count), int(time))
        def SetBioStone(self, level):
            self.MakeBioWindow()
            self.wndBio.LoadStone(int(level))
        def SetBioGift(self, level):
            self.MakeBioWindow()
            self.wndBio.LoadGift(int(level))
        def SetBioEmpty(self):
            if self.MakeBioWindow() == False:
                self.wndBio.LoadEmpty()

Bir türlü çözemedim bir de quest olarak sadece bio_reset_item.lua var questlerde başka quest varmı bilmiyorum bilgisi olan paylaşırsa çok sevinirim şimdiden ilginiz için teşekkür ederim.
 
Çözüm
class ExpandedImageBox(ImageBox):

Bunun üstündeki

def SAFE_SetStringEvent(self, event, func):
self.eventDict[event]=__mem_func__(func)

bunu sil 1. tanımlanan yerine bunu işliyor

Burdan yola çıkarak sistemin ekli olduğu bir files bulum alttaki gibi değiştirdim.. Düzeldi...



Ui.py:
    if app.ENABLE_OFFICAL_CHARACTER_SCREEN:
        def ForceRender(self):
            wndMgr.ImageForceRender(self.hWnd)

        def OnMouseLeftButtonUp(self):
            Window.OnMouseLeftButtonUp(self)
            try:
                apply(self.eventDict["MOUSE_LEFT_UP"], self.argDict["MOUSE_LEFT_UP"])
            except KeyError:
                pass

        def OnMouseLeftButtonDown(self):
            try...
ui.py yükler misin
 
class ExpandedImageBox(ImageBox):

Bunun üstündeki

def SAFE_SetStringEvent(self, event, func):
self.eventDict[event]=__mem_func__(func)

bunu sil 1. tanımlanan yerine bunu işliyor

Burdan yola çıkarak sistemin ekli olduğu bir files bulum alttaki gibi değiştirdim.. Düzeldi...



Ui.py:
    if app.ENABLE_OFFICAL_CHARACTER_SCREEN:
        def ForceRender(self):
            wndMgr.ImageForceRender(self.hWnd)

        def OnMouseLeftButtonUp(self):
            Window.OnMouseLeftButtonUp(self)
            try:
                apply(self.eventDict["MOUSE_LEFT_UP"], self.argDict["MOUSE_LEFT_UP"])
            except KeyError:
                pass

        def OnMouseLeftButtonDown(self):
            try:
                apply(self.eventDict["MOUSE_LEFT_DOWN"], self.argDict["MOUSE_LEFT_DOWN"])
            except KeyError:
                pass

        def SAFE_SetStringEvent(self, event, func, *args):
            self.eventDict[event]=__mem_func__(func)
            self.argDict[event]=args

        def SAFE_SetMouseClickEvent(self, func, *args):
            self.eventDict["MOUSE_LEFT_DOWN"]=__mem_func__(func)
            self.argDict["MOUSE_LEFT_DOWN"]=args

        def SetEvent(self, func, *args) :
            result = self.eventFunc.has_key(args[0])
            if result :
                self.eventFunc[args[0]] = func
                self.eventArgs[args[0]] = args
            else :
                print "[ERROR] ui.py SetEvent, Can`t Find has_key : %s" % args[0]

    def OnMouseOverIn(self):
        try:
            apply(self.eventDict["mouse_over_in"], self.argDict["mouse_over_in"])
        except KeyError:
            pass

    def OnMouseOverOut(self):
        try:
            apply(self.eventDict["mouse_over_out"], self.argDict["mouse_over_out"])
        except KeyError:
            pass

    def SAFE_SetStringEvent(self, event, func,isa=False, *args):
        if not isa:
            self.eventDict[event]=__mem_func__(func)
            self.argDict[event]=args
        else:
            self.eventDict[event]=func
 
Çözüm
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst