Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any update coming? #62

Open
Soulbadguy54 opened this issue May 16, 2022 · 5 comments
Open

Is there any update coming? #62

Soulbadguy54 opened this issue May 16, 2022 · 5 comments

Comments

@Soulbadguy54
Copy link

Hello, thx for you work. I saw some topics in Portuguese, but i cant understand the whole situation.
Is there any solution to make bot working or probably some update?

Thx for answer

@walterdis
Copy link
Owner

walterdis commented May 16, 2022

Hi ;)

You have to take the screen of the new buttons, then go to the helpers.py in the handlePopup() method and duplicate the verification lines and replace the image names with the new.

Ex:

def handlePopup(screen=None):
    time.sleep(1)
    if screen is None:
        screen = printSreen()
    
    if(hasImage('button-ok.png', 0.8, screen)):
        clickDestinationImage('button-ok.png', None, 2, 0.8)

    # here is the new piece of code. Take a screen shot of the double arrow button, save in the 
    # targe_images with the name below. Do the same with new buttons
    if(hasImage('button-double-arrow.png', 0.8, screen)): 
        clickDestinationImage('button-double-arrow.png', None, 2, 0.8) 

    if(hasImage('button-x.png', 0.8, screen)):
        clickDestinationImage('button-x.png', None, 2, 0.8)

@walterdis
Copy link
Owner

Someone just sent me a pull request with some changes.

Backup your current bot and try this version to see if it works ;)

@Soulbadguy54
Copy link
Author

Someone just sent me a pull request with some changes.

Backup your current bot and try this version to see if it works ;)

Hello, sir! I tried a new version of bot and after picture changes it seems to work.
But I still have a problem for 1 month (I opened the issue some time ago), that bot picks the wrong warrior, for example, already picked one. So, sometimes, bot fights with only two or one warriors I change the accuracy many times, but there is still no effect. If I raise it to high values, bot sometimes skips the warriors with suitable energy, if decrease the value, bot picks the already picked warrior, then pick it for the 3rd time and then clicks “boss hunt” button (with only 1 warrior).
I have such suggestion. I can’t do it myself, because I’m afraid to break something or don’t get the expected effect. Every time when bot wants to click on “boss hunt” button, he should check the existence of empty slot. There is a problem (on picture) with the moving knifes that can be under the slot picture. The possible way to solve problem is to check not whole empty slot picture or green plus inside the slot, but the leg of shadow which doesn’t lie on the trajectory of moving knives.

Waiting for your response! Thx for the job you doing!

image

@tgarrone
Copy link

Try cropping images 2/3 and 3/3 again

@walterdis
Copy link
Owner

Someone just sent me a pull request with some changes.
Backup your current bot and try this version to see if it works ;)

Hello, sir! I tried a new version of bot and after picture changes it seems to work. But I still have a problem for 1 month (I opened the issue some time ago), that bot picks the wrong warrior, for example, already picked one. So, sometimes, bot fights with only two or one warriors I change the accuracy many times, but there is still no effect. If I raise it to high values, bot sometimes skips the warriors with suitable energy, if decrease the value, bot picks the already picked warrior, then pick it for the 3rd time and then clicks “boss hunt” button (with only 1 warrior). I have such suggestion. I can’t do it myself, because I’m afraid to break something or don’t get the expected effect. Every time when bot wants to click on “boss hunt” button, he should check the existence of empty slot. There is a problem (on picture) with the moving knifes that can be under the slot picture. The possible way to solve problem is to check not whole empty slot picture or green plus inside the slot, but the leg of shadow which doesn’t lie on the trajectory of moving knives.

Waiting for your response! Thx for the job you doing!

image

Hi ;)
You can try combinations of cropping image and adjusting the threshold (try using 3 digits ex: 0.874).

I stopped playing, so, i'm not maintaning the bot anymore 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants