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

erro(help)*resolvido #9

Closed
CrazyChappie opened this issue Feb 8, 2022 · 5 comments
Closed

erro(help)*resolvido #9

CrazyChappie opened this issue Feb 8, 2022 · 5 comments

Comments

@CrazyChappie
Copy link

[2022-02-08 19:29:55] => Traceback (most recent call last):
File "C:\Users\Felipe\OneDrive\Área de Trabalho\bomb-bot-master\main.py", line 63, in main
manager.do_what_needs_to_be_done(current_screen)
File "C:\Users\Felipe\OneDrive\Área de Trabalho\bomb-bot-master\module\manager.py", line 46, in do_what_needs_to_be_done
Hero.who_needs_work(self)
File "C:\Users\Felipe\OneDrive\Área de Trabalho\bomb-bot-master\module\bombScreen.py", line 266, in who_needs_work
n_clicks_per_scrool = scroll_and_click_on_targets(
File "C:\Users\Felipe\OneDrive\Área de Trabalho\bomb-bot-master\module\mouse.py", line 86, in scroll_and_click_on_targets
res.append(function_between())
File "C:\Users\Felipe\OneDrive\Área de Trabalho\bomb-bot-master\module\bombScreen.py", line 227, in click_available_heroes
buttons_position = Image.get_target_positions("button_work_unchecked", not_target="button_work_checked", screen_image=screen_img)
File "C:\Users\Felipe\OneDrive\Área de Trabalho\bomb-bot-master\module\image.py", line 93, in get_target_positions
result[result < not_target_result] = 0
ValueError: operands could not be broadcast together with shapes (1052,3240) (1053,3242)

@CrazyChappie
Copy link
Author

ele loga, abre o campo de mineração, abre os herois ai fica um tempo parado logo apos da esse erro

@renatofmmaia
Copy link
Owner

Fala @CrazyChappie, em qual ambiente você esta executando o bot? VM, VPS, seu próprio pc?
Qual a resolução que você utiliza neste ambiente?

@CrazyChappie
Copy link
Author

CrazyChappie commented Feb 9, 2022

Fala @CrazyChappie, em qual ambiente você esta executando o bot? VM, VPS, seu próprio pc?

Qual a resolução que você utiliza neste ambiente?

Bom Dia Meu Amigo
Uso no Próprio pc

1366x768 tentei tbm na 1920x1080

Uso 2 telas

Fiz Novas capturas das fotos no rsc, mantive o mesmo nome so alterei a foto

@renatofmmaia
Copy link
Owner

renatofmmaia commented Feb 9, 2022

Deveria funcionar normalmente, você utiliza zoom no Windows? Verifica depois, pode ser o motivo de não ter funcionado na primeira vez...
Vou testar nessa resolução em windows para ver se acho algum problema.

@hiagopinacio
Copy link
Collaborator

hiagopinacio commented Feb 9, 2022

vc tirou novas prints? as imagens button_work_unchecked.png e button_work_checked.png devem ter o mesmo tamanho de pixels, tanto na altura quanto na largura. se uma tem 50x50px a outra tbm tem que ter.

@CrazyChappie CrazyChappie changed the title erro(help) erro(help)*resolvido Feb 11, 2022
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