tmarenko / mff_auto

Game bot for Marvel Future Fight game.
Apache License 2.0
26 stars 15 forks source link

Opens Options Menu #45

Closed jeisonfura closed 3 years ago

jeisonfura commented 3 years ago

When switching to next task, it will open the options menu instead of home (I think it's supposed to click home). Screenshot_2021-10-01-11-42-36

tmarenko commented 3 years ago

Can you attach a log file for this issue?

jeisonfura commented 3 years ago

2021-10-02 01:15:23,467 - DEBUG - game - Stage: TIMELINE BATTLE; stages: 10/10 2021-10-02 01:15:23,483 - INFO - timeline - 10 stages available. 2021-10-02 01:15:34,916 - ERROR - game - Failed to open Content Status board. 2021-10-02 01:15:44,466 - ERROR - timeline - Timeline Battle: can't find GET READY button. 2021-10-02 01:15:46,268 - DEBUG - notifications - After mission notifications was closed: False

In this example, it opens Content Status board and discovers timeline battle. Then it closes it. Then it opens options and gets stuck.

tmarenko commented 3 years ago

From the log file I'm not sure what's causing the problem. Maybe you could do video recording? For safe purposes I've added this https://github.com/tmarenko/mff_auto/commit/d54b347a86cbbb7749bc610840a0bc2f5e0dae16 Bot would click on HOME button only if it's visible.

jeisonfura commented 3 years ago

Does this help?

https://user-images.githubusercontent.com/5334554/135733497-21b0858c-9320-4f61-8cd5-ac61eed05ee4.mp4

tmarenko commented 3 years ago

Sorry I can't view video file

jeisonfura commented 3 years ago

I uploaded it to youtube: https://www.youtube.com/watch?v=oQtNWNuA4Rc

tmarenko commented 3 years ago

Looks like false positive recognition for MAIN_MENU_AD_4 This should fix it: https://github.com/tmarenko/mff_auto/commit/edd524f275b64b04de30bc6fc7dcdedb41907820

tmarenko commented 3 years ago

Released in https://github.com/tmarenko/mff_auto/releases/tag/0.9.1

jeisonfura commented 3 years ago

This still doesn't work.

tmarenko commented 3 years ago

Do you have any logs or videos using new release with this problem?

jeisonfura commented 3 years ago

Here's the 2nd video: https://www.youtube.com/watch?v=vWikAgYT5tw

tmarenko commented 3 years ago

Can you attach full log file? I need to check initialization of emulator

jeisonfura commented 3 years ago

2021-10-07 09:49:29,779 - INFO - updater - Loaded version: mff_auto=0.9.1, game=7.4.0, updater=1.1.0 2021-10-07 09:49:30,575 - INFO - updater - Current version 0.9.1 is up to date for Marvel Future Fight 7.4.0. 2021-10-07 09:49:31,825 - DEBUG - root - Creating 1 Tesseract API(s) with 'eng' language. 2021-10-07 09:49:32,132 - DEBUG - root - Creating 1 Tesseract API(s) with 'mff+eng' language. 2021-10-07 09:49:34,050 - DEBUG - root - NoxPlayer 7.0.1.0: found Close App shortcut at position 7 2021-10-07 09:49:34,052 - DEBUG - root - Initialized NoxPlayer object with name NoxPlayer version 7.0.1.0 and resolution (1788, 1006); main window: (46, 32, 1834, 1038), parent: (0, 0) 2021-10-07 09:49:34,055 - DEBUG - root - NoxPlayer 7.0.1.0: found Close App shortcut at position 7 2021-10-07 09:49:34,410 - DEBUG - queue_manager - Loading 6 items to queue list #1. 2021-10-07 09:49:34,461 - DEBUG - queue_manager - Loading 0 items to queue list #2. 2021-10-07 09:49:34,462 - DEBUG - queue_manager - Loading 0 items to queue list #3. 2021-10-07 09:49:34,462 - DEBUG - queue_manager - Loading 0 items to queue list #4. 2021-10-07 09:49:48,352 - DEBUG - queue_manager - Running queue. 2021-10-07 09:49:48,354 - DEBUG - queue_manager - Skipping queue item: GIANT BOSS RAID 2021-10-07 09:49:48,354 - DEBUG - queue_manager - Running WORLD BOSS with settings: {'mode': 'ULTIMATE', 'boss': 'TODAYS_BOSS', 'difficulty': 1, 'sync_character_and_ally_teams': False} 2021-10-07 09:49:53,339 - DEBUG - game - Stage: LEGENDARY BATTLE; stages: 5/5 2021-10-07 09:49:55,505 - DEBUG - game - Stage: DIMENSION MISSION; stages: 5/7 2021-10-07 09:49:55,716 - DEBUG - game - Stage: VEILED SECRET; stages: 4/4 2021-10-07 09:49:55,869 - DEBUG - game - Stage: MUTUAL ENEMY; stages: 2/2 2021-10-07 09:49:56,063 - DEBUG - game - Stage: STUPID X-MEN; stages: 6/6 2021-10-07 09:49:56,261 - DEBUG - game - Stage: THE BIG TWIN; stages: 6/6 2021-10-07 09:49:56,433 - DEBUG - game - Stage: TWISTED WORLD; stages: 6/6 2021-10-07 09:49:56,595 - DEBUG - game - Stage: THE FAULT; stages: 6/6 2021-10-07 09:49:56,796 - DEBUG - game - Stage: GOLDEN GODS; stages: 6/6 2021-10-07 09:49:56,965 - DEBUG - game - Stage: ALLIANCE BATTLE; stages: 1/1 2021-10-07 09:49:57,177 - DEBUG - game - Stage: TIMELINE BATTLE; stages: 10/10 2021-10-07 09:49:57,345 - DEBUG - game - Stage: WORLD BOSS; stages: 5/5 2021-10-07 09:49:58,848 - DEBUG - notifications - Closing ads menu. 2021-10-07 09:50:01,943 - DEBUG - queue_manager - Queue was forcibly stopped. 2021-10-07 09:50:01,978 - DEBUG - queue_manager - Queue completed.

tmarenko commented 3 years ago

I couldn't reproduce this even with same resolution and settings:

2021-10-08 09:21:20,298 - DEBUG - root - Creating 1 Tesseract API(s) with 'eng' language. 2021-10-08 09:21:20,506 - DEBUG - root - Creating 1 Tesseract API(s) with 'mff+eng' language. 2021-10-08 09:21:20,835 - DEBUG - root - NoxPlayer 7.0.1.0: found Close App shortcut at position 8 2021-10-08 09:21:20,837 - DEBUG - root - Initialized NoxPlayer object with name NoxPlayer version 7.0.1.0 and resolution (1788, 1006); main window: (2, 32, 1790, 1038), parent: (94, 19) 2021-10-08 09:21:20,838 - DEBUG - root - NoxPlayer 7.0.1.0: found Close App shortcut at position 8

Is MAIN_MENU_AD_4 on screen: False (1792, 1040)

You could try to override text_threshold for MAIN_MENU_AD_4 in settings/ui_override.py. Add this line at the end of the file: MAIN_MENU_AD_4.text_threshold = 55 and try to change value 55 to 60 for example. Restart bot, check if it still opens menu. You can try different values (65, 70, etc.) until it will work for you.

jeisonfura commented 3 years ago

I'll try that when I get time. It's weird, it worked fine for a while, and then one update it broke.

jeisonfura commented 3 years ago

Changing text_threshhold to 60 worked. Thanks!

jeisonfura commented 2 years ago

This is happening again. Was working fine yesterday and now it's broken again this morning.