- Mesaj
- 507
- Çözümler
- 34
- Beğeni
- 361
- Puan
- 930
- Ticaret Puanı
- 1
Aktif olarak kullandığım Zindan takip sistemi şuan böyle bir syserr`e düşüyor. LoadDungeonInfoBoard konumundaki map_index fonksiyonunu çağırmaya çalışırken syserr`e düşürüyor. Farklı dungeonInfo sistemleride denedim hepsinde aynı hata varmıdır fikri olan ?
Kod:
1210 22:50:02299 :: Traceback (most recent call last):
1210 22:50:02299 :: File "game.py", line 1286, in OnKeyDown
1210 22:50:02299 :: File "game.py", line 382, in <lambda>
1210 22:50:02299 :: File "interfaceModule.py", line 2138, in ShowDungeonInfoInterface
1210 22:50:02299 :: File "uiDungeonInfo.py", line 311, in Open
1210 22:50:02299 :: File "uiDungeonInfo.py", line 280, in LoadDialog
1210 22:50:02299 :: File "uiDungeonInfo.py", line 398, in LoadDungeonInfoBoard
1210 22:50:02299 :: IndexError
1210 22:50:02299 :: :
1210 22:50:02299 :: list index out of range
1210 22:50:02299 ::
HATA SATIRI:
self.dungeonAvailable[index] = ui.TextLine()
self.dungeonAvailable[index].SetParent(self.dungeonButton[index])
#self.dungeonAvailable[index].SetPosition(100, 25) // isim ve giriş yapılabilir alt alta yazsın istersen bunu kullan aşağıdada var değiştir aynı değerle
self.dungeonAvailable[index].SetPosition(220, 18)
self.dungeonAvailable[index].SetText(localeInfo.DUNGEON_INFO_UNAVAILABLE)
self.dungeonAvailable[index].Show()
self.dungeonAvailable[index].SetText("data_loading")
def LoadDungeonInfoBoard(self, index):
self.dungeonIndex = index
mapIndex = constInfo.dungeonInfo[self.dungeonIndex]['map_index']
#Işınlanma Butonu yerine yakında butonu koyuyor map index yazman yeterli
if mapIndex == 248 or mapIndex == 249 or mapIndex == 248 or mapIndex == 509 or mapIndex == 508 or mapIndex == 510 or mapIndex == 511 or mapIndex == 512 or mapIndex == 513 or mapIndex == 514 or mapIndex == 13 or mapIndex == 14 or mapIndex == 16 or mapIndex == 19 or mapIndex == 251 or mapIndex == 515 or mapIndex == 358 or mapIndex == 212:
self.dungeonInfoTeleportButton.Hide()
self.YakindaKanka.Show()
else:
self.dungeonInfoTeleportButton.Show()
self.YakindaKanka.Hide()
if (self.dungeonIndex == 0):
self.dungeonInfoBoard.LoadImage("dungeoninfo_2022/arkaplanlar/356.png")
else:
self.dungeonInfoBoard.LoadImage("dungeoninfo_2022/arkaplanlar/%d.png" % int(mapIndex))
self.dungeonButton[self.dungeonIndex].SetUpVisual("dungeoninfo_2022/butonlar/dungeonbutton2.png")
self.dungeonButton[self.dungeonIndex].SetOverVisual("dungeoninfo_2022/butonlar/dungeonbutton2.png")
self.dungeonButton[self.dungeonIndex].SetDownVisual("dungeoninfo_2022/butonlar/dungeonbutton2.png")
pos = int(self.dungeonScrollBar.GetPos() * (len(constInfo.dungeonInfo) - len(self.dungeonButton)))