Skip to content

wowuz/FGA

 
 

Repository files navigation

Fate/Grand Automata

Forked project to add a simple translation based on Gemini-2.0-flash. By giving proper prompt, the quality of the translation is almost the official translation quality. (Only based on my experience on CN and TW server and my learned-from-anime japanese.)

Features:

  • Uses ML ocr provided by google
  • Uses Gemini-2.0-flash, and configurable api-key and prompt
  • Display an overlay to show the translation
  • Since the ML ocr japanese accuracy is not good enough, it's also an option to send the screenshot directly to LLM api.

Known problem:

  • The ML ocr japanese accuracy is not good enough.
  • Be careful, the api-key is saved as plain text, not safe, too lazy to make it secure.
  • And uses Google AI SDK, which google also claimed no security against api-key leaking.
  • Also not my fault if you find your api token drains in light speed, I myself uses only free account.

To-be improved:

  • Cannot auto stop after story ends, and popup scary warnings after manual stop
  • Didn't find a way to get screenshot without catching the subtitles, and the subtitles will ruin the ocr text recognizing, so the position and size of the subtitle window is fixed to avoid the ocr region.
  • The ocr region are defined in a very untidy way, should defined it along side other locations. But I'm too lazy to do the math.

Unknown:

  • Almost no testing, anyway I like it and am using it

Any comment or contribution is welcome, if you are patient enough to read the shits I wrote. (They are actually mostly written by Gemini though)

CI

Discord Banner 2

Auto-battle app for FGO (Android 7 or later, no need for root on phones).

Download from our website

This is a Kotlin port of FGO-Lua as an Android app with UI for configuration and without a time-limit on use.
It doesn't tamper with the game in anyway and works by looking at the screen and tapping things just like a normal user would do.
It's not made to do the story for you, but to automate the mundane farming.

Having Trouble? See the Troubleshooting Guide first.

Video Guide by @reconman

Watch the video guide

How to Use?

  1. Install from the link given above and launch the app.
  2. Click on Start Service and give all the permissions it asks for.
  3. Open FGO. Now, you can see a button with play icon on it floating on screen.
  4. Go to the node you want to farm.
  5. Press Play to start. The same button can be pressed to pause/stop later.

Check the Troubleshooting Guide first if you face any problems.

How to make/use images of Servant/CE/Friend?

See the wiki page for Support Image Maker.

What about other scripts like Lottery and Friend Gacha?

When you click on the PLAY button, the app detects which script can be run on the current screen and presents it to you.

How does it work?

This is a native Android app written in Kotlin. We use OpenCV for image recognition, Media Projection for taking screenshots and Accessibility Service for clicking/swiping.

Contributing

If you want to contribute, read the Contribution Guide.

Acknowledgements

Like the project? Want to support us?

Buy Me a Coffee at ko-fi.com

Code/doc contributions are surely welcome!

Translations should be edited via https://poeditor.com/join/project/67PXOyBGI0

About

Auto-battle app for F/GO Android

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Kotlin 99.9%
  • Ruby 0.1%