- Katılım
- 7 Haz 2019
- Konular
- 167
- Mesajlar
- 4,065
- Çözüm
- 59
- Online süresi
- 8mo 5d
- Reaksiyon Skoru
- 1,078
- Altın Konu
- 11
- TM Yaşı
- 7 Yıl 1 Gün
- Başarım Puanı
- 230
- MmoLira
- 217
- DevLira
- 12
ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
Örnek Konudan ilerliyoruz
forum.turkmmo.com
[CODE lang="cpp" title="Syserr"]0924 13:27:17903 :: Traceback (most recent call last):
0924 13:27:17903 :: File "ui.py", line 1370, in CallEvent
0924 13:27:17903 :: File "ui.py", line 87, in __call__
0924 13:27:17903 :: File "ui.py", line 69, in __call__
0924 13:27:17903 :: File "uiCharacter.py", line 316, in __ClickExpandButton
0924 13:27:17904 :: File "uiCharacterDetails.py", line 15, in __init__
0924 13:27:17904 :: File "uiCharacterDetails.py", line 57, in __LoadScript
0924 13:27:17904 :: File "ui.py", line 3104, in GetChild
0924 13:27:17904 :: KeyError
0924 13:27:17904 :: :
0924 13:27:17904 :: 'label0'
0924 13:27:17904 ::[/CODE]
[CODE lang="cpp" title="uiCharacterDetails.py"] ## 라벨 ##
{
"name" : "label0", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*0, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
"horizontal_align" : "center",
"children" : (
{ "name" : "labelvalue0", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
),
},
[/CODE]
Hatanın kaynağı belli olarak thinboard_circle ui.py tarafında eklenmemiş kısaca ekleyelim
[CODE title="ui.py"]elif Type == "box": Aratıyoruz
elif Type == "thinboard_circle":
parent.Children[Index] = ThinBoardCircle()
parent.Children[Index].SetParent(parent)
self.LoadElementThinBoardCircle(parent.Children[Index], ElementValue, parent)
üstüne ekliyoruz
def LoadElementBox(self, window, value, parentWindow): Aratıyoruz
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)
return TRUE
üstüne ekliyoruz
class ScrollBar(Window): Aratıyoruz
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()
Üstüne ekliyoruz [/CODE]
Sistem başarılı bir şekilde eklenmiş oluyor konu daha önce paylaşıldıysa kapatılabilir ben burada çözümlenmeyen hatayı basit bir dile sundum başarılar yeni başlayanlar için bir faydam dokunursa ne mutlu bana
Official Bonus Tablosu
Merhaba Arkadaşlar. Forumda daha öncesinde vardı sonradan linklerin kırık olması sebebi ile kapatılmasına ramen sistemde sorunlar vs. vardı sizler için söküp test ettim gönül rahatlığı ile kullanabilirsiniz. Bir teşekkürü fazla görmeyin.... Not: Yapamayanlar için içerisine görseller...
[CODE lang="cpp" title="Syserr"]0924 13:27:17903 :: Traceback (most recent call last):
0924 13:27:17903 :: File "ui.py", line 1370, in CallEvent
0924 13:27:17903 :: File "ui.py", line 87, in __call__
0924 13:27:17903 :: File "ui.py", line 69, in __call__
0924 13:27:17903 :: File "uiCharacter.py", line 316, in __ClickExpandButton
0924 13:27:17904 :: File "uiCharacterDetails.py", line 15, in __init__
0924 13:27:17904 :: File "uiCharacterDetails.py", line 57, in __LoadScript
0924 13:27:17904 :: File "ui.py", line 3104, in GetChild
0924 13:27:17904 :: KeyError
0924 13:27:17904 :: :
0924 13:27:17904 :: 'label0'
0924 13:27:17904 ::[/CODE]
[CODE lang="cpp" title="uiCharacterDetails.py"] ## 라벨 ##
{
"name" : "label0", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*0, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
"horizontal_align" : "center",
"children" : (
{ "name" : "labelvalue0", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
),
},
[/CODE]
Hatanın kaynağı belli olarak thinboard_circle ui.py tarafında eklenmemiş kısaca ekleyelim
[CODE title="ui.py"]elif Type == "box": Aratıyoruz
elif Type == "thinboard_circle":
parent.Children[Index] = ThinBoardCircle()
parent.Children[Index].SetParent(parent)
self.LoadElementThinBoardCircle(parent.Children[Index], ElementValue, parent)
üstüne ekliyoruz
def LoadElementBox(self, window, value, parentWindow): Aratıyoruz
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)
return TRUE
üstüne ekliyoruz
class ScrollBar(Window): Aratıyoruz
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()
Üstüne ekliyoruz [/CODE]
Sistem başarılı bir şekilde eklenmiş oluyor konu daha önce paylaşıldıysa kapatılabilir ben burada çözümlenmeyen hatayı basit bir dile sundum başarılar yeni başlayanlar için bir faydam dokunursa ne mutlu bana
- Katılım
- 16 Eki 2009
- Konular
- 82
- Mesajlar
- 2,278
- Çözüm
- 1
- Online süresi
- 22d 19h
- Reaksiyon Skoru
- 825
- Altın Konu
- 16
- Başarım Puanı
- 239
- Yaş
- 36
- MmoLira
- 4,606
- DevLira
- 12
Örnek Konudan ilerliyoruz
Official Bonus Tablosu
Merhaba Arkadaşlar. Forumda daha öncesinde vardı sonradan linklerin kırık olması sebebi ile kapatılmasına ramen sistemde sorunlar vs. vardı sizler için söküp test ettim gönül rahatlığı ile kullanabilirsiniz. Bir teşekkürü fazla görmeyin.... Not: Yapamayanlar için içerisine görseller...forum.turkmmo.com
[CODE lang="cpp" title="Syserr"]0924 13:27:17903 :: Traceback (most recent call last):
0924 13:27:17903 :: File "ui.py", line 1370, in CallEvent
0924 13:27:17903 :: File "ui.py", line 87, in __call__
0924 13:27:17903 :: File "ui.py", line 69, in __call__
0924 13:27:17903 :: File "uiCharacter.py", line 316, in __ClickExpandButton
0924 13:27:17904 :: File "uiCharacterDetails.py", line 15, in __init__
0924 13:27:17904 :: File "uiCharacterDetails.py", line 57, in __LoadScript
0924 13:27:17904 :: File "ui.py", line 3104, in GetChild
0924 13:27:17904 :: KeyError
0924 13:27:17904 :: :
0924 13:27:17904 :: 'label0'
0924 13:27:17904 ::[/CODE]
[CODE lang="cpp" title="uiCharacterDetails.py"] ## 라벨 ##
{
"name" : "label0", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*0, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
"horizontal_align" : "center",
"children" : (
{ "name" : "labelvalue0", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
),
},
[/CODE]
Hatanın kaynağı belli olarak thinboard_circle ui.py tarafında eklenmemiş kısaca ekleyelim
[CODE title="ui.py"]elif Type == "box": Aratıyoruz
elif Type == "thinboard_circle":
parent.Children[Index] = ThinBoardCircle()
parent.Children[Index].SetParent(parent)
self.LoadElementThinBoardCircle(parent.Children[Index], ElementValue, parent)
üstüne ekliyoruz
def LoadElementBox(self, window, value, parentWindow): Aratıyoruz
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)
return TRUE
üstüne ekliyoruz
class ScrollBar(Window): Aratıyoruz
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()
Üstüne ekliyoruz [/CODE]
Ekli dosyayı görüntüle 48108
Sistem başarılı bir şekilde eklenmiş oluyor konu daha önce paylaşıldıysa kapatılabilir ben burada çözümlenmeyen hatayı basit bir dile sundum başarılar yeni başlayanlar için bir faydam dokunursa ne mutlu bana
Paylaşım için teşekkürler.
- Katılım
- 28 Mar 2011
- Konular
- 1,226
- Mesajlar
- 3,568
- Çözüm
- 5
- Online süresi
- 1mo 18d
- Reaksiyon Skoru
- 460
- Altın Konu
- 0
- Başarım Puanı
- 267
- Yaş
- 32
- MmoLira
- 6,082
- DevLira
- 15
Kostüm parlatma sistemindede bu hatayı veriyordu hatanın çözümü olarak sadece class kısmı verilmişti fakat sorun yine devam etmekteydi bu o sorun içinde çözüm müdür
- Katılım
- 7 Haz 2019
- Konular
- 167
- Mesajlar
- 4,065
- Çözüm
- 59
- Online süresi
- 8mo 5d
- Reaksiyon Skoru
- 1,078
- Altın Konu
- 11
- TM Yaşı
- 7 Yıl 1 Gün
- Başarım Puanı
- 230
- MmoLira
- 217
- DevLira
- 12
Syserr hatası aynı hatayı veriyorsa çözüm olarak kullanabilirsiniz ben bir örnekten yola çıktım ekledimKostüm parlatma sistemindede bu hatayı veriyordu hatanın çözümü olarak sadece class kısmı verilmişti fakat sorun yine devam etmekteydi bu o sorun içinde çözüm müdür
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 0
- Görüntüleme
- 503
- Cevaplar
- 42
- Görüntüleme
- 4K
- Cevaplar
- 13
- Görüntüleme
- 1K







