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 no bot #14

Open
pikapows opened this issue Feb 21, 2022 · 1 comment
Open

Erro no bot #14

pikapows opened this issue Feb 21, 2022 · 1 comment

Comments

@pikapows
Copy link

Ele só coloca 3 naves depois da erro, retira as 3 e coloca de novo e fica assim pra sempre.

[02-21 18:40] => Traceback (most recent call last):
File "C:\spg\main.py", line 68, in main
manager.do_what_needs_to_be_done(current_screen)
File "C:\spg\module\manager.py", line 49, in do_what_needs_to_be_done
Ship.keep_working(self)
File "C:\spg\module\spaceScreen.py", line 297, in keep_working
while not Ship.check_number_of_ships(Image.screen(), n_ships):
File "C:\spg\module\spaceScreen.py", line 327, in check_number_of_ships
x, y, w, h = Image.get_one_target_position("identify_n_space_shipts_in_battle_start_area", screen_image=screen_img)
File "C:\spg\module\image.py", line 159, in get_one_target_position
raise Exception(f"{target} not found")
Exception: identify_n_space_shipts_in_battle_start_area not found

@hiagopinacio
Copy link
Collaborator

Opa, boa noite.
Tente diminuir os threshold no arquivo config.
Aproveite e atualiza o bot, pois lançamos uma versão com algumas correções.

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

2 participants