|
BUG: 5.3.1: Bot hang/ blank windows - Printable Version +- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club) +-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1) +--- Forum: Game Cheating, Botting & Reverse Engineering (https://the.bytecode.club/forumdisplay.php?fid=97) +--- Thread: BUG: 5.3.1: Bot hang/ blank windows (/showthread.php?tid=216) |
BUG: 5.3.1: Bot hang/ blank windows - dinobot - 01-05-2015 RE: Bot hang/ blank windows - GkevinOD - 01-05-2015 Also specify what the last thing the bot does, check the log. RE: Bot hang/ blank windows - Cocsi - 01-05-2015 I have checked all my logs and found the same lines in the log everytime when the GUI froze. This "freezing" is not a real freeze like "nothing works anymore" its more a "GUI goes blank and the bot doesn't work properly" This is what always happens after some time (1-3 hours I guess) Code: 2015-01-03 23:57:52 : Cannot locate Next button, Restarting BotWhat is interesting: It always happens after the "Cannot locate Next button, Restarting Bot" BUT: Most of the time, when the Next Button cannot be located, it just keeps running fine. So the question is, whether this is just the effect of the frozen GUI or whether the GUI freezes because of it? The road so far... EDIT: What I almost forgot to mention: When the bot tries to restart bluestacks, it DOES restart but it stays zoomed in. Could it be, that the bot doesn't zoom out properly sometimes? Just random guessing here... RE: Bot hang/ blank windows - GkevinOD - 01-05-2015 In the script replace the function checkMainScreen() to: [code=autoit] Func checkMainScreen() ;Checks if in main screen _CaptureRegion() If _ColorCheckVariation(_PixelGetColor_GetPixel(284, 28), Hex(0x41B1CD, 6), 20) = False Then While 1 _CaptureRegion() SetLog("Trying to get to main screen") If _ColorCheckVariation(_PixelGetColor_GetPixel(458, 311), Hex(0x33B5E5, 6), 20) Then ;Check for out of sync or inactivity Click(416, 399) Else WinActive("BlueStacks App Player") Click(126, 700) Local $RunApp = StringReplace(_WinAPI_GetProcessFileName(WinGetProcess("BlueStacks App Player")), "Frontend", "RunApp") Run($RunApp & " Android com.supercell.clashofclans com.supercell.clashofclans.GameApp") EndIf If _Sleep(5000) or $RunState = False Then ExitLoop Local $counter = 0 While 1 If _Sleep(2000) or $RunState = False Then ExitLoop(2) If WinExists("BlueStacks App Player") Then _CaptureRegion() If _ColorCheckVariation(_PixelGetColor_GetPixel(235, 209), Hex(0x9E3826, 6), 20) Then Click(429, 493);See if village was attacked, clicks Okay If _ColorCheckVariation(_PixelGetColor_GetPixel(284, 28), Hex(0x215B69, 6), 20) Then Click(1, 1) ;Click away If things are open If _ColorCheckVariation(_PixelGetColor_GetPixel(819, 55), Hex(0xD80400, 6), 20) Then Click(819, 55) ;Clicks X If _ColorCheckVariation(_PixelGetColor_GetPixel(331, 330), Hex(0xF0A03B, 6), 20) Then Click(331, 330) ;Clicks chat thing If _ColorCheckVariation(_PixelGetColor_GetPixel(284, 28), Hex(0x41B1CD, 6), 20) Then ;In main screen Exitloop(2) EndIf EndIf $counter += 1 If $counter >= 150 Then ;Five minutes SetLog("Could not automatically load Clash Of Clans") If _Sleep(1000) or $RunState = False Then ExitLoop(2) SetLog("Restarting BlueStacks") WinActive("BlueStacks App Player") Local $RunApp = StringReplace(_WinAPI_GetProcessFileName(WinGetProcess("BlueStacks App Player")), "Frontend", "RunApp") ProcessClose("HD-Frontend.exe") If _Sleep(5000) or $RunState = False Then ExitLoop(2) Run($RunApp & " Android com.supercell.clashofclans com.supercell.clashofclans.GameApp") Do If _Sleep(10000) or $RunState = False Then ExitLoop(2) Until ControlGetHandle("BlueStacks App Player", "", "BlueStacksApp1") <> 0 checkMainScreen() ExitLoop(2) EndIf WEnd WEnd EndIf EndFunc [/code] RE: Bot hang/ blank windows - dinobot - 01-05-2015 Previously we thought could be the imagesearch but I have the same situation as you.. Loop in can't find bluestacks. But this was previous version of the bot. I still haven't really tested this 5.3.1 yet.. Running for an hour now on dead base... Still running strong... Let's see.... By the way, it seems that there is less or no out of sync error with this version... My pc on 6gb ram, win 7 x64 and on latest version bluestack 0.9.6.4092 rooted. RE: Bot hang/ blank windows - pinay26 - 01-05-2015 this happens to me to. im using the compiled 32bit by crazies because it has drop king and queen feature which i really need .. RE: Bot hang/ blank windows - dinobot - 01-05-2015 Please use antidote version.. It includes king attack... Test it and report bug... If the bug is of different nature, please start a thread... RE: Bot hang/ blank windows - Cocsi - 01-05-2015 RE: Bot hang/ blank windows - GkevinOD - 01-05-2015 RE: Bot hang/ blank windows - Cocsi - 01-05-2015 |