The Bytecode Club - Reverse Engineering Forum
Bug -> v5.4.2.2 : Not zooming out & Always Shield click - 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 -> v5.4.2.2 : Not zooming out & Always Shield click (/showthread.php?tid=317)

Pages: 1 2


Bug -> v5.4.2.2 : Not zooming out & Always Shield click - k3iroll - 01-14-2015

Noticed 2 bugs when I'm running the version 5.4.2.2:

1- The bot won't automatically zoom out the base when starting.

2- The bot always click on the Shield button when starting the attack, if the Shield button is not there, means that the bot is clicking on the enemy base.


RE: Bug -> v5.4.2.2 : Not zooming out & Always Shield click - Mattrix - 01-14-2015

For me it works, i think you have to delete the config.ini and configure again the bot, specially if u update your bot and didn't do a fresh install...

However, did you run the 860x720.reg file?


RE: Bug -> v5.4.2.2 : Not zooming out & Always Shield click - k3iroll - 01-14-2015

I've been running the Bot from V4 up until latest v5.4.2.2. I remembered that I reported about the shield clicking issue and Antidote, I think released a version to prevent that - currently I'm farming using version 5.3.4 & 5.3.5 - These 2 versions do not have this problem.

I changed the shield clicking code that is used in v5.4.2.2 to be the same as v5.3.5. This solves the "always click shield" issue for me.

Trying to figure out why the zooming out does not works in v5.4.2.2 Never happens to me in the previous releases before.


RE: Bug -> v5.4.2.2 : Not zooming out & Always Shield click - TheCheat - 01-14-2015

I have not tried any other versions before and tried this 5.4.2.2 and it doesnt zoom out for me either


edit: this is weird. i just tried it on another pc and it zooms out perfectly..


RE: Bug -> v5.4.2.2 : Not zooming out & Always Shield click - k3iroll - 01-14-2015

TheCheat,

I'm running the bot in 2 different PC as well. 1 of the PC runs OK, but the other one is having the issue that I've stated. Both running the same OS, Win 7 64 bit, but with a different spec (e.g. RAM, Graphic card, Processor ....).

Dead base detection behavior is also different between these 2 PCs. I need to tweak the tolerances and dead base images individually for them to work.


RE: Bug -> v5.4.2.2 : Not zooming out & Always Shield click - TheCheat - 01-14-2015

yeah. doesnt run all the way as it gets stuck on a non zoomed out screen


RE: Bug -> v5.4.2.2 : Not zooming out & Always Shield click - k3iroll - 01-14-2015

Managed to find the issue:

The below zoom out codes in v5.4.2.2 does not works well for me
Code:
;~ Func ZoomOut() ;Zooms out
;~     Local $i = 0
;~     While 1
;~         If _Sleep(500) Then ExitLoop
;~         _CaptureRegion(0, 0, 860, 2)
;~         If _PixelGetColor_GetPixel(1, 1) = 0x000000 And _PixelGetColor_GetPixel(850, 1) = 0x000000 Then
;~             ExitLoop
;~         Else
;~             ControlSend("BlueStacks App Player", "", "", "{DOWN}", 0)
;~             $i += 1
;~             If $i = 20 Then
;~                 ExitLoop
;~             EndIf
;~         EndIf
;~     WEnd
;~ EndFunc   ;==>ZoomOut


I replaced with the below codes, found in v5.3.5
Code:
Func ZoomOut() ;Zooms out
    Local $i = 0
    While 1
        getBSPos()
        If _Sleep(500) Then ExitLoop
        If PixelGetColor($BSpos[0] + 1, $BSpos[1] + 1) = 0x000000 And PixelGetColor($BSpos[0] + 850, $BSpos[1] + 1) = 0x000000 Then
            ExitLoop
        Else
            ControlSend("BlueStacks App Player", "", "", "{DOWN}", 0)
            $i += 1
            If $i = 30 Then
                ExitLoop
            EndIf
        EndIf
    WEnd
EndFunc   ;==>ZoomOut



RE: Bug -> v5.4.2.2 : Not zooming out & Always Shield click - Mystery7 - 01-14-2015

Are you using background?
If so, try without.
good thing u switched the zoomout cause for some people the zoom out doesnt work with or without background.
As for shield being clicked I suppose you could do the sane cause the new one relies on capture region which is the cause of not zooming out and miss clicking due to false positives.

Im currently doing my last test on the bot before I release a cross version of 5.3.4 & 5.4.2.2.


RE: Bug -> v5.4.2.2 : Not zooming out & Always Shield click - k3iroll - 01-14-2015

I'm not using background mode.

Can't wait to try your cross-over version ... Smile


RE: Bug -> v5.4.2.2 : Not zooming out & Always Shield click - TheCheat - 01-14-2015

k3iroll. thanks. i will try yours out first.