Fga: Auto Retrieve Silver EXP from the Gift Box

Created on 14 Sep 2020  路  24Comments  路  Source: Fate-Grand-Automata/FGA

I saw that you said that you won't implement the Auto Gift Box feature from FGOLua due to missing Text Recognition but I was wondering if it's possible to make it automatically retrieve Silver EXP cards of any quantity since that is image recognition and not text. Great app either way!

enhancement

All 24 comments

Auto collection of the xps shouldn't be difficult to implement without the need for OCR. You can just use images of the x1, x2, x3, and x4 (assuming people generally want to keep their x5+s) and have it look for those and the XP designs on the far left. Shouldn't be too difficult to implement, though I haven't done it in the fgo_lua scripts myself yet.

I was going to make this issue! Thanks for doing that.

You can just use images of the x1, x2, x3, and x4

I was thinking of doing the same but we need blank space to the right of these images or x1 might also match with x10 or x100.

Yes, I don't think that should be an issue? Here we see that there is nothing to worry about in the space past the x1 and x2 (there are occasional x20's we gotta be mindful of as well)

https://cdn.discordapp.com/attachments/579639097388433448/755328343121068072/oie_18fx5LVDlNLU.png

We can even increase the space a bit just to be safe, and increase the similarity threshold (still haven't looked through the code to see how this works, but I assume this version of the script has a feature like this)

Yes, I don't think that should be an issue?

Not an issue. Just wrote because it was an important case to consider. Yeah, also x20.

Yes, different similarities can be used for different cases, but I think the default value might just work as it is if the empty space is wide enough.

Agreed.

Hey, can someone get me some images.
Keep all images of full FGO screen.

  • x4
  • x5, x10, x20, x100 would help in testing.

I'm planning to do it a bit differently from the script in Lua. Instead of asking user for a ClickCount, we'll set it to 99, since I think that's the maximum we can accept at one time.
We'll track the scrollbar to know when we need to stop. Or if we hit 99 earlier.

I'll try to get the script ready by 1-2 days so I can test it out when I actually have something in my present box.

Ap refilled for 1 run:

Screenshot_2020-09-15-13-48-17-73_577bcc70c040536a6d306ef99c704547
Screenshot_2020-09-15-13-48-25-73_577bcc70c040536a6d306ef99c704547

Other found on internet:
Screenshot_20181121-105115 1
EL09HmoWoAE3qB0

Screenshot_20200915-102334
Screenshot_20200915-102344
Screenshot_20200915-102551
Screenshot_20200915-102557

Here's 1 to 4, 10, 50 and 100.

Gilfest didn't start yet in kr but I do have images of some exp cards.

Screenshot_20200915-180943.jpgScreenshot_20200915-180953.jpgScreenshot_20200915-180958.jpg

1, 2, 50, 100

@ScathachSkadi the number font is different from NA. So, does the Max skill option work on KR?

Nevermind, the skill level font is same

Screenshot_20200915-182244.jpg
Font for that is the same.

I think TW has the same font as JP and NA? I got some images.

Screenshot_1600162254
Screenshot_1600162267
Screenshot_1600162272

@the3dsandwich Seems to have a slight difference. I'll have to check though

Here's NA gold exp x5 and x6 as well as silver exp x100
Screenshot_20200915-130135
Screenshot_20200915-130315
Screenshot_20200915-130336

Okay, so got it working for NA and JP.
The images for x1, x2, x3, x4 are included in the app.
Both JP and NA work with the same images.

I'm missing x3, x4 for KR and x1, x2 for TW.

Gilfest will start in about 45hours in kr

Screenshot_2019-09-12-19-26-23.png

I found it

Super excited for this update!
x1 and x2 for TW:

Screenshot_1600251630

Screenshot_20200916-232109
I did get a screenshot of the silver exp, but it's not 1~4

it should be fine. Silver will be always checked by the script regardless of number.

Oh right. No one actually uses it for leveling up servants when the lottery event is happening.

The feature is pretty much ready.
CI builds available if anyone wants to check: https://github.com/MathewSachin/Fate-Grand-Automata/actions/runs/258058166

Didn't do the scrollbar check part, that's was just a weird idea I had.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

the3dsandwich picture the3dsandwich  路  7Comments

sleeping-player picture sleeping-player  路  4Comments

MathewSachin picture MathewSachin  路  9Comments

calamity1010 picture calamity1010  路  8Comments

sleeping-player picture sleeping-player  路  5Comments