Çözüldü Root Dosyası

  • Konuyu açan Konuyu açan kayıturku
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 24
  • Gösterim Gösterim 2K
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ı.

kayıturku

Üye
Üye
Mesaj
157
Çözümler
4
Beğeni
45
Puan
109
Ticaret Puanı
0
Merhaba filesa yeni bir özellik ekledim bu özellikten sonra root'un içindede ufak bir değişiklik yapmam gerekiyor ama Yazılım bilgim yetersiz kaldığı için eklediğim kodlar hata veriyor ve oyunu açamıyorum yardım ederseniz sevinirim.

game.py ve uicommon
Python:
Genişlet Daralt Kopyala
***********game.py açılır aratılır ;***********


self.partyInviteQuestionDialog = None

***********Altına EKlenir ;***********

   if app.AHMET_BOT_KONTROL_SYSTEM:
            self.captchatest = None


***********aratılır ;***********

self.serverCommander=stringCommander.Analyzer()

***********üstüne eklenir ;***********
  if app.AHMET_BOT_KONTROL_SYSTEM:
            serverCommandList.update({"captcha" : self.captchaekran })


***********aratılır ;***********

def BINARY_ServerCommand_Run(self, line):

***********üstüne eklenir ;***********

   if app.AHMET_BOT_KONTROL_SYSTEM:
        def captchaekran(self, sayi1, sayi2, sayi3, sayi4, sayi5):
            captchatest = uiCommon.CaptchaEkran()
            captchatest.SetText1("|cffffff00Bot Engel Sistemi")
            captchatest.SetText3("Oyuna devam edebilmek için üstteki kodu aşağıya yaz.")
            captchatest.SetTimeOverMsg("Soruyu zamanında cevaplamadığın için oyundan atılıyorsun.")
            captchatest.SetTimeOverEvent(self.captchacevap, "kapat")
            captchatest.SetAcceptEvent(lambda arg=True: self.captchacevap(arg))
            captchatest.SetCancelEvent(lambda arg=False: self.captchacevap(arg))
            captchatest.Open(15, sayi1, sayi2, sayi3, sayi4, sayi5)
            self.captchatest = captchatest

        def captchacevap(self, answer):

            if not self.captchatest:
                return
       
            if answer == False:
                self.captchatest.Temizle()
                # chat.AppendChat(1, "Temizledim bro.")
            elif answer == True:
                # chat.AppendChat(1, "Girilen şifre : " + str(self.captchatest.GetInput()))
                net.SendChatPacket("/captcha " + str(self.captchatest.GetInput()))
                self.captchatest.Close()
                self.captchatest = None
            else:
                net.SendChatPacket("/captcha 0")
                self.captchatest.Close()
                self.captchatest = None


***********uicommon.py açılır ;***********

***********aratılır ;***********

class MoneyInputDialog(ui.ScriptWindow):

***********üstüne eklenir ;***********


if app.AHMET_BOT_KONTROL_SYSTEM:
    class CaptchaEkran(QuestionDialog2):
        def __init__(self):
            ui.ScriptWindow.__init__(self)

            self.__CreateDialog()
            self.endTime = 0
            self.timeOverMsg = 0
            self.timeOverEvent = None
            self.timeOverEventArgs = None

        def __del__(self):
            QuestionDialog2.__del__(self)

        def __CreateDialog(self):
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, "uiscript/ahmetbotkontrol.py")

            self.board = self.GetChild("board")
            self.textLine1 = self.GetChild("message1")
            self.textLine2 = self.GetChild("message2")
            self.textLine3 = self.GetChild("message3")
            self.InputValue = self.GetChild("InputValue")
            self.cp1 = self.GetChild("cp1")
            self.cp2 = self.GetChild("cp2")
            self.cp3 = self.GetChild("cp3")
            self.cp4 = self.GetChild("cp4")
            self.cp5 = self.GetChild("cp5")
            self.acceptButton = self.GetChild("accept")
            self.cancelButton = self.GetChild("cancel")
            self.textLine3.Hide()

        def Open(self, timeout, cpp1, cpp2, cpp3, cpp4, cpp5):
            self.SetCenterPosition()
            self.SetTop()
            self.cp1.LoadImage("captcha/"+str(cpp1)+".tga")
            self.cp1.Show()
            self.cp2.LoadImage("captcha/"+str(cpp2)+".tga")
            self.cp2.Show()
            self.cp3.LoadImage("captcha/"+str(cpp3)+".tga")
            self.cp3.Show()
            self.cp4.LoadImage("captcha/"+str(cpp4)+".tga")
            self.cp4.Show()
            self.cp5.LoadImage("captcha/"+str(cpp5)+".tga")
            self.cp5.Show()
            self.Show()

            self.endTime = app.GetTime() + timeout
   

        def SetTimeOverEvent(self, event, *args):
            self.timeOverEvent = event
            self.timeOverEventArgs = args

        def SetTimeOverMsg(self, msg):
            self.timeOverMsg = msg
   
        def SetText1(self, text):
            self.textLine1.SetText(text)
            self.textLine1.Show()

        def SetText2(self, text):
            self.textLine2.SetText(text)
            self.textLine2.Show()
   
        def SetText3(self, text):
            self.textLine3.SetText(text)
            self.textLine3.Show()
   
        def GetInput(self):
            return self.InputValue.GetText()
   
        def Temizle(self):
            self.InputValue.SetText("")

        def OnTimeOver(self):
            if self.timeOverEvent:
                apply(self.timeOverEvent, self.timeOverEventArgs)
            if self.timeOverMsg:
                chat.AppendChat(chat.CHAT_TYPE_INFO, self.timeOverMsg)

        def OnUpdate(self):
            leftTime = max(0, self.endTime - app.GetTime())
            self.SetText2(localeInfo.UI_LEFT_TIME % (leftTime))
            if leftTime <= 0:
                self.OnTimeOver()
bu kodlar game.py ve uicommon'a eklenmesi gerekiyor ben beceremediğim için hata veriyor düzenleyip tarafıma yollayabilirseniz memnun kalırım teşekkürler
 

Dosya Eklentileri

Son düzenleme:
Çözüm
Ben anladım galiba. Bugün yazdığım bi yorumu raporlamış. :D

Python:
Genişlet Daralt Kopyala
                exec 'uiBonusPage.BonusBoardDialog().Show()'

Şöyle bi deneyin;
Python:
Genişlet Daralt Kopyala
                exec 'uiBonusPage.BonusBoardDialog().Show()' in globals(), locals()
Bu sistemi ekledikten sonra mı oldu bu?
yanlışlıkla yorumu sildim evet problemi çözdüm ama bu sefer oyun açılır açılmaz kapanıyor Hatta slota vurunca oyun atıyor sanırsam sourceyi build ederken bir hata yaptım ihtimal var mı ?
Syserr:
Genişlet Daralt Kopyala
ui.py(line:6451) LoadScriptFile
system.py(line:216) execfile
system.py(line:185) Run
system.py(line:200) __LoadTextFile__
system.py(line:80) __init__

LoadScriptFile1 - <type 'exceptions.IOError'>:No file or directory

1007 05:06:12188 :: ============================================================================================================
1007 05:06:12188 :: Abort!!!!
 
Dosya bulunamadı hatası veriyor.
 

Dosya Eklentileri

  • bot.png
    bot.png
    404,3 KB · Gösterim: 154
Hadi gözünüz aydın. :D Uğraşınca oluyormuş demem :iwantattention:
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Üst