Closed NuanKi closed 2 years ago
Probably something wrong with recognition here: https://github.com/tmarenko/mff_auto/blob/master/lib/game/routines/challenges.py#L34-L35
Although it's working fine for me at 1080p, you could override UI element with different threshold.
Add this line in settings\ui_override.py
:
DAILY_TRIVIA_TODAY_TEXT.text_threshold = 120
and try to change value (110, 100, 130, etc.) of it until it will work fine for you.
I was using it at 720 because it is less obtrusive on the screen, I'll see how it goes at 1080
it works perfect now, but i got a question wrong 2021-10-18 18:29:58,399 - DEBUG - challenges - Found question: Which character type is strong against Combat type? 2021-10-18 18:29:58,587 - DEBUG - challenges - Found answers: ['Speed', 'Blast'], selecting. 2021-10-18 18:29:58,649 - DEBUG - challenges - Found available answer: Speed. 2021-10-18 18:29:58,650 - DEBUG - challenges - Found correct answer on UI element: DAILY_TRIVIA_ANSWER_1, clicking.
because it is less obtrusive on the screen
Emulator window don't need to be on top of the screen all time. Just don't minimize it. Screen capture and clicks are going through other windows fine even if you can't see emulator.
it works perfect now, but i got a question wrong
Yeah this is normal behaviour:
https://github.com/tmarenko/mff_auto/blob/master/lib/game/routines/challenges.py#L44
Basically bot scaning questions and checking if they are similar with is_strings_similar
because text recognition can give errors in text. They are some questions that are looking similar so sometimes it can pick wrong answer.
Good morning, I found this error where the daily trivia only answers the 1st time and then closes and continues with the other missions
2021-10-18 13:21:35,550 - DEBUG - queue_manager - Running queue. 2021-10-18 13:21:35,562 - DEBUG - queue_manager - Skipping queue item: WORLD EVENT 2021-10-18 13:21:35,563 - DEBUG - queue_manager - Running DAILY TRIVIA with settings: {} 2021-10-18 13:21:40,157 - DEBUG - challenges - Daily Trivia isn't started, starting it. 2021-10-18 13:21:42,017 - DEBUG - challenges - Daily Trivia started, solving questions. 2021-10-18 13:21:42,162 - DEBUG - challenges - Found question: What institution trained Black Widow? 2021-10-18 13:21:42,301 - DEBUG - challenges - Found answers: ['Red Room'], selecting. 2021-10-18 13:21:42,346 - DEBUG - challenges - Found available answer: Panic Room. 2021-10-18 13:21:42,397 - DEBUG - challenges - Found available answer: Marvel Studios. 2021-10-18 13:21:42,455 - DEBUG - challenges - Found available answer: Hot Zone. 2021-10-18 13:21:42,509 - DEBUG - challenges - Found available answer: Red Room. 2021-10-18 13:21:42,510 - DEBUG - challenges - Found correct answer on UI element: DAILY_TRIVIA_ANSWER_4, clicking. 2021-10-18 13:21:48,077 - DEBUG - notifications - Complete challenge notifications was closed: False 2021-10-18 13:21:53,932 - DEBUG - queue_manager - Running DANGER ROOM with settings: {'mode': 'EXTREME'}