DracaryS Renewal Game Option System

Dr Livesey

MT Üye
MT Üye
Mesaj
854
Çözümler
18
Beğeni
1.034
Puan
1.039
Ticaret Puanı
0


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


@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:
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:
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

  • new_game_option.rar
    158,4 KB · Gösterim: 345
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:
child.SetPosition(_x,_y)

böyle olacak
 
220. satırda True kaldırın
Kod:
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:
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:
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:
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:
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.png
 
Kod:
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:
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:
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:
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?
 
Geri
Üst