Yardım BATTLE PASS syserr

  • Konuyu açan Konuyu açan TheAdmin33
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 1
  • Gösterim Gösterim 307
Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

TheAdmin33

Ah, bu şarkıların gözü kör olsun
Geliştirici
Yardımsever Üye
Usta Üye
Editör
Mesaj
1.044
Çözümler
59
Beğeni
2.658
Puan
1.849
Ticaret Puanı
0
Linkleri görebilmek için giriş yap veya kayıt ol.
bu sistemi ekledim ama battle_pass.txt yi locale/tr ye atıp dosyayı kapatmama rağmen bu syserr ı veriyor sebebi nedir?

syserr:
Genişlet Daralt Kopyala
0825 17:21:30367 ::
uibattlepass.py(line:489) LoadMissionList

LoadMissionList - <type 'exceptions.IOError'>:[Errno 2] No such file or directory: 'locale/tr/battle_pass.txt'

0825 17:21:30367 :: ============================================================================================================
0825 17:21:30367 :: Abort!!!!
 
lines = open(app.GetLocalePath() + "/battle_pass.txt", "r").readlines() kısmını şununla değiştirdim;
lines = pack_open(app.GetLocalePath() + "/battle_pass.txt", "r").readlines()
düzeldi. Ama başka bir syserr verdi;
syserr:
Genişlet Daralt Kopyala
0825 22:22:33500 :: Traceback (most recent call last):

0825 22:22:33500 ::   File "uibattlepass.py", line 287, in OnRender

0825 22:22:33501 ::   File "ui.py", line 1282, in SetClipRect

0825 22:22:33501 :: AttributeError
0825 22:22:33501 :: :
0825 22:22:33501 :: 'module' object has no attribute 'SetClipRect'
0825 22:22:33501 ::

diğer fileslardan bakıp eksiğin ui.py den kaynaklı olduğunu gördüm gerekli kodu ekledim ama aynı hatayı vermeye devam ediyor bu kod yok demeye devam ediyor.

ui.py:
Genişlet Daralt Kopyala
class ExpandedImageBox(ImageBox):
    def __init__(self, layer = "UI"):
        ImageBox.__init__(self, layer)
        self.eventFunc = {"mouse_click" : None, "mouse_over_in" : None, "mouse_over_out" : None}
        self.eventArgs = {"mouse_click" : None, "mouse_over_in" : None, "mouse_over_out" : None}

    def __del__(self):
        ImageBox.__del__(self)
        self.eventFunc = None
        self.eventArgs = None

    def RegisterWindow(self, layer):
        self.hWnd = wndMgr.RegisterExpandedImageBox(self, layer)

    def SetScale(self, xScale, yScale):
        wndMgr.SetScale(self.hWnd, xScale, yScale)

    def SetOrigin(self, x, y):
        wndMgr.SetOrigin(self.hWnd, x, y)

    def SetRotation(self, rotation):
        wndMgr.SetRotation(self.hWnd, rotation)

    def SetRenderingMode(self, mode):
        wndMgr.SetRenderingMode(self.hWnd, mode)

    def SetRenderingRect(self, left, top, right, bottom):
        wndMgr.SetRenderingRect(self.hWnd, left, top, right, bottom)

    def SetClipRect(self, left, top, right, bottom, isVertical = False):
        wndMgr.SetClipRect(self.hWnd, left, top, right, bottom, isVertical)
    def SetRenderingRect(self, left, top, right, bottom):
        wndMgr.SetRenderingRect(self.hWnd, left, top, right, bottom)

    def SetPercentage(self, curValue, maxValue):
        if maxValue:
            self.SetRenderingRect(0.0, 0.0, -1.0 + float(curValue) / float(maxValue), 0.0)
        else:
            self.SetRenderingRect(0.0, 0.0, 0.0, 0.0)

    def GetWidth(self):
        return wndMgr.GetWindowWidth(self.hWnd)

    def GetHeight(self):
        return wndMgr.GetWindowHeight(self.hWnd)

    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]
 
Üst