Skip to content

AlenLU24816/Random-Dice-Auto-Bot-for-BlueStacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Randomdice-monolith-co-op-auto-bot

📌 Overview

This project is an automation bot built with:

  • Python
  • OpenCV
  • ADB (Android Debug Bridge)

It automatically detects the game board and performs swipe actions to attack enemies.


🎯 Features

  • 🎮 Real-time image recognition

  • 🤖 Automatic attack execution

  • 🔄 Dual-mode support:

    • preview (practice mode)
    • run (co-op mode)
  • 🧠 Noise reduction with voting mechanism

  • 💾 Persistent settings via configuration file

  • 🖥️ GUI control panel


🖥️ Environment

  • OS: Windows

  • Emulator: BlueStacks

  • Python: 3.x

  • ADB path example:

    C:\platform-tools\adb.exe
    

⚙️ Environment Setup (Step-by-Step Guide)

This project requires BlueStacks + ADB + Python environment setup before running.


🖥️ Step 1 — Install BlueStacks

  1. Download from the official website: 👉 https://www.bluestacks.com/

  2. Install and launch BlueStacks

  3. Make sure your game can run properly


🔧 Step 2 — Enable ADB (VERY IMPORTANT)

Inside BlueStacks:

Settings
→ Advanced
→ Enable Android Debug Bridge (ADB)

✅ This must be enabled for Python to control the emulator


📡 Step 3 — Get ADB_SERIAL

Method 1 (Recommended)

Open Command Prompt and run:

adb devices

You should see:

List of devices attached
127.0.0.1:5555 device

👉 This means:

ADB_SERIAL = "127.0.0.1:5555"

Method 2 (If nothing shows)

Connect manually:

adb connect 127.0.0.1:5555

Then run again:

adb devices

📁 Step 4 — Get ADB_PATH

ADB is an executable file (adb.exe)

Common location:

C:\platform-tools\adb.exe

👉 So your config should be:

ADB_PATH = r"C:\platform-tools\adb.exe"

If you don't have ADB

Download Android Platform Tools:

👉 https://developer.android.com/tools/releases/platform-tools

Extract and use directly


🐍 Step 5 — Install Python Dependencies

pip install opencv-python numpy mss pygetwindow

🧪 Step 6 — Test ADB Connection

adb devices

✅ Expected output:

127.0.0.1:5555 device

🚀 Step 7 — Run the Program

python main.py

🧠 Common Issues

❌ Device not found

👉 Fix:

adb connect 127.0.0.1:5555

❌ Multiple devices error

👉 Fix:

adb -s 127.0.0.1:5555 devices

Or set in code:

ADB_SERIAL = "127.0.0.1:5555"


❌ Python not recognized

Symptoms

'python' is not recognized...
'pip' is not recognized...

About

Automatically plays Random Dice co-op on BlueStacks by performing swipe attacks for you

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages