Giter Site home page Giter Site logo

steve1316 / granblue-automation-android Goto Github PK

View Code? Open in Web Editor NEW
64.0 8.0 10.0 33.99 MB

Educational application written in Kotlin aimed at automating user-defined workflows for the mobile game, "Granblue Fantasy", using MediaProjection, AccessibilityService, and OpenCV.

Kotlin 59.47% JavaScript 0.18% Java 5.35% TypeScript 34.84% Ruby 0.03% Starlark 0.12%
bot android template automation ocr control script matching gbf fantasy

granblue-automation-android's Introduction

Hi, my name is Steve Tu!

A passionate web and software developer from San Francisco State University with a major in Computer Science!

steve1316

πŸ“« How to reach me: [email protected]

πŸ”­ My featured projects are:

Connect with me:

steve-tu-370ba219b

Recent GitHub Activity

  1. πŸ—£ Commented on #209 in steve1316/granblue-automation-pyautogui
  2. πŸ—£ Commented on #210 in steve1316/granblue-automation-pyautogui
  3. ❗️ Closed issue #201 in steve1316/granblue-automation-pyautogui
  4. πŸ—£ Commented on #201 in steve1316/granblue-automation-pyautogui
  5. ❗️ Closed issue #204 in steve1316/granblue-automation-pyautogui

My GitHub Stats:

From: 20 April 2024 - To: 27 April 2024

Python   7 hrs 27 mins   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   56.79 %
Docker   2 hrs 53 mins   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   21.96 %
Bash     1 hr 37 mins    β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   12.35 %
CSV      24 mins         β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   03.11 %
JSON     18 mins         β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   02.35 %

steve1316

Β steve1316

granblue-automation-android's People

Contributors

steve1316 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

granblue-automation-android's Issues

Timeout

Is there a way to disable or extend the timeout while looking for raids? I'd like to keep running it in the background for the raids that aren't hosted as much.

Screen with height of 1920 could not see the second event banner

Description

Reposting for @plisquin as the issue was originally posted in the wrong repo.

Screen at 1920 height cannot see the second event banner when there are two events happening simultaneously.

00:00:00 [INFO] Device dimensions: 1920x1080

00:00:00 ####################
00:00:00 ####################
00:00:00 [FARM] Starting Farming Mode for Proving Grounds.
00:00:00 [FARM] Farming 300x Repeated Runs at Extreme.
00:00:00 ####################
00:00:00 ####################

00:00:00 [PROVING.GROUNDS] Now beginning process to navigate to the mission: Extreme...

00:00:00 [DEBUG] Starting process to find the HOME header image...
00:00:00 [DEBUG] Match found with 0.983 >= 0.8 at Point {20.0, 57.0} using scale: 1.0.
00:00:00 [DEBUG] Current location confirmed to be at HOME.
00:00:00 [INFO] Bot is already at the Home screen.
00:00:00 [DEBUG] Now attempting to find and click the "home_menu" button.

00:00:00 [DEBUG] Starting process to find the HOME_MENU button image...
00:00:00 [DEBUG] Match found with 0.91 >= 0.8 at Point {931.0, 39.0} using scale: 1.0.
00:00:00 [DEBUG] Found the HOME_MENU at {1004.0, 90.0}.

00:00:01 [DEBUG] Starting process to find all EVENT_BANNER images...
00:00:02 [DEBUG] Match found with 0.869 >= 0.8 at Point {146.0, 1697.0} with scale: 1.0.
00:00:02 [DEBUG] Match not found with 0.6641741394996643 < 0.8 at Point {146.0, 1696.0} with scale: 1.0.
00:00:02 [DEBUG] Found match locations for event_banner: [{187.0, 1460.0}, {192.0, 1715.0}].

00:00:05 [DEBUG] Starting process to find the PROVING_GROUNDS header image...
00:00:05 [DEBUG] Match not found with 0.381 not >= 0.8 at Point {382.0, 46.0} using scale 1.0.
00:00:05 [DEBUG] Source bitmap is null. Moving the screen a bit and waiting a second before trying again.
00:00:07 [DEBUG] Match not found with 0.381 not >= 0.8 at Point {382.0, 46.0} using scale 1.0.
00:00:08 [DEBUG] Match not found with 0.381 not >= 0.8 at Point {382.0, 46.0} using scale 1.0.
00:00:08 [DEBUG] Source bitmap is null. Moving the screen a bit and waiting a second before trying again.
00:00:09 [DEBUG] Match not found with 0.381 not >= 0.8 at Point {382.0, 46.0} using scale 1.0.
00:00:10 [DEBUG] Match not found with 0.381 not >= 0.8 at Point {382.0, 46.0} using scale 1.0.
00:00:10 [WARNING] Failed to confirm the bot location at PROVING_GROUNDS.
00:00:10 GAA encountered an Exception: com.steve1316.granblue_automation_android.bot.game_modes.ProvingGrounds$ProvingGroundsException: Failed to arrive at Proving Grounds page.
at com.steve1316.granblue_automation_android.bot.game_modes.ProvingGrounds.navigate(ProvingGrounds.kt:55)
at com.steve1316.granblue_automation_android.bot.game_modes.ProvingGrounds.start(ProvingGrounds.kt:68)
at com.steve1316.granblue_automation_android.bot.Game.start(Game.kt:1113)
at com.steve1316.granblue_automation_android.StartModule.onStartEvent(StartModule.java:342)
at java.lang.reflect.Method.invoke(Native Method)
at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:517)
at org.greenrobot.eventbus.EventBus.postToSubscription(EventBus.java:440)
at org.greenrobot.eventbus.EventBus.postSingleEventForEventType(EventBus.java:421)
at org.greenrobot.eventbus.EventBus.postSingleEvent(EventBus.java:394)
at org.greenrobot.eventbus.EventBus.post(EventBus.java:275)
at org.greenrobot.eventbus.EventBus.postSticky(EventBus.java:316)
at com.steve1316.automation_library.utils.BotService$onCreate$1$onTouch$1.invoke(BotService.kt:136)
at com.steve1316.automation_library.utils.BotService$onCreate$1$onTouch$1.invoke(BotService.kt:120)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

HD-Player_Rx87RdPVl9

Bot stopping after 1 run on VH Event Raid

Provided the log of it. Hope it helps. Thanks

00:00:00 ####################
00:00:00 ####################
00:00:00 [FARM] Starting Farming Mode for Event (Token Drawboxes).
00:00:00 [FARM] Farming 30x Repeated Runs at VH Event Raid.
00:00:00 ####################
00:00:00 ####################

00:00:00 [EVENT.TOKEN.DRAWBOXES] Now beginning process to navigate to the mission: VH Event Raid...
00:00:03 [WARNING] Failed to confirm the bot location at HOME.
00:00:03 [INFO] Moving back to the Home screen...

00:00:09 [INFO] Screen Width: 1080, Screen Height: 2340, Screen DPI: 420
00:00:14 [WARNING] Failed to find the CLOSE button.
00:00:30 [WARNING] Failed to confirm the bot location at EVENT_DAILY_MISSIONS.
00:00:32 [EVENT.TOKEN.DRAWBOXES] Now hosting Event Raid...
00:00:42 [WARNING] Failed to confirm the bot location at NOT_ENOUGH_AP.

00:00:42 [INFO] AP auto-restore check passed. Continuing to Party Selection...
00:00:42 Summon list: [huanglong, qilin]
00:00:42 Summon Element list: [misc, misc]
00:00:49 [WARNING] Failed to confirm the bot location at CAPTCHA.

00:00:49 [CAPTCHA] CAPTCHA not detected.
00:00:59 [SUCCESS] Selected Group and Party successfully.

00:01:04 ####################
00:01:04 ####################
00:01:04 [COMBAT] Starting Combat Mode.
00:01:04 ####################
00:01:04 ####################
00:01:11 [COMBAT] Bot has processed the entire combat script. Automatically attacking until the battle ends or Party wipes.
00:01:11 [COMBAT] Bot will now attempt to enable Full Auto...
00:01:14 [WARNING] Failed to find the FULL_AUTO button.
00:01:14 [COMBAT] Bot failed to find the "Full Auto" button. Falling back to Semi Auto...
00:01:14 [COMBAT] Bot will now attempt to enable Semi Auto...
00:01:16 [WARNING] Failed to find the SEMI_AUTO_ENABLED button.
00:01:21 [COMBAT] Semi Auto is now enabled.
00:01:33 [COMBAT] Reloading now.
00:01:38 [COMBAT] Waiting for attack to end...

00:01:45 ####################
00:01:45 ####################
00:01:45 [COMBAT] Ending Combat Mode.
00:01:45 ####################
00:01:45 ####################
00:01:46 [WARNING] Failed to confirm the bot location at LOOT_COLLECTED.
00:01:52 [WARNING] Failed to confirm the bot location at LOOT_COLLECTED.

00:01:57 [INFO] Detecting if any user-specified loot dropped this run...

00:01:57 ********************
00:01:57 ********************
00:01:57 [INFO] Farming Mode: Event (Token Drawboxes)
00:01:57 [INFO] Mission: VH Event Raid
00:01:57 [INFO] Summons: [Huanglong, Qilin]
00:01:57 [INFO] # of runs completed: 1 / 30
00:01:57 ********************
00:01:57 ********************

00:01:57 [INFO] Resting period complete.

00:01:58 [INFO] Now beginning process to check for popups...
00:02:00 GAA encountered an Exception: java.io.FileNotFoundException: headers/event_claim_loot_header.webp
	at android.content.res.AssetManager.nativeOpenAsset(Native Method)
	at android.content.res.AssetManager.open(AssetManager.java:881)
	at android.content.res.AssetManager.open(AssetManager.java:858)
	at com.steve1316.granblue_automation_android.utils.ImageUtils.getBitmaps(ImageUtils.kt:433)
	at com.steve1316.granblue_automation_android.utils.ImageUtils.confirmLocation(ImageUtils.kt:665)
	at com.steve1316.granblue_automation_android.utils.ImageUtils.confirmLocation$default(ImageUtils.kt:645)
	at com.steve1316.granblue_automation_android.bot.game_modes.Event.checkEventNightmare(Event.kt:17)
	at com.steve1316.granblue_automation_android.bot.Game.checkForPopups(Game.kt:873)
	at com.steve1316.granblue_automation_android.bot.game_modes.Event.start(Event.kt:294)
	at com.steve1316.granblue_automation_android.bot.Game.startFarmingMode(Game.kt:1078)
	at com.steve1316.granblue_automation_android.utils.BotService$onCreate$1$onTouch$1.invoke(BotService.kt:132)
	at com.steve1316.granblue_automation_android.utils.BotService$onCreate$1$onTouch$1.invoke(BotService.kt:110)
	at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)


Now saving Message Log to file named "log @ 2022-10-02 12:06:16" at /storage/emulated/0/Android/data/com.steve1316.granblue_automation_android/files/logs

Button not found

It seems it has troubled finding some buttons like full auto but it works with semi on normal special quest like deluge trial

Screenshot_20210826-131510
Screenshot_20210826-132537

I'm on android 10
I'm using skyleap browser
I tried both standard and lite graphical settings

I'll try on chrome later

Accessibility issue

Any idea why the app suddenly stop working randomly? The accessibility for the app keep malfunction after a certain time. Not sure if its my phone issue or the app.

android version not working

Screenshot_2021-09-04-06-26-20-83_6948ba2d6cf6960c4526b24e4863ae4e
the bot cant seems to work on my android device. using oppo a5 2020 running android 10 . tested on skyleap, chrome and apps. says it cant find the home button.

Accessibility Service Error

I can't open the app because it says an app obstructed the permission settings, I tried turning off any overlay permissions and floating window apps but none seemed to work, I'm using vivo y91 and I don't know what's the problem

Screenshot_20220408_210642

java.lang exeption

You really need to make a video on how to use this thing, i'm still not clear on how you create combat scripts (n/m i found the wiki)
i can't seem to get it running no matter what i try, i tried running it both on the chrome browser and the skyleap app, also tried both APK's just in case

GAA

Jittering Inputs

Hello! When using this on my mobile device, it seems as if the bot constantly performs meaningless taps near the center of the screen, which cause it to shift up and down and cause delays.

coop not working???

hi !! im using bluestacks 4 with gaa and for some reason its not letting me start with it? when i try to pick a coop battle to farm its just a blank pop up and i can't choose anything

image

Bot failed navigating to Zone Goliath on Arcanum Sanbox

Here's the debug log

00:00:00 ####################
00:00:00 ####################
00:00:00 [FARM] Starting Farming Mode for Arcarum Sandbox.

00:00:00 [FARM] Farming 999x Earth Verum Proof at Vestige of Truth.
00:00:00 ####################
00:00:00 ####################

00:00:00 [ARCARUM.SANDBOX] Now beginning navigation to Zone Goliath...

00:00:00 [DEBUG] Starting process to find the HOME header image...
00:00:01 [DEBUG] Match found with 0.991 >= 0.8 at Point {20.0, 103.0} using scale: 1.0.
00:00:01 [DEBUG] Current location confirmed to be at HOME.
00:00:01 [INFO] Bot is already at the Home screen.

00:00:01 [DEBUG] Starting process to find the HOME_MENU button image...
00:00:03 [DEBUG] Match found with 0.92 >= 0.8 at Point {931.0, 84.0} using scale: 1.0.
00:00:03 [DEBUG] Found the HOME_MENU at {1004.0, 135.0}.
00:00:03 [DEBUG] Now attempting to find and click the "arcarum_banner" button.

00:00:03 [DEBUG] Starting process to find the ARCARUM_BANNER button image...
00:00:05 [DEBUG] Match not found with 0.14 not >= 0.8 at Point {445.0, 1879.0} using scale 1.0.
00:00:05 [WARNING] Failed to find the ARCARUM_BANNER button.
00:00:06 [DEBUG] Now attempting to find and click the "arcarum_banner" button.

00:00:06 [DEBUG] Starting process to find the ARCARUM_BANNER button image...
00:00:07 [DEBUG] Match found with 0.987 >= 0.8 at Point {330.0, 1825.0} using scale: 1.0.
00:00:07 [DEBUG] Found the ARCARUM_BANNER at {542.0, 1856.0}.
00:00:07 [DEBUG] Adding an additional delay of 0.956s...

00:00:10 [DEBUG] Starting process to find the ARCARUM_SANDBOX header image...
00:00:10 [DEBUG] Match not found with 0.352 not >= 0.8 at Point {537.0, 2039.0} using scale 1.0.
00:00:11 [DEBUG] Match not found with 0.352 not >= 0.8 at Point {537.0, 2039.0} using scale 1.0.
00:00:12 [DEBUG] Match found with 0.998 >= 0.8 at Point {369.0, 96.0} using scale: 1.0.
00:00:12 [DEBUG] Current location confirmed to be at ARCARUM_SANDBOX.
00:00:14 [DEBUG] Now attempting to find and click the "arcarum_sandbox_zone_goliath" button.

00:00:14 [DEBUG] Starting process to find the ARCARUM_SANDBOX_ZONE_GOLIATH button image...
00:00:16 [DEBUG] Match not found with 0.79 not >= 0.8 at Point {42.0, 1170.0} using scale 1.0.
00:00:19 [DEBUG] Match not found with 0.79 not >= 0.8 at Point {42.0, 1173.0} using scale 1.0.
00:00:20 [DEBUG] Match not found with 0.79 not >= 0.8 at Point {42.0, 1173.0} using scale 1.0.
00:00:22 [DEBUG] Match not found with 0.79 not >= 0.8 at Point {42.0, 1173.0} using scale 1.0.
00:00:24 [DEBUG] Match not found with 0.79 not >= 0.8 at Point {42.0, 1173.0} using scale 1.0.
00:00:24 [WARNING] Failed to find the ARCARUM_SANDBOX_ZONE_GOLIATH button.
00:00:26 [ARCARUM.SANDBOX] Now determining if bot is starting all the way at the left edge of the Zone...
00:00:26 [DEBUG] Now attempting to find and click the "arcarum_sandbox_left_arrow" button.

00:00:26 [DEBUG] Starting process to find the ARCARUM_SANDBOX_LEFT_ARROW button image...
00:00:28 [DEBUG] Match not found with 0.619 not >= 0.8 at Point {440.0, 1289.0} using scale 1.0.
00:00:28 [ARCARUM.SANDBOX] Left edge of the Zone has been reached.
00:00:28 [ARCARUM.SANDBOX] Now beginning navigation to Vestige of Truth inside Zone Goliath...
00:00:28 [DEBUG] Now attempting to find and click the "arcarum_sandbox_right_arrow" button.

00:00:28 [DEBUG] Starting process to find the ARCARUM_SANDBOX_RIGHT_ARROW button image...
00:00:29 [DEBUG] Match not found with 0.653 not >= 0.8 at Point {473.0, 742.0} using scale 1.0.
00:00:31 [DEBUG] Match not found with 0.653 not >= 0.8 at Point {473.0, 742.0} using scale 1.0.
00:00:32 [DEBUG] Match not found with 0.653 not >= 0.8 at Point {473.0, 742.0} using scale 1.0.
00:00:34 [DEBUG] Match not found with 0.653 not >= 0.8 at Point {473.0, 742.0} using scale 1.0.
00:00:36 [DEBUG] Match not found with 0.653 not >= 0.8 at Point {473.0, 742.0} using scale 1.0.
00:00:36 [WARNING] Failed to find the ARCARUM_SANDBOX_RIGHT_ARROW button.
00:00:37 [DEBUG] Now attempting to find and click the "arcarum_sandbox_right_arrow" button.

00:00:37 [DEBUG] Starting process to find the ARCARUM_SANDBOX_RIGHT_ARROW button image...
00:00:38 [DEBUG] Match not found with 0.653 not >= 0.8 at Point {473.0, 742.0} using scale 1.0.
00:00:40 [DEBUG] Match not found with 0.653 not >= 0.8 at Point {473.0, 742.0} using scale 1.0.
00:00:42 [DEBUG] Match not found with 0.653 not >= 0.8 at Point {473.0, 704.0} using scale 1.0.
00:00:44 [DEBUG] Match not found with 0.653 not >= 0.8 at Point {473.0, 704.0} using scale 1.0.
00:00:45 [DEBUG] Match not found with 0.653 not >= 0.8 at Point {473.0, 704.0} using scale 1.0.
00:00:45 [WARNING] Failed to find the ARCARUM_SANDBOX_RIGHT_ARROW button.

00:00:46 [DEBUG] Starting process to find the HOME_MENU button image...
00:00:48 [DEBUG] Match not found with 0.495 not >= 0.8 at Point {931.0, 49.0} using scale 1.0.
00:00:49 [DEBUG] Match not found with 0.495 not >= 0.8 at Point {931.0, 49.0} using scale 1.0.
00:00:52 [DEBUG] Match not found with 0.54 not >= 0.8 at Point {931.0, 64.0} using scale 1.0.
00:00:54 [DEBUG] Match not found with 0.566 not >= 0.8 at Point {931.0, 64.0} using scale 1.0.
00:00:56 [DEBUG] Match not found with 0.663 not >= 0.8 at Point {931.0, 75.0} using scale 1.0.
00:00:56 [WARNING] Failed to find the HOME_MENU button.
00:00:56 GAA encountered an Exception: java.lang.NullPointerException
at com.steve1316.granblue_automation_android.bot.game_modes.ArcarumSandbox.navigateToM>ission(ArcarumSandbox.kt:95)

at com.steve1316.granblue_automation_android.bot.game_modes.ArcarumSandbox.navigateToMission$default(ArcarumSandbox.kt:75)
at
com.steve1316.granblue_automation_android.bot.game_modes.ArcarumSandbox.navigateToZone(ArcarumSandbox.kt:197)
at com.steve1316.granblue_automation_android.bot.game_modes.ArcarumSandbox.start(ArcarumSandbox.kt:226)
at com.steve1316.granblue_automation_android.b>ot.Game.startFarmingMode(Game.kt:1095)
at com.steve1316.granblue_automation_android.utils.BotService$onCreate$1$onTouch$1.invoke(BotService.kt:132)
at com.steve1316.granblue_automation_android.utils.BotService$onCreate$1$onTouch$1.invoke(BotService.kt:110)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)

Now saving Message Log to file named "log @ 2022-02-14 20:17:11" at /storage/emulated/0/Android/data/com.steve1316.granblue_automation_android/files/logs

Twitter api

266487381_1012770212640579_1480697141793643652_n

Issue with connecting through the twitter api in android. Any idea how to fix this?

Tested on python version and it works well.

Scripts?

Scripts seem to work fine at first, but when the raid finishes the bot crashes.

Here is a screenshot of the error i get. Also one from the script i'm using. Don't know if error is on my part.
Screenshot_20210518-232844_GAA
Screenshot_20210518-233113_Cx File Explorer

back again! bluestacks not working??

image

hi ! im using bluestacks 4 and the bot doesn't seem to be working? whenever i try to use it it just moves gbf around and then crashes. before it was because of the scale which i changed from 1.0 to 0.59 like it recommended but now it shows the error in the picture which also happened before i turned on the option to enable home screen test

also it freezes completely at start on bluestacks 5 </3

Bot is not clicking the "Auto" button after attacking

Not sure why, I just click start and open skyleap, all works fine and it even click the "Attack" Button but not the "Auto" button
but the Overlay color still red so if I finish the battling myself it will try to replay the battle

EDIT:
I'm using bluestack 5 in case you wondering

image

NM100

App works very well, but when you choose NM 100 it hangs at the selection screen.

Wrong mission name formatting

00:00:00 Device dimensions: 1920x1080
00:00:00 [FARM] Starting Farming Mode for Quest.
00:00:00 [FARM] Farming 5x Swirling Amber at The Fruit of Lumacie.
00:00:00 [QUEST] Now beginning process to navigate to the mission: The Fruit of Lumacie...
00:00:00 [INFO] Bot is already at the Home screen.
00:00:00 [QUEST] Bot is currently on the correct island.
00:00:04 [WARNING] Failed to confirm the bot location at YOU_RETREATED_FROM_THE_RAID_BATTLE.
00:00:06 [QUEST] Moving to Chapter 13 (39/52) node...
00:00:07 [QUEST] Now bringing up the Summon Selection screen for "The Fruit of Lumacie"...
00:00:09 GAA encountered an Exception: java.io.FileNotFoundException: buttons/the_fruit_of_lumacie.webp
    at android.content.res.AssetManager.nativeOpenAsset(Native Method)
    at android.content.res.AssetManager.open(AssetManager.java:752)
    at android.content.res.AssetManager.open(AssetManager.java:729)
    at com.steve1316.granblue_automation_android.utils.ImageUtils.getBitmaps(ImageUtils.kt:433)
    at com.steve1316.granblue_automation_android.utils.ImageUtils.findButton(ImageUtils.kt:582)
    at com.steve1316.granblue_automation_android.utils.ImageUtils.findButton$default(ImageUtils.kt:556)
    at com.steve1316.granblue_automation_android.bot.Game.findAndClickButton(Game.kt:257)
    at com.steve1316.granblue_automation_android.bot.Game.findAndClickButton$default(Game.kt:203)
    at com.steve1316.granblue_automation_android.bot.game_modes.Quest.navigate(Quest.kt:733)
    at com.steve1316.granblue_automation_android.bot.game_modes.Quest.start(Quest.kt:758)
    at com.steve1316.granblue_automation_android.bot.Game.startFarmingMode(Game.kt:1107)
    at com.steve1316.granblue_automation_android.utils.BotService$onCreate$1$onTouch$1.invoke(BotService.kt:132)
    at com.steve1316.granblue_automation_android.utils.BotService$onCreate$1$onTouch$1.invoke(BotService.kt:110)
    at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30) 

Bring over changes from GA v1.9.0

Port over the following changes from the PC version of v1.9.0 to this Android version:


steve1316/granblue-automation-pyautogui#141 - Add support for the remaining leftover high difficulty raids.

steve1316/granblue-automation-pyautogui#142 - Fix Meat Farming navigation due to new UI changes.

steve1316/granblue-automation-pyautogui#143 - Adjust scrolling behavior when looking for Quest mission on 1080p screens.

Gold chest opening for replicard sandbox by @KoiKomei in steve1316/granblue-automation-pyautogui#139

GW not working

Hi, it seems like the app isn't working on current gw possibly because they change the system from using meat to bambo
Screenshot_20220115_211720_6948ba2d6cf6960c4526b24e4863ae4e

Bot crash when pressing Stop button

Possibly found the reason why the bot sometimes crashes when the Stop button is pressed using the Flipper debugging tool. Also need to implement solution to the framework as well.

FATAL EXCEPTION: main

java.util.ConcurrentModificationException

FATAL EXCEPTION: main
Process: com.steve1316.granblue_automation_android, PID: 16939
java.util.ConcurrentModificationException
	at java.util.ArrayList$Itr.next(ArrayList.java:860)
	at com.steve1316.granblue_automation_android.utils.MessageLog$Companion.saveLogToFile(MessageLog.kt:92)
	at com.steve1316.granblue_automation_android.utils.BotService.performCleanUp(BotService.kt:234)
	at com.steve1316.granblue_automation_android.utils.BotService.performCleanUp$default(BotService.kt:230)
	at com.steve1316.granblue_automation_android.utils.BotService$onCreate$1.onTouch(BotService.kt:182)
	at android.view.View.dispatchTouchEvent(View.java:15072)
	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3923)
	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:3597)
	at android.view.View.dispatchPointerEvent(View.java:15335)
	at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:7680)
	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:7453)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6788)
	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6845)
	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6811)
	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:7009)
	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6819)
	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:7066)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6792)
	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6845)
	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6811)
	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6819)
	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:6792)
	at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:10220)
	at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:10068)
	at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:10024)
	at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:10352)
	at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:259)
	at android.os.MessageQueue.nativePollOnce(Native Method)
	at android.os.MessageQueue.next(MessageQueue.java:335)
	at android.os.Looper.loopOnce(Looper.java:186)
	at android.os.Looper.loop(Looper.java:313)
	at android.app.ActivityThread.main(ActivityThread.java:8641)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:567)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1133)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.