Çözüldü Move Channel

  • Konuyu açan Konuyu açan enes turan
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 2
  • Gösterim Gösterim 51
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ı.

enes turan

Yardımsever Üye
Yardımsever Üye
MT Üye
Mesaj
559
Çözümler
35
Beğeni
281
Puan
909
Ticaret Puanı
0
merhabalar filesime konudaki sistemi ekledim.

intrologin.py dosyasında şu kodu eklememi istiyor

C++:
Genişlet Daralt Kopyala
#Find
            channelName = localeInfo.CHANNEL_NORMAL % channelID

#Change
            channelName = localeInfo.CHANNEL_NORMAL % channelID

        if app.BL_MOVE_CHANNEL:
            net.ClearServerInfo()
            channelMax = len(serverInfo.REGION_DICT[regionID][serverID]["channel"])
            for i in xrange(1, channelMax+1):
                _channelName = serverInfo.REGION_DICT[regionID][serverID]["channel"][i]["name"]
                net.SetChannelName(i, _channelName.strip())
                
            net.SetChannelName(99, localeInfo.MOVE_CHANNEL_99)
            
            net.SetChannelName(channelID)
            net.SetServerName(serverName)

fakat ben giriş ekranını değiştirdiğim için bu kod bende mevcut değil ve dosyada bir çok farklı yere eklememe rağmen sonuç alamadım.

düşen syseer
Kod:
Genişlet Daralt Kopyala
0811 15:13:16265 :: Traceback (most recent call last):

0811 15:13:16265 ::   File "ui.py", line 1083, in CallEvent

0811 15:13:16265 ::   File "ui.py", line 82, in __call__

0811 15:13:16266 ::   File "ui.py", line 64, in __call__

0811 15:13:16266 ::   File "uiSystem.py", line 181, in __ClickMoveChannelButton

0811 15:13:16266 ::   File "uiSystem.py", line 259, in Show

0811 15:13:16267 ::   File "uiSystem.py", line 244, in __SelectChannel

0811 15:13:16267 :: IndexError
0811 15:13:16267 :: :
0811 15:13:16267 :: list index out of range
0811 15:13:16267 ::

hata görseli
Adsız.webp
 

Dosya Eklentileri

Çözüm
merhabalar filesime konudaki sistemi ekledim.

intrologin.py dosyasında şu kodu eklememi istiyor

C++:
Genişlet Daralt Kopyala
#Find
            channelName = localeInfo.CHANNEL_NORMAL % channelID

#Change
            channelName = localeInfo.CHANNEL_NORMAL % channelID

        if app.BL_MOVE_CHANNEL:
            net.ClearServerInfo()
            channelMax = len(serverInfo.REGION_DICT[regionID][serverID]["channel"])
            for i in xrange(1, channelMax+1):
                _channelName = serverInfo.REGION_DICT[regionID][serverID]["channel"][i]["name"]
                net.SetChannelName(i, _channelName.strip())
               
            net.SetChannelName(99, localeInfo.MOVE_CHANNEL_99)
           
            net.SetChannelName(channelID)...
merhabalar filesime konudaki sistemi ekledim.

intrologin.py dosyasında şu kodu eklememi istiyor

C++:
Genişlet Daralt Kopyala
#Find
            channelName = localeInfo.CHANNEL_NORMAL % channelID

#Change
            channelName = localeInfo.CHANNEL_NORMAL % channelID

        if app.BL_MOVE_CHANNEL:
            net.ClearServerInfo()
            channelMax = len(serverInfo.REGION_DICT[regionID][serverID]["channel"])
            for i in xrange(1, channelMax+1):
                _channelName = serverInfo.REGION_DICT[regionID][serverID]["channel"][i]["name"]
                net.SetChannelName(i, _channelName.strip())
               
            net.SetChannelName(99, localeInfo.MOVE_CHANNEL_99)
           
            net.SetChannelName(channelID)
            net.SetServerName(serverName)

fakat ben giriş ekranını değiştirdiğim için bu kod bende mevcut değil ve dosyada bir çok farklı yere eklememe rağmen sonuç alamadım.

düşen syseer
Kod:
Genişlet Daralt Kopyala
0811 15:13:16265 :: Traceback (most recent call last):

0811 15:13:16265 ::   File "ui.py", line 1083, in CallEvent

0811 15:13:16265 ::   File "ui.py", line 82, in __call__

0811 15:13:16266 ::   File "ui.py", line 64, in __call__

0811 15:13:16266 ::   File "uiSystem.py", line 181, in __ClickMoveChannelButton

0811 15:13:16266 ::   File "uiSystem.py", line 259, in Show

0811 15:13:16267 ::   File "uiSystem.py", line 244, in __SelectChannel

0811 15:13:16267 :: IndexError
0811 15:13:16267 :: :
0811 15:13:16267 :: list index out of range
0811 15:13:16267 ::

hata görseli
18301 eklentisini görüntüle
Linkleri görebilmek için giriş yap veya kayıt ol.


aşağıdaki yorumlara in orada çözümü olacak mobil olduğum için atamadım.
 
Çözüm
Linkleri görebilmek için giriş yap veya kayıt ol.


aşağıdaki yorumlara in orada çözümü olacak mobil olduğum için atamadım.
evet sorun çözüldü teşekkür ederim.
aynı sorunu yaşayan olursa

uisystem.py:
Genişlet Daralt Kopyala
##arat değiştir

if app.BL_MOVE_CHANNEL:
    class MoveChannelDialog(ui.ScriptWindow):
        def __init__(self):
            ui.ScriptWindow.__init__(self)
            self.__LoadDialog()
            
            self.IsShow = False
            
        def __del__(self):
            ui.ScriptWindow.__del__(self)
            
        def __LoadDialog(self) :   
            try:
                pyScrLoader = ui.PythonScriptLoader()
                pyScrLoader.LoadScriptFile(self, "UIScript/MoveChannelDialog.py")
            except:
                import exception
                exception.Abort("MoveChannelDialog.__LoadDialog")
            

            self.ParentBoard = self.GetChild("MoveChannelBoard")
            self.ChildBoard = self.GetChild("BlackBoard")
            self.GetChild("MoveChannelTitle").SetCloseEvent(ui.__mem_func__(self.Close))
            
            self.ChannelList = []
            cnt = 5
            cnt = cnt - 1 # 99서버 제외
            
            self.DlgWidht = 190
            self.BlackBoardHeight = 23*cnt + 5*(cnt-1) + 13
            self.DlgHeight = self.BlackBoardHeight + 75
            
            self.AcceptBtn = ui.MakeButton(self.ParentBoard, 13, self.DlgHeight - 33, "", "d:/ymir work/ui/public/", "middle_button_01.sub", "middle_button_02.sub", "middle_button_03.sub")
            self.AcceptBtn.SetText( localeInfo.MOVE_CHANNEL_SELECT )
            self.AcceptBtn.SetEvent(ui.__mem_func__(self.AcceptButton))
            self.CloseBtn = ui.MakeButton(self.ParentBoard, self.DlgWidht - 73, self.DlgHeight - 33, "", "d:/ymir work/ui/public/", "middle_button_01.sub", "middle_button_02.sub", "middle_button_03.sub")
            self.CloseBtn.SetText( localeInfo.MOVE_CHANNEL_CANCEL )
            self.CloseBtn.SetEvent(ui.__mem_func__(self.Close))

            for i in xrange(cnt):
                btn = ui.MakeButton(self.ChildBoard, 8, 6 + i*28, "", "d:/ymir work/ui/game/myshop_deco/", "select_btn_01.sub", "select_btn_02.sub", "select_btn_03.sub")
                btn.SetText("Kanal {0}".format(int(i+1)))
                btn.SetEvent(ui.__mem_func__(self.__SelectChannel), i+1)
                self.ChannelList.append(btn)
            
            self.ParentBoard.SetSize(self.DlgWidht, self.DlgHeight)
            self.ChildBoard.SetSize(self.DlgWidht - 26, self.BlackBoardHeight)
            self.SetSize(self.DlgWidht, self.DlgHeight)
            
            self.UpdateRect()
            
        def __SelectChannel(self, idx):
            self.ChangeChannelNumber = idx
            
            for btn in self.ChannelList:
                btn.SetUp()
                btn.Enable()
                
            self.ChannelList[idx-1].Down()
            self.ChannelList[idx-1].Disable()
            
        def AcceptButton(self):
            if self.ChangeChannelNumber == self.StartChannelNumber:
                return
            
            net.MoveChannelGame(self.ChangeChannelNumber)
            self.StartChannelNumber = self.ChangeChannelNumber
            self.Close()
                        
        def Show(self) :
            ui.ScriptWindow.Show(self)
            
            self.StartChannelNumber = net.GetChannelNumber()
            self.__SelectChannel(self.StartChannelNumber)
            
            self.IsShow = True
        
        def Close(self):
            self.Hide()
            
            self.IsShow = False
            
        def OnPressEscapeKey(self):
            self.Close()
            return True
            
        def IsShowWindow(self):
            return self.IsShow

interfaceModule.py:
Genişlet Daralt Kopyala
##arat değiştir

    if app.BL_MOVE_CHANNEL:
        def RefreshServerInfo(self, channelNumber):
            if self.wndMiniMap:
                self.wndMiniMap.RefreshServerInfo(channelNumber)

game.py:
Genişlet Daralt Kopyala
## arat değiştir

    if app.BL_MOVE_CHANNEL:
        def __SeverInfo(self, channelNumber, mapIndex):

            _chNum    = int(channelNumber.strip())
            _mapIdx    = int(mapIndex.strip())

            if _chNum == 99:
                chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.MOVE_CHANNEL_NOTICE_GAME_99)
            elif _mapIdx >= 10000:
                chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.MOVE_CHANNEL_NOTICE_DUNGEON)
            else:
                chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.MOVE_CHANNEL_NOTICE % _chNum)

            net.SetChannelName(_chNum)
            net.SetMapIndex(_mapIdx)
            self.interface.RefreshServerInfo(channelNumber)

uiminimap.py:
Genişlet Daralt Kopyala
##arat değiştir

    if app.BL_MOVE_CHANNEL:
        def RefreshServerInfo(self, channelNumber):
            if channelNumber == 99:
                serverInfoStr = serverInfo.SERVER_1 + ' - Ortak Kanal'
            else:
                serverInfoStr = serverInfo.SERVER_1 + ' - ' + 'Kanal ' + str(channelNumber)
                self.serverInfo.SetText(serverInfoStr)
                net.SetServerInfo(serverInfoStr)
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Üst