Skip to content

Python Script to reliably farm DOKKAN without supervision

Notifications You must be signed in to change notification settings

akaya0/dokkan-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dokkan Bot

ddmugb2-b79a8d4f-76ba-4005-8e20-4650b661b134

This program connects to an Android device using ADB (Android Debug Bridge), captures screenshots, and processes these images using OpenCV. It includes functionalities for image matching and type/depth/resolution consistency checks.

Requirements

  • Python 3.x
  • OpenCV
  • NumPy
  • adbutils
  • ADB (Android Debug Bridge)

Installation

  1. Install Python from the official website.
  2. Install ADB on your system. Follow the instructions here to set it up.
  3. Clone this repository and navigate to the project directory:
    git clone https://github.com/akaya0/dokkan-bot.git
    cd dokkan-bot
  4. Install the required Python libraries using pip:
    pip install opencv-python-headless numpy adbutils

Usage

  1. Ensure your Android device is connected to your computer with USB debugging enabled.
  2. Choose the level to farm
  3. Run the script:
    python main.py

Troubleshooting

  • Device not found: Ensure that your device is connected and USB debugging is enabled. Run adb devices to check if your device is listed. And check for other adb instances.
  • Templates not recognized: Even though there are error checks your device might need their own templates, replace accordingly. (and post an issue for it so I can check it out)
  • Virtual Environment: I strongly advice using conda/venv, because i got no clue what im actually doing. 🫡❤️

To-Do

  • Tournament: I think the most important one is to add a tournament support, I mean at a normal rate there's no way to beat it otherwise?!

Notes

I'm pretty new to image recognition and such, and this script seems really slow (for just matching grayscales yk). This is most likley because this is using mainly the CPU? I'm currently reading through the opencv docs and I think there are ways to use a dedicated GPU to handle the image processing. So we will see--

Disclaimer

This software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software. Use this script at your own risk.

License

This project is licensed under the MIT License.

Acknowledgments

About

Python Script to reliably farm DOKKAN without supervision

Topics

Resources

Stars

Watchers

Forks

Languages