Çözüldü Mob Target İnfo Sistemi Sorun

  • Konuyu açan Konuyu açan xplarges
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 1
  • Gösterim Gösterim 49
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ı.

xplarges

Üye
Üye
Mesaj
119
Çözümler
9
Beğeni
39
Puan
119
Ticaret Puanı
0
Merhabalar, öncelikle sistemi söktüğü için @YunusEmreOfficial teşekkür ederim. Kullandığım sistem bu. Anlatım gayet güzel sıkıntısız bir şekilde ekledim. ETC yolunu kendime göre ayarladım. NumberToString konusunda syserr alıyordum onu da @hasanmacit in bir yorumu sayesinde çözdüm. "incomplete format" hatası alıyordum locale_game.txt'nin en altına bir boşluk bırakmamız gerekiyormuş bunuda çözdüm. En son şöyle bir hatayla karşılaştım ve burada kitlendim sistem çalışıyor itemler gözüküyor sorunsuz bir şekilde ama syserr dönüyor.

SYSERR:
Genişlet Daralt Kopyala
0808 04:01:15110 ::   File "ui.py", line 301, in OnMouseLeftButtonDown

0808 04:01:15110 :: AttributeError
0808 04:01:15110 :: :
0808 04:01:15110 :: 'ImageBox' object has no attribute 'clickEvent'
0808 04:01:15110 ::

0808 04:01:15358 :: Traceback (most recent call last):

0808 04:01:15358 ::   File "ui.py", line 301, in OnMouseLeftButtonDown

0808 04:01:15358 :: AttributeError
0808 04:01:15358 :: :
0808 04:01:15358 :: 'ImageBox' object has no attribute 'clickEvent'
0808 04:01:15358 ::

0808 04:01:15638 :: Traceback (most recent call last):

0808 04:01:15638 ::   File "ui.py", line 301, in OnMouseLeftButtonDown

0808 04:01:15639 :: AttributeError
0808 04:01:15639 :: :
0808 04:01:15639 :: 'ImageBox' object has no attribute 'clickEvent'
0808 04:01:15639 ::

0808 04:01:25951 :: Traceback (most recent call last):

0808 04:01:25951 ::   File "ui.py", line 301, in OnMouseLeftButtonDown

0808 04:01:25951 :: AttributeError
0808 04:01:25951 :: :
0808 04:01:25951 :: 'ShoutManager' object has no attribute 'clickEvent'
0808 04:01:25951 ::

0808 04:01:10061 ::   File "ui.py", line 301, in OnMouseLeftButtonDown

0808 04:01:10061 :: AttributeError
0808 04:01:10061 :: :
0808 04:01:10061 :: 'TargetBoard' object has no attribute 'clickEvent'
0808 04:01:10061 ::

Bu konuda hakkında yardımcı olursanız sevinirim.

İyi forumlar dilerim.
 
Çözüm
Hatayı çözdüm

ui.py:
Genişlet Daralt Kopyala
#ILK HALI
    def IsIn(self):
        return wndMgr.IsIn(self.hWnd)

    #BU ARAYA EKLEMISTIM
  
    def SetClickEvent(self, event):
        self.clickEvent = __mem_func__(event)

    def OnMouseLeftButtonDown(self):
        if self.clickEvent:
            self.clickEvent()

#EKLEDIĞIM HALI NOT: BENDE ZATEN SETCLICK VE ONMOUSELEFTBUTTONDOWN OLDUĞU İÇİN SADECE ISINPOSITION EKLEMIŞTIM ASLINDA ONLARIDA IF BLOĞUNUN İÇİNE KOYMAMIZ GERKEİYORMUŞ
    if app.ENABLE_TARGET_INFORMATION_SYSTEM:
        def IsInPosition(self):
            xMouse, yMouse = wndMgr.GetMousePosition()
            x, y = self.GetGlobalPosition()
            return xMouse >= x and xMouse < x + self.GetWidth() and yMouse >= y and yMouse < y +...
Hatayı çözdüm

ui.py:
Genişlet Daralt Kopyala
#ILK HALI
    def IsIn(self):
        return wndMgr.IsIn(self.hWnd)

    #BU ARAYA EKLEMISTIM
  
    def SetClickEvent(self, event):
        self.clickEvent = __mem_func__(event)

    def OnMouseLeftButtonDown(self):
        if self.clickEvent:
            self.clickEvent()

#EKLEDIĞIM HALI NOT: BENDE ZATEN SETCLICK VE ONMOUSELEFTBUTTONDOWN OLDUĞU İÇİN SADECE ISINPOSITION EKLEMIŞTIM ASLINDA ONLARIDA IF BLOĞUNUN İÇİNE KOYMAMIZ GERKEİYORMUŞ
    if app.ENABLE_TARGET_INFORMATION_SYSTEM:
        def IsInPosition(self):
            xMouse, yMouse = wndMgr.GetMousePosition()
            x, y = self.GetGlobalPosition()
            return xMouse >= x and xMouse < x + self.GetWidth() and yMouse >= y and yMouse < y + self.GetHeight()

    def SetClickEvent(self, event):
        self.clickEvent = __mem_func__(event)

    def OnMouseLeftButtonDown(self):
        if self.clickEvent:
            self.clickEvent()

#ÇÖZÜLMÜŞ HALI
    if app.ENABLE_TARGET_INFORMATION_SYSTEM:
        def IsInPosition(self):
            xMouse, yMouse = wndMgr.GetMousePosition()
            x, y = self.GetGlobalPosition()
            return xMouse >= x and xMouse < x + self.GetWidth() and yMouse >= y and yMouse < y + self.GetHeight()

        def SetClickEvent(self, event):
            self.clickEvent = __mem_func__(event)

        def OnMouseLeftButtonDown(self):
            if self.clickEvent:
                self.clickEvent()

Hazır konu açmışken, diğer yerlerde sıkıntı çıkıyorsa sizde bir yardımım dokunsun.

SYSERR:
Genişlet Daralt Kopyala
0808 03:54:17959 :: ValueError
0808 03:54:17959 :: :
0808 03:54:17959 :: incomplete format
0808 03:54:17959 ::

0808 03:54:18107 :: Traceback (most recent call last):

0808 03:54:18107 ::   File "ui.py", line 1371, in CallEvent

0808 03:54:18108 ::   File "ui.py", line 82, in __call__

0808 03:54:18108 ::   File "ui.py", line 64, in __call__

0808 03:54:18108 ::   File "uiTarget.py", line 602, in OnPressedInfoButton

0808 03:54:18108 ::   File "uiTarget.py", line 151, in Open

0808 03:54:18108 ::   File "uiTarget.py", line 180, in __LoadInformation

0808 03:54:18108 ::   File "uiTarget.py", line 252, in __LoadInformation_Race

0808 03:54:18108 :: ValueError
0808 03:54:18108 :: :
0808 03:54:18108 :: incomplete format
0808 03:54:18108 ::

Çözüm:
Genişlet Daralt Kopyala
locale_game.txt'nin en alt kısmına bir boşluk bırakın.
 
Çözüm
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Üst