Yardım Bazı haritalara ışınlanırken düşen syserr yardım

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

mya

MT Üye
MT Üye
Mesaj
245
Çözümler
10
Beğeni
79
Puan
509
Ticaret Puanı
0
Bazı haritalara ışınlanırken bu şekilde syserr veriyor henüz sistem eklenmemiş mainline altyapıdır

0816 01:48:49324 :: Traceback (most recent call last):

0816 01:48:49324 :: File "game.py", line 599, in OnChangePKMode

0816 01:48:49324 :: File "interfaceModule.py", line 795, in OnChangePKMode

0816 01:48:49324 :: File "uiCharacter.py", line 558, in RefreshAlignment

0816 01:48:49324 :: TypeError
0816 01:48:49324 :: :
0816 01:48:49324 :: __pack_import() takes at most 4 arguments (5 given)
0816 01:48:49324 ::
 
En son bir moderatör tarafından düzenlenmiş:
Bazı haritalara ışınlanırken bu şekilde syseer veriyor henüz sistem eklenmemiş mainline altyapıdır

0816 01:48:49324 :: Traceback (most recent call last):

0816 01:48:49324 :: File "game.py", line 599, in OnChangePKMode

0816 01:48:49324 :: File "interfaceModule.py", line 795, in OnChangePKMode

0816 01:48:49324 :: File "uiCharacter.py", line 558, in RefreshAlignment

0816 01:48:49324 :: TypeError
0816 01:48:49324 :: :
0816 01:48:49324 :: __pack_import() takes at most 4 arguments (5 given)
0816 01:48:49324 ::
OnChangePKMode argumanı 4 değer alabilir diyor ama 5 geliyor diyor burda biryerden fazla değer geliyor buna bakıcaksın
 
Örümcek zindanı ve bir iki haritada yapıyor 5 arguman sadece bu 2 haritadamı geliyor yani tam anlayamadım hangi kısımlara bakacağımı
 
Kod:
Genişlet Daralt Kopyala
    def RefreshAlignment(self):
        point, grade = player.GetAlignmentData()

        import colorInfo
        COLOR_DICT = {    0 : colorInfo.TITLE_RGB_GOOD_4,
                        1 : colorInfo.TITLE_RGB_GOOD_3,
                        2 : colorInfo.TITLE_RGB_GOOD_2,
                        3 : colorInfo.TITLE_RGB_GOOD_1,
                        4 : colorInfo.TITLE_RGB_NORMAL,
                        5 : colorInfo.TITLE_RGB_EVIL_1,
                        6 : colorInfo.TITLE_RGB_EVIL_2,
                        7 : colorInfo.TITLE_RGB_EVIL_3,
                        8 : colorInfo.TITLE_RGB_EVIL_4, }
        colorList = COLOR_DICT.get(grade, colorInfo.TITLE_RGB_NORMAL)
        gradeColor = ui.GenerateColor(colorList[0], colorList[1], colorList[2])

        self.toolTipAlignment.ClearToolTip()
        self.toolTipAlignment.AutoAppendTextLine(localeInfo.TITLE_NAME_LIST[grade], gradeColor)
        self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGNMENT_NAME + str(point))
        self.toolTipAlignment.AlignHorizonalCenter()
ilgli blok böyle 558. satır
 
Kod:
Genişlet Daralt Kopyala
    def RefreshAlignment(self):
        point, grade = player.GetAlignmentData()

        import colorInfo
        COLOR_DICT = {    0 : colorInfo.TITLE_RGB_GOOD_4,
                        1 : colorInfo.TITLE_RGB_GOOD_3,
                        2 : colorInfo.TITLE_RGB_GOOD_2,
                        3 : colorInfo.TITLE_RGB_GOOD_1,
                        4 : colorInfo.TITLE_RGB_NORMAL,
                        5 : colorInfo.TITLE_RGB_EVIL_1,
                        6 : colorInfo.TITLE_RGB_EVIL_2,
                        7 : colorInfo.TITLE_RGB_EVIL_3,
                        8 : colorInfo.TITLE_RGB_EVIL_4, }
        colorList = COLOR_DICT.get(grade, colorInfo.TITLE_RGB_NORMAL)
        gradeColor = ui.GenerateColor(colorList[0], colorList[1], colorList[2])

        self.toolTipAlignment.ClearToolTip()
        self.toolTipAlignment.AutoAppendTextLine(localeInfo.TITLE_NAME_LIST[grade], gradeColor)
        self.toolTipAlignment.AutoAppendTextLine(localeInfo.ALIGNMENT_NAME + str(point))
        self.toolTipAlignment.AlignHorizonalCenter()
ilgli blok böyle 558. satır
game py interfacemodule.py buraya paylasır mısın
 
game.py:
Genişlet Daralt Kopyala
    def ChangePKMode(self):

        if not app.IsPressed(app.DIK_LCONTROL):
            return

        if player.GetStatus(player.LEVEL)<constInfo.PVPMODE_PROTECTED_LEVEL:
            self.__NotifyError(localeInfo.OPTION_PVPMODE_PROTECT % (constInfo.PVPMODE_PROTECTED_LEVEL))
            return

        curTime = app.GetTime()
        if curTime - self.lastPKModeSendedTime < constInfo.PVPMODE_ACCELKEY_DELAY:
            return

        self.lastPKModeSendedTime = curTime

        curPKMode = player.GetPKMode()
        nextPKMode = curPKMode + 1
        if nextPKMode == player.PK_MODE_PROTECT:
            if 0 == player.GetGuildID():
                chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.OPTION_PVPMODE_CANNOT_SET_GUILD_MODE)
                nextPKMode = 0
            else:
                nextPKMode = player.PK_MODE_GUILD

        elif nextPKMode == player.PK_MODE_MAX_NUM:
            nextPKMode = 0

        net.SendChatPacket("/PKMode " + str(nextPKMode))
        print "/PKMode " + str(nextPKMode)

    def OnChangePKMode(self):

        self.interface.OnChangePKMode()

        try:
            self.__NotifyError(localeInfo.OPTION_PVPMODE_MESSAGE_DICT[player.GetPKMode()])
        except KeyError:
            print "UNKNOWN PVPMode[%d]" % (player.GetPKMode())

        if constInfo.PVPMODE_TEST_ENABLE:
            curPKMode = player.GetPKMode()
            alignment, grade = chr.testGetPKData()
            self.pkModeNameDict = { 0 : "PEACE", 1 : "REVENGE", 2 : "FREE", 3 : "PROTECT", }
            self.testPKMode.SetText("Current PK Mode : " + self.pkModeNameDict.get(curPKMode, "UNKNOWN"))
            self.testAlignment.SetText("Current Alignment : " + str(alignment) + " (" + localeInfo.TITLE_NAME_LIST[grade] + ")")
interfacemodule.py:
Genişlet Daralt Kopyala
    ## PK Mode
    def OnChangePKMode(self):
        self.wndCharacter.RefreshAlignment()
        self.dlgSystem.OnChangePKMode()
 
game.py:
Genişlet Daralt Kopyala
    def ChangePKMode(self):

        if not app.IsPressed(app.DIK_LCONTROL):
            return

        if player.GetStatus(player.LEVEL)<constInfo.PVPMODE_PROTECTED_LEVEL:
            self.__NotifyError(localeInfo.OPTION_PVPMODE_PROTECT % (constInfo.PVPMODE_PROTECTED_LEVEL))
            return

        curTime = app.GetTime()
        if curTime - self.lastPKModeSendedTime < constInfo.PVPMODE_ACCELKEY_DELAY:
            return

        self.lastPKModeSendedTime = curTime

        curPKMode = player.GetPKMode()
        nextPKMode = curPKMode + 1
        if nextPKMode == player.PK_MODE_PROTECT:
            if 0 == player.GetGuildID():
                chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.OPTION_PVPMODE_CANNOT_SET_GUILD_MODE)
                nextPKMode = 0
            else:
                nextPKMode = player.PK_MODE_GUILD

        elif nextPKMode == player.PK_MODE_MAX_NUM:
            nextPKMode = 0

        net.SendChatPacket("/PKMode " + str(nextPKMode))
        print "/PKMode " + str(nextPKMode)

    def OnChangePKMode(self):

        self.interface.OnChangePKMode()

        try:
            self.__NotifyError(localeInfo.OPTION_PVPMODE_MESSAGE_DICT[player.GetPKMode()])
        except KeyError:
            print "UNKNOWN PVPMode[%d]" % (player.GetPKMode())

        if constInfo.PVPMODE_TEST_ENABLE:
            curPKMode = player.GetPKMode()
            alignment, grade = chr.testGetPKData()
            self.pkModeNameDict = { 0 : "PEACE", 1 : "REVENGE", 2 : "FREE", 3 : "PROTECT", }
            self.testPKMode.SetText("Current PK Mode : " + self.pkModeNameDict.get(curPKMode, "UNKNOWN"))
            self.testAlignment.SetText("Current Alignment : " + str(alignment) + " (" + localeInfo.TITLE_NAME_LIST[grade] + ")")
interfacemodule.py:
Genişlet Daralt Kopyala
    ## PK Mode
    def OnChangePKMode(self):
        self.wndCharacter.RefreshAlignment()
        self.dlgSystem.OnChangePKMode()
aynı sorun bende de var nasıl çözüldü
 
Geri
Üst