Çözüldü Etkinlik Gui

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ı.

CalvinGiorgio

Üye
Üye
Mesaj
872
Çözümler
21
Beğeni
121
Puan
559
Ticaret Puanı
0
Kod:
Genişlet Daralt Kopyala
0526 23:09:12994 :: Traceback (most recent call last):

0526 23:09:12994 ::   File "networkModule.py", line 237, in SetGamePhase

0526 23:09:12994 ::   File "system.py", line 178, in __hybrid_import

0526 23:09:12994 ::   File "
0526 23:09:12994 :: game.py
0526 23:09:12994 :: ", line
0526 23:09:12994 :: 1701
0526 23:09:12994 ::

0526 23:09:12994 ::   
0526 23:09:12994 :: def BINARY_EVENT_AYISIGI_ICON(self):

0526 23:09:12994 ::   
0526 23:09:12994 ::
0526 23:09:12994 ::
0526 23:09:12994 :: ^

0526 23:09:12994 :: IndentationError
0526 23:09:12994 :: :
0526 23:09:12994 :: expected an indented block
0526 23:09:12994 ::

game.py:
Linkleri görebilmek için giriş yap veya kayıt ol.


anlatım :
Linkleri görebilmek için giriş yap veya kayıt ol.

Python:
Genişlet Daralt Kopyala
constInfo.py açılır;

eventbasla = 0
etkinlikboard = 0

etkinlikboard_top = 0
etkinlikboard_bulmaca = 0
etkinlikboard_altigen = 0
etkinlikboard_simit = 0
etkinlikboard_harf = 0


interfacemodule .py açılır

importlara ekle

import uiEventayisigi
import uiEventtop
import uiEventAltigen
import uiEventSimit
import uiEventBulmaca


def __MakeItemSelectWindow(self): arat

ekle
    def __MakeEventAyIconWindow(self):
        import uiEventayisigi
        self.wndEventAyIcon = uiEventayisigi.EtkinlikAyisigi()
        self.wndEventAyIcon.LoadWindow()
        self.wndEventAyIcon.Hide()
        
    def __MakeTopEventIconWindow(self):
        import uiEventtop
        self.wndTopEventIcon = uiEventtop.EtkinlikFutboltopu()
        self.wndTopEventIcon.LoadWindow()
        self.wndTopEventIcon.Hide()
        
    def __MakeAltigenEventIconWindow(self):
        import uiEventAltigen
        self.wndAltigenEventIcon = uiEventAltigen.EtkinlikAltigen()
        self.wndAltigenEventIcon.LoadWindow()
        self.wndAltigenEventIcon.Hide()
        
    def __MakeBulmacaEventIconWindow(self):
        import uiEventbulmaca
        self.wndBulmacaEventIcon = uiEventbulmaca.EtkinlikBulmaca()
        self.wndBulmacaEventIcon.LoadWindow()
        self.wndBulmacaEventIcon.Hide()
        
    def __MakeSimitEventIconWindow(self):
        import uiEventSimit
        self.wndSimitEventIcon = uiEventSimit.EtkinlikSimit()
        self.wndSimitEventIcon.LoadWindow()
        self.wndSimitEventIcon.Hide()
        
        
        
        // ARAT
        
        if self.wndHelp:
            self.wndHelp.Destroy()
            
            
        // EKLE   
    
        if self.wndEventAyIcon:
            self.wndEventAyIcon.Destroy()
            
        if self.wndTopEventIcon:
            self.wndTopEventIcon.Destroy()
            
        if self.wndAltigenEventIcon:
            self.wndAltigenEventIcon.Destroy()
            
        if self.wndBulmacaEventIcon:
            self.wndBulmacaEventIcon.Destroy()
            
        if self.wndSimitEventIcon:
            self.wndSimitEventIcon.Destroy()
            
            
        // ARAT
            
        del self.wndHelp
        
        
        // EKLE
        
        del self.wndEventAyIcon
        del self.wndTopEventIcon
        del self.wndAltigenEventIcon
        del self.wndBulmacaEventIcon
        del self.wndSimitEventIcon
        
        
        
        // ARAT
        
        def OpenWebWindow(self, url):
            self.wndWeb.Open(url)
        
        
    def EventAyIconShow(self):
        self.wndEventAyIcon.Show()
        
    def TopEventIconShow(self):
        self.wndTopEventIcon.Show()
        
    def AltigenEventIconShow(self):
        self.wndAltigenEventIcon.Show()
        
    def BulmacaEventIconShow(self):
        self.wndBulmacaEventIcon.Show()
        
    def SimitEventIconShow(self):
        self.wndSimitEventIcon.Show()
        
    
    // ARAT
    self.__MakeCubeResultWindow()
    
    //EKLE
    
    self.__MakeEventAyIconWindow()
    self.__MakeTopEventIconWindow()
    self.__MakeAltigenEventIconWindow()
    self.__MakeBulmacaEventIconWindow()
    self.__MakeSimitEventIconWindow()



        
        
    game.py açılır
    
    // ARAT
    
    def BINARY_Cube_MaterialInfo(self, startIndex, listCount, listText):
    
    // EKLE
    
    def BINARY_EVENT_AYISIGI_ICON(self):
        self.interface.EventAyIconShow()
        
    def BINARY_TOP_EVENT_ICON(self):
        self.interface.TopEventIconShow()
        
    def BINARY_ALTIGEN_EVENT_ICON(self):
        self.interface.AltigenEventIconShow()
        
    def BINARY_BULMACA_EVENT_ICON(self):
        self.interface.BulmacaEventIconShow()
        
    def BINARY_SIMIT_EVENT_ICON(self):
        self.interface.SimitEventIconShow()

    
    // ALTTAKİ KODLAR VAR İSE YAPMANIZA GEREK YOK //
    
    ui.py aç
    
    //ARAT
    elif Type == "listbox":
    
    //EKLE
    elif Type == "thinboard_gold":
                parent.Children[Index] = ThinBoardGold()
                parent.Children[Index].SetParent(parent)
                self.LoadElementThinBoardGold(parent.Children[Index], ElementValue, parent)
            elif Type == "thinboard_circle":
                parent.Children[Index] = ThinBoardCircle()
                parent.Children[Index].SetParent(parent)
                self.LoadElementThinBoardCircle(parent.Children[Index], ElementValue, parent)
                
    // ARAT
    def LoadElementListBox(self, window, value, parentWindow):
    
    // EKLE
    
    def LoadElementThinBoardGold(self, window, value, parentWindow):
        if FALSE == self.CheckKeyList(value["name"], value, self.BOARD_KEY_LIST):
            return FALSE
      
        window.SetSize(int(value["width"]), int(value["height"]))
        self.LoadDefaultData(window, value, parentWindow)
        return TRUE

    def LoadElementThinBoardCircle(self, window, value, parentWindow):
        if FALSE == self.CheckKeyList(value["name"], value, self.BOARD_KEY_LIST):
            return FALSE
      
        window.SetSize(int(value["width"]), int(value["height"]))
        self.LoadDefaultData(window, value, parentWindow)
        
    // ARAT
    class ListBox(Window):
    
    // EKLE
    
class ThinBoardGold(Window):
    CORNER_WIDTH = 16
    CORNER_HEIGHT = 16
    LINE_WIDTH = 16
    LINE_HEIGHT = 16
    BOARD_COLOR = grp.GenerateColor(0.0, 0.0, 0.0, 0.51)

    LT = 0
    LB = 1
    RT = 2
    RB = 3
    L = 0
    R = 1
    T = 2
    B = 3

    def __init__(self, layer = "UI"):
        Window.__init__(self, layer)
        CornerFileNames = [ "d:/ymir work/ui/pattern/thinboardgold/ThinBoard_Corner_"+dir+".tga" for dir in ["LeftTop_gold", "LeftBottom_gold","RightTop_gold", "RightBottom_gold"]]
        LineFileNames = [ "d:/ymir work/ui/pattern/thinboardgold/ThinBoard_Line_"+dir+".tga" for dir in ["Left_gold", "Right_gold", "Top_gold", "Bottom_gold"]]
      
        self.Corners = []
        for fileName in CornerFileNames:
            Corner = ExpandedImageBox()
            Corner.AddFlag("attach")
            Corner.AddFlag("not_pick")
            Corner.LoadImage(fileName)
            Corner.SetParent(self)
            Corner.SetPosition(0, 0)
            Corner.Show()
            self.Corners.append(Corner)

        self.Lines = []
        for fileName in LineFileNames:
            Line = ExpandedImageBox()
            Line.AddFlag("attach")
            Line.AddFlag("not_pick")
            Line.LoadImage(fileName)
            Line.SetParent(self)
            Line.SetPosition(0, 0)
            Line.Show()
            self.Lines.append(Line)

        Base = ExpandedImageBox()
        Base.SetParent(self)
        Base.AddFlag("attach")
        Base.AddFlag("not_pick")
        Base.LoadImage("d:/ymir work/ui/pattern/thinboardgold/thinboard_bg_gold.tga")
        Base.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT)
        Base.Show()
        self.Base = Base

        self.Lines[self.L].SetPosition(0, self.CORNER_HEIGHT)
        self.Lines[self.T].SetPosition(self.CORNER_WIDTH, 0)

    def __del__(self):
        Window.__del__(self)

    def SetSize(self, width, height):

        width = max(self.CORNER_WIDTH*2, width)
        height = max(self.CORNER_HEIGHT*2, height)
        Window.SetSize(self, width, height)

        self.Corners[self.LB].SetPosition(0, height - self.CORNER_HEIGHT)
        self.Corners[self.RT].SetPosition(width - self.CORNER_WIDTH, 0)
        self.Corners[self.RB].SetPosition(width - self.CORNER_WIDTH, height - self.CORNER_HEIGHT)
        self.Lines[self.R].SetPosition(width - self.CORNER_WIDTH, self.CORNER_HEIGHT)
        self.Lines[self.B].SetPosition(self.CORNER_HEIGHT, height - self.CORNER_HEIGHT)

        verticalShowingPercentage = float((height - self.CORNER_HEIGHT*2) - self.LINE_HEIGHT) / self.LINE_HEIGHT
        horizontalShowingPercentage = float((width - self.CORNER_WIDTH*2) - self.LINE_WIDTH) / self.LINE_WIDTH
        self.Lines[self.L].SetRenderingRect(0, 0, 0, verticalShowingPercentage)
        self.Lines[self.R].SetRenderingRect(0, 0, 0, verticalShowingPercentage)
        self.Lines[self.T].SetRenderingRect(0, 0, horizontalShowingPercentage, 0)
        self.Lines[self.B].SetRenderingRect(0, 0, horizontalShowingPercentage, 0)
        if self.Base:
            self.Base.SetRenderingRect(0, 0, horizontalShowingPercentage, verticalShowingPercentage)

    def ShowInternal(self):
        self.Base.Show()
        for wnd in self.Lines:
            wnd.Show()
        for wnd in self.Corners:
            wnd.Show()

    def HideInternal(self):
        self.Base.Hide()
        for wnd in self.Lines:
            wnd.Hide()
        for wnd in self.Corners:
            wnd.Hide()

class ThinBoardCircle(Window):
    CORNER_WIDTH = 4
    CORNER_HEIGHT = 4
    LINE_WIDTH = 4
    LINE_HEIGHT = 4
    BOARD_COLOR = grp.GenerateColor(255.0, 255.0, 255.0, 1.0)

    LT = 0
    LB = 1
    RT = 2
    RB = 3
    L = 0
    R = 1
    T = 2
    B = 3

    def __init__(self, layer = "UI"):
        Window.__init__(self, layer)

        CornerFileNames = [ "d:/ymir work/ui/pattern/thinboardcircle/ThinBoard_Corner_"+dir+".tga" for dir in ["LeftTop_circle","LeftBottom_circle","RightTop_circle","RightBottom_circle"] ]
        LineFileNames = [ "d:/ymir work/ui/pattern/thinboardcircle/ThinBoard_Line_"+dir+".tga" for dir in ["Left_circle","Right_circle","Top_circle","Bottom_circle"] ]

        self.Corners = []
        for fileName in CornerFileNames:
            Corner = ExpandedImageBox()
            Corner.AddFlag("attach")
            Corner.AddFlag("not_pick")
            Corner.LoadImage(fileName)
            Corner.SetParent(self)
            Corner.SetPosition(0, 0)
            Corner.Show()
            self.Corners.append(Corner)

        self.Lines = []
        for fileName in LineFileNames:
            Line = ExpandedImageBox()
            Line.AddFlag("attach")
            Line.AddFlag("not_pick")
            Line.LoadImage(fileName)
            Line.SetParent(self)
            Line.SetPosition(0, 0)
            Line.Show()
            self.Lines.append(Line)

        Base = Bar()
        Base.SetParent(self)
        Base.AddFlag("attach")
        Base.AddFlag("not_pick")
        Base.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT)
        Base.SetColor(self.BOARD_COLOR)
        Base.Show()
        self.Base = Base

        self.Lines[self.L].SetPosition(0, self.CORNER_HEIGHT)
        self.Lines[self.T].SetPosition(self.CORNER_WIDTH, 0)

    def __del__(self):
        Window.__del__(self)

    def SetSize(self, width, height):

        width = max(self.CORNER_WIDTH*2, width)
        height = max(self.CORNER_HEIGHT*2, height)
        Window.SetSize(self, width, height)

        self.Corners[self.LB].SetPosition(0, height - self.CORNER_HEIGHT)
        self.Corners[self.RT].SetPosition(width - self.CORNER_WIDTH, 0)
        self.Corners[self.RB].SetPosition(width - self.CORNER_WIDTH, height - self.CORNER_HEIGHT)
        self.Lines[self.R].SetPosition(width - self.CORNER_WIDTH, self.CORNER_HEIGHT)
        self.Lines[self.B].SetPosition(self.CORNER_HEIGHT, height - self.CORNER_HEIGHT)

        verticalShowingPercentage = float((height - self.CORNER_HEIGHT*2) - self.LINE_HEIGHT) / self.LINE_HEIGHT
        horizontalShowingPercentage = float((width - self.CORNER_WIDTH*2) - self.LINE_WIDTH) / self.LINE_WIDTH
        self.Lines[self.L].SetRenderingRect(0, 0, 0, verticalShowingPercentage)
        self.Lines[self.R].SetRenderingRect(0, 0, 0, verticalShowingPercentage)
        self.Lines[self.T].SetRenderingRect(0, 0, horizontalShowingPercentage, 0)
        self.Lines[self.B].SetRenderingRect(0, 0, horizontalShowingPercentage, 0)
        self.Base.SetSize(width - self.CORNER_WIDTH*2, height - self.CORNER_HEIGHT*2)

    def ShowInternal(self):
        self.Base.Show()
        for wnd in self.Lines:
            wnd.Show()
        for wnd in self.Corners:
            wnd.Show()

    def HideInternal(self):
        self.Base.Hide()
        for wnd in self.Lines:
            wnd.Hide()
        for wnd in self.Corners:
            wnd.Hide()
        
        
    
    
    Client, UserInterface/PythonNetworkStreamCommand.cpp Açılır
    
    // ARAT
    
    else if (!strcmpi(szCmd, "ObserverTeamInfo"))
    
    
    // EKLE
    
    else if ("iconayisigi" == TokenVector[1])
    {
        if (2 != TokenVector.size())
        {
            TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
            return;
        }
        PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_EVENT_AYISIGI_ICON", Py_BuildValue("()"));
    }
    else if ("topeventi" == TokenVector[1])
    {
        if (2 != TokenVector.size())
        {
            TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
            return;
        }
        PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_TOP_EVENT_ICON", Py_BuildValue("()"));
    }
    else if ("altigeneventi" == TokenVector[1])
    {
        if (2 != TokenVector.size())
        {
            TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
            return;
        }
        PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_ALTIGEN_EVENT_ICON", Py_BuildValue("()"));
    }
    else if ("bulmacaeventi" == TokenVector[1])
    {
        if (2 != TokenVector.size())
        {
            TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
            return;
        }
        PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_BULMACA_EVENT_ICON", Py_BuildValue("()"));
    }
    else if ("simiteventi" == TokenVector[1])
    {
        if (2 != TokenVector.size())
        {
            TraceError("CPythonNetworkStream::ServerCommand(c_szCommand=%s) - Strange Parameter Count : %s", c_szCommand);
            return;
        }
        PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME], "BINARY_SIMIT_EVENT_ICON", Py_BuildValue("()"));
    }
@melihalbayrak
lütfen yardımcı olun sabahtan beri bunu eklemeye çalışıyorum src kısmına daha geçmedim
 
Son düzenleme:
Dener misin

Linkleri görebilmek için giriş yap veya kayıt ol.
clienti sorunsuz build ettim sonuç aşağıdaki gibi.
ui.py'de hata mı var bilemedim

ui.py:
Linkleri görebilmek için giriş yap veya kayıt ol.


Kod:
Genişlet Daralt Kopyala
0526 23:41:11990 :: UISCRIPT_LOAD_ERROR: 'NoneType' object has no attribute 'IN_GAME_SHOP_ENABLE' [filename UIScript/ayisigiwindow.py]
0526 23:41:11991 ::
uiEventayisigi.py(line:67) LoadWindow
ui.py(line:3884) LoadScriptFile

ayisigiwindow.LoadDialog.LoadScript - <type 'exceptions.KeyError'>:'window'

0526 23:41:11991 :: ============================================================================================================
0526 23:41:11991 :: Abort!!!!
 
Son düzenleme:
def'in önündeki boşluğun TAB olduğundan emin misin?
 
def'in önündeki boşluğun TAB olduğundan emin misin?
KONU LİNK
game.py
Linkleri görebilmek için giriş yap veya kayıt ol.

uiinventory.py
Linkleri görebilmek için giriş yap veya kayıt ol.

constinfo.py
Linkleri görebilmek için giriş yap veya kayıt ol.


game.py(anlatım)
Linkleri görebilmek için giriş yap veya kayıt ol.

uiinventory.py(anlatım)
Linkleri görebilmek için giriş yap veya kayıt ol.

constinfo.py(anlatım)

sistemi iptal ettim benzeri olan başka sistem ekliyorum.
onunda hatası bu şekilde oldu
Kod:
Genişlet Daralt Kopyala
0527 01:26:03626 ::
networkModule.py(line:200) SetSelectCharacterPhase
system.py(line:178) __hybrid_import
system.py(line:143) _process_result
introSelect.py(line:11) <module>
system.py(line:178) __hybrid_import
system.py(line:143) _process_result
uiTarget.py(line:14) <module>
system.py(line:178) __hybrid_import
system.py(line:143) _process_result
uiToolTip.py(line:25) <module>
system.py(line:178) __hybrid_import
system.py(line:143) _process_result
uiDragonSoul.py(line:19) <module>
system.py(line:178) __hybrid_import

networkModule.SetSelectCharacterPhase - <type 'exceptions.SyntaxError'>:invalid syntax (uiInventory.py, line 605)

0527 01:26:03626 :: ============================================================================================================
0527 01:26:03626 :: Abort!!!!
 
Son düzenleme:
Python:
Genişlet Daralt Kopyala
            elif player.SLOT_TYPE_SKILL_BOOK_INVENTORY == attachedSlotType:
                chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.AKIRA_TEXT_2)
            elif player.SLOT_TYPE_UPGRADE_ITEMS_INVENTORY == attachedSlotType:
                chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.AKIRA_TEXT_3)
            elif player.SLOT_TYPE_STONE_INVENTORY == attachedSlotType:
                chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.AKIRA_TEXT_0)

Bunları 1 tab ileri alman gerekiyor
 
Python:
Genişlet Daralt Kopyala
            elif player.SLOT_TYPE_SKILL_BOOK_INVENTORY == attachedSlotType:
                chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.AKIRA_TEXT_2)
            elif player.SLOT_TYPE_UPGRADE_ITEMS_INVENTORY == attachedSlotType:
                chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.AKIRA_TEXT_3)
            elif player.SLOT_TYPE_STONE_INVENTORY == attachedSlotType:
                chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.AKIRA_TEXT_0)

Bunları 1 tab ileri alman gerekiyor
dc üzerinden yazıyorum cevap verirsen sevinirim.
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Üst