Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Meowcolm024/FGO_Battle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FGO_Battle

⚠️THIS PROJECT WILL NO LONGER BE MAINTAINED

Check out FGO-One for the latest version :)

About the project

In short, this project is a auto battle script for the game Fate/Grand Order.
The script mainly consists three parts:

  • interface recognition
  • card priority calculation
  • conducting

The interface recognition part is mainly related to OpenCV, which is the module "cv2"(or opencv-python)
And the algorithm is mainly from this picture
The last part obviously is the part which combine the parts mentioned above

How to use

  1. use the following command to check whether adb is installed

    adb devices
    

    if not, install it via Homebrew

    brew cask install android-platform-tools
    
  2. clone the repository

    git clone [email protected]:Meowcolm024/FGO_Battle.git
    
  3. connect you Android phone with USB Debugging ON, then run "main.py"

Something else

The templates are from Fate/GO(Chinese version), if you're using other versions, please change them QWQ

The coordinates in the script ares based on screenshots from Huawei Mate 10 Pro with a resolution of 2160x1080, you may need to change some parameters if your phone is not this resolution. QAQ
Just run "test.py" then you could get the coordinates of the cards and compare it with the existed data to check whether a modification is needed

Known issues

Recognition may not be 100% correct. Thus, the action the script has taken may not be the best choice(especially in complicated scenarios)

About

An auto-battle script for Fate/Grand Order

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages