christianciu / gbf-automation-updated

Educational application aimed at automating user-defined workflows for the mobile game, "Granblue Fantasy", using a variety of CV technologies in the backend such as OpenCV, PyAutoGUI and EasyOCR and a frontend coded in Typescript.
https://github.com/steve1316/granblue-automation-pyautogui/wiki
2 stars 2 forks source link

[Bug] Event Token Drawbox, Arcarum Sandbox and Raid Navigation Errors #14

Open ChikyuTenshi opened 5 months ago

ChikyuTenshi commented 5 months ago

Hey Chris, Bot seems to be getting stuck after a team wipe because it can't handle the "Battle in progress" after backing out without retreating

Screenshot 2024-05-05 002905

And here's a Pastebin with the debug logs

Solution: Make it stay in raid after wipe and send backup requests until clear

ChikyuTenshi commented 5 months ago

@christianciu Alright things seems to be bugging out for me way too much during navigation

Here it can't see the Arcarum_Banner, Scrolling all the way to the bottom and then getting stuck.

https://github.com/christianciu/gbf-automation-updated/assets/20892295/5939ba43-1820-4500-b683-4232003dc700

And here trying to run Impossible Tiamat Omega and getting stuck in a loop, Also it will join raids correctly if they appeared on the list but bug out if there's nothing, and it never navigates to Set Filters. I noticed that it clicks on the bot icon in my taskbar and even when I reorder my taskbar it will still click on it for some reason.

https://github.com/christianciu/gbf-automation-updated/assets/20892295/b7767902-4966-4e1b-b38c-4f0bb31e16b9

christianciu commented 5 months ago

@ChikyuTenshi

  1. I can't see part of the video, its just get blured image

  2. About raid list filters, its intentional as its buggy on the original version and failed to choose the right raid (https://github.com/steve1316/granblue-automation-pyautogui/pull/207). Filter the raid you want first then start the bot (it also ignore your choices of farmed items & raid battle)

  3. As for clicking bot in taskbar ..... i have no idea ? It never happened to me and i found its strange that the logs say it found a raid while the raid filter still unset yet

ChikyuTenshi commented 5 months ago

@christianciu

  1. I blurred it on purpose because it was showing my name + crew but it was just scrolling down as it should, Not sure why it can't locate the banner.
  2. Okay I thought so too.
  3. Alright so I found a temporary workaround for now, just adding a bunch of icons to my taskbar to make sure the bot isn't directly below the game makes it hit reload properly. Maybe lowering the scan range will help?
christianciu commented 5 months ago

@christianciu

  1. I blurred it on purpose because it was showing my name + crew but it was just scrolling down as it should, Not sure why it can't locate the banner.
  2. Okay I thought so too.
  3. Alright so I found a temporary workaround for now, just adding a bunch of icons to my taskbar to make sure the bot isn't directly below the game makes it hit reload properly. Maybe lowering the scan range will help?
  1. Its working for me. Are you sure your Arcanum banner is in the home page ?
  2. Gotta be honest with you, i don't really understand the original code for OCR & scanning and havent got time (and motivation) for learning it (Im seasonal so thats that). If you want, you could try lowering it. No need to install tauri dependencies if you are only working on python files. Just replace the old file with new ones and run the app
ChikyuTenshi commented 5 months ago
  1. Yes it is there, I even verified how Arcarum_Banner looks and it's the same one at my homepage Screenshot 2024-05-09 220036
  2. Understandable, I'll try tinkering with it and see how it goes
christianciu commented 5 months ago
  1. Yes it is there, I even verified how Arcarum_Banner looks and it's the same one at my homepage Screenshot 2024-05-09 220036
  2. Understandable, I'll try tinkering with it and see how it goes

If you confirm the banner is there, but they can't find it. You could screenshot the banner and then replace the banner in the folder with your screenshotted one. Its the same thing i do with adding new summons.

ChikyuTenshi commented 4 months ago

Yeah after posting my last comment I tried doing so and it works flawlessly