DracaryS Renewal Game Option System

  • Konuyu açan Konuyu açan elchikapu
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 52
  • Gösterim Gösterim 10K

elchikapu

MT Üye
MT Üye
Mesaj
1.022
Çözümler
21
Beğeni
1.811
Puan
1.239
Ticaret Puanı
0




@tc1322 @benimsinsen41 Değerli yorumlarınız ve hata çözümlemeleriniz için çok teşekkür ederim yorumlarınızı sabitledim :)
​

220. satırda True kaldırın
Kod:
Genişlet Daralt Kopyala
child.SetPosition(_x,_y)

böyle olacak
​
ui içinde gördüğüm bazı eksiklikler belki başkalarının işine yarar
ui.py:
Genişlet Daralt Kopyala
1-SetPosition
bu şekilde değiştirilir.

    def SetPosition(self, x, y, flag = False):
        if flag == True:
            self.exPos = (x,y)
        wndMgr.SetWindowPosition(self.hWnd, x, y)

2-eksik kod calculaterect eklenir.Herhangi boş bir yere

def calculateRect(curValue, maxValue):
    try:
        return -1.0 + float(curValue) / float(maxValue)
    except:
        return 0.0
11296 eklentisini görüntüle
 

Dosya Eklentileri

Son düzenleme:
1115 16:03:16923 :: File "ui.py", line 1868, in CallEvent

1115 16:03:16923 :: File "ui.py", line 90, in __call__

1115 16:03:16923 :: File "ui.py", line 72, in __call__

1115 16:03:16923 :: File "uiSystem.py", line 132, in __ClickGameOptionButton

1115 16:03:16923 :: File "uiGameOptionNew.py", line 47, in __init__

1115 16:03:16923 :: File "uiGameOptionNew.py", line 127, in __LoadWindow

1115 16:03:16924 :: File "uiGameOptionNew.py", line 220, in CreateOptionWindow

1115 16:03:16924 :: TypeError
1115 16:03:16924 :: :
1115 16:03:16924 :: SetPosition() takes exactly 3 arguments (4 given)
1115 16:03:16924 ::

hatası alıyorum anlatımı bire bir yaptım bilginiz var mı?
 
1115 16:03:16923 :: File "ui.py", line 1868, in CallEvent

1115 16:03:16923 :: File "ui.py", line 90, in __call__

1115 16:03:16923 :: File "ui.py", line 72, in __call__

1115 16:03:16923 :: File "uiSystem.py", line 132, in __ClickGameOptionButton

1115 16:03:16923 :: File "uiGameOptionNew.py", line 47, in __init__

1115 16:03:16923 :: File "uiGameOptionNew.py", line 127, in __LoadWindow

1115 16:03:16924 :: File "uiGameOptionNew.py", line 220, in CreateOptionWindow

1115 16:03:16924 :: TypeError
1115 16:03:16924 :: :
1115 16:03:16924 :: SetPosition() takes exactly 3 arguments (4 given)
1115 16:03:16924 ::

hatası alıyorum anlatımı bire bir yaptım bilginiz var mı?
220. satırda True kaldırın
Kod:
Genişlet Daralt Kopyala
child.SetPosition(_x,_y)

böyle olacak
 
220. satırda True kaldırın
Kod:
Genişlet Daralt Kopyala
child.SetPosition(_x,_y)

böyle olacak
1115 17:07:09322 :: File "uiGameOptionNew.py", line 47, in __init__

1115 17:07:09322 :: File "uiGameOptionNew.py", line 127, in __LoadWindow

1115 17:07:09322 :: File "uiGameOptionNew.py", line 219, in CreateOptionWindow

1115 17:07:09322 :: AttributeError
1115 17:07:09322 :: :
1115 17:07:09322 :: 'int' object has no attribute 'GetLocalPosition'
1115 17:07:09322 ::

diyor bu sefer de
 
Kod:
Genişlet Daralt Kopyala
1128 18:48:18890 ::   File "uiGameOptionNew.py", line 52, in __init__

1128 18:48:18890 ::   File "uiGameOptionNew.py", line 135, in __LoadWindow

1128 18:48:18890 ::   File "uiGameOptionNew.py", line 174, in SetOptionType

1128 18:48:18890 ::   File "uiGameOptionNew.py", line 195, in SetCategoryType

1128 18:48:18890 ::   File "uiGameOptionNew.py", line 400, in UpdateScrollBar

1128 18:48:18890 :: AttributeError
1128 18:48:18890 :: : 
1128 18:48:18890 :: 'ScriptWindow' object has no attribute 'exPos'
1128 18:48:18890 ::
 
Kod:
Genişlet Daralt Kopyala
1128 18:48:18890 ::   File "uiGameOptionNew.py", line 52, in __init__

1128 18:48:18890 ::   File "uiGameOptionNew.py", line 135, in __LoadWindow

1128 18:48:18890 ::   File "uiGameOptionNew.py", line 174, in SetOptionType

1128 18:48:18890 ::   File "uiGameOptionNew.py", line 195, in SetCategoryType

1128 18:48:18890 ::   File "uiGameOptionNew.py", line 400, in UpdateScrollBar

1128 18:48:18890 :: AttributeError
1128 18:48:18890 :: :
1128 18:48:18890 :: 'ScriptWindow' object has no attribute 'exPos'
1128 18:48:18890 ::
exPos = None olmazsa 0 dene
 
ui içinde gördüğüm bazı eksiklikler belki başkalarının işine yarar
ui.py:
Genişlet Daralt Kopyala
1-SetPosition
bu şekilde değiştirilir.

    def SetPosition(self, x, y, flag = False):
        if flag == True:
            self.exPos = (x,y)
        wndMgr.SetWindowPosition(self.hWnd, x, y)

2-eksik kod calculaterect eklenir.Herhangi boş bir yere

def calculateRect(curValue, maxValue):
    try:
        return -1.0 + float(curValue) / float(maxValue)
    except:
        return 0.0
 
ef computeRect(curValue, maxValue): try: return -1.0 + float(curValue) / float(maxValue) außer: return 0.0
Kod:
Genişlet Daralt Kopyala
1128 18:48:18890 :: Datei „uiGameOptionNew.py“, Zeile 52, in __init__

1128 18:48:18890 :: Datei „uiGameOptionNew.py“, Zeile 135, in __LoadWindow

1128 18:48:18890 :: Datei „uiGameOptionNew.py“, Zeile 174, in SetOptionType

1128 18:48:18890 :: Datei „uiGameOptionNew.py“, Zeile 195, in SetCategoryType

1128 18:48:18890 :: Datei „uiGameOptionNew.py“, Zeile 400, in UpdateScrollBar

1128 18:48:18890 :: Attributfehler
1128 18:48:18890 :: :
1128 18:48:18890 :: Objekt „ScriptWindow“ hat kein Attribut „exPos“
1128 18:48:18890 ::
kimsenin bir çözümü var mı?
 
kimsenin bir çözümü var mı?
Adsız32323232.webp
 
Kod:
Genişlet Daralt Kopyala
1209 18:57:14345 :: [GameOption]LoadCatetoryOptions optionIndex: 0 categoryIndex: 0
1209 18:57:14346 :: Traceback (most recent call last):

1209 18:57:14346 ::   File "ui.py", line 1396, in CallEvent

1209 18:57:14346 ::   File "ui.py", line 88, in __call__

1209 18:57:14346 ::   File "ui.py", line 70, in __call__

1209 18:57:14346 ::   File "uiSystem.py", line 150, in __ClickGameOptionButton

1209 18:57:14346 ::   File "uiGameOptionNew.py", line 47, in __init__

1209 18:57:14346 ::   File "uiGameOptionNew.py", line 130, in __LoadWindow

1209 18:57:14346 ::   File "uiGameOptionNew.py", line 169, in SetOptionType

1209 18:57:14346 ::   File "uiGameOptionNew.py", line 190, in SetCategoryType

1209 18:57:14346 ::   File "uiGameOptionNew.py", line 450, in UpdateScrollBar

1209 18:57:14346 :: AttributeError
1209 18:57:14346 :: :
1209 18:57:14346 :: 'module' object has no attribute 'calculateRect'
1209 18:57:14346 ::

böyle bir hata ile karşılaştım yardım edermisiniz
 
Kod:
Genişlet Daralt Kopyala
1209 18:57:14345 :: [GameOption]LoadCatetoryOptions optionIndex: 0 categoryIndex: 0
1209 18:57:14346 :: Traceback (most recent call last):

1209 18:57:14346 ::   File "ui.py", line 1396, in CallEvent

1209 18:57:14346 ::   File "ui.py", line 88, in __call__

1209 18:57:14346 ::   File "ui.py", line 70, in __call__

1209 18:57:14346 ::   File "uiSystem.py", line 150, in __ClickGameOptionButton

1209 18:57:14346 ::   File "uiGameOptionNew.py", line 47, in __init__

1209 18:57:14346 ::   File "uiGameOptionNew.py", line 130, in __LoadWindow

1209 18:57:14346 ::   File "uiGameOptionNew.py", line 169, in SetOptionType

1209 18:57:14346 ::   File "uiGameOptionNew.py", line 190, in SetCategoryType

1209 18:57:14346 ::   File "uiGameOptionNew.py", line 450, in UpdateScrollBar

1209 18:57:14346 :: AttributeError
1209 18:57:14346 :: :
1209 18:57:14346 :: 'module' object has no attribute 'calculateRect'
1209 18:57:14346 ::

böyle bir hata ile karşılaştım yardım edermisiniz
ui.py aç en alta ekle
Python:
Genişlet Daralt Kopyala
def calculateRect(curValue, maxValue):
    try:
        return -1.0 + float(curValue) / float(maxValue)
    except:
        return 0.0
 
1115 17:07:09322 :: File "uiGameOptionNew.py", line 47, in __init__

1115 17:07:09322 :: File "uiGameOptionNew.py", line 127, in __LoadWindow

1115 17:07:09322 :: File "uiGameOptionNew.py", line 219, in CreateOptionWindow

1115 17:07:09322 :: AttributeError
1115 17:07:09322 :: :
1115 17:07:09322 :: 'int' object has no attribute 'GetLocalPosition'
1115 17:07:09322 ::

diyor bu sefer de
Bu Hattayı Bende Alıyorum Acaba Çözebildinizmi ?
 
Hi. Some problem with game file.

This is my problem:
Kod:
Genişlet Daralt Kopyala
0402 23:26:23301 :: [GameOption]Something wrong for optionIndex: 1 categoryIndex: 1
0402 23:26:23303 :: [GameOption]Something wrong for optionIndex: 1 categoryIndex: 2
0402 23:26:23304 :: [GameOption]Something wrong for optionIndex: 1 categoryIndex: 0
0402 23:26:23304 :: Traceback (most recent call last):

0402 23:26:23304 ::   File "ui.py", line 1425, in CallEvent

0402 23:26:23305 ::   File "ui.py", line 87, in __call__

0402 23:26:23305 ::   File "ui.py", line 69, in __call__

0402 23:26:23306 ::   File "uiSystem.py", line 139, in __ClickGameOptionButton

0402 23:26:23306 ::   File "uiGameOptionNew.py", line 47, in __init__

0402 23:26:23307 ::   File "uiGameOptionNew.py", line 127, in __LoadWindow

0402 23:26:23307 ::   File "uiGameOptionNew.py", line 219, in CreateOptionWindow

0402 23:26:23308 :: AttributeError
0402 23:26:23308 :: :
0402 23:26:23308 :: 'int' object has no attribute 'GetLocalPosition'
0402 23:26:23308 ::

how to fix this?
 
Uyarı: Bu konu açıldığından bu yana baya zaman geçmiş.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.
Geri
Üst