Task:Tohsaka is a collection of automation/ analysis tools for the mobile game Fate Grand/Order. Works primarily on Windows. Requires the BlueStacks emulator since certain inputs are emulator specific. This is a personal project to automate farming during lottery events, and created in a way to prevent account banning due to 3rd party software being used. All scripts in this repo mimick player inputs externally, and thus cannot be traced.
The features of this repo include:
- quick team automation
- lotto box collection
- smart farming using deep learning
- GUI for 3 turn quick team automation
- GUI for lotto box collection
- Sets window size and location of BlueStacks on Windows so coords only need to be obtained once.
To use anything in the repo, first install the depencies:
cd
into the src/ folder- run
pip install -e .
in the terminal
Additionally, you need:
- FGO emulated on BlueStacks
Recommended to install above package dependencies using an Anaconda environment.
Once dependencies are installed, run the dantes quick team loop GUI inside the env with:
python scripts/dantes_quick.py
run the lotto box clicker GUI with:
python scripts/lotto_clicker.py
The current implementation requires a specific set of screen coordinates/ screenshots for in-game buttons. These will have to differ machine to machine due to varying screen size and resolutions. The coordinate information is stored in mac_coords and wind_coords respectively, and the images are stored in mac_imgs and wind_imgs.
For more information on which coordinates need to be obtained and stored in what order, refer to docs.
The dantes quick loop instructions are stored on a per turn basis in turn<#>_cmds.txts. Txts for all 3 turns are required, and a 3 turn farming setup is assumed based on the nature of quick teams.
For more information on setting up the turn command txts, refer to docs.
If you run scripts/src/gameControl.py, it will continuously print out your mouse location to console, and let you check the button coordinates. A more user friendly, GUI based system to get coordinates in WIP.