Skip to content

Conversation

daminokun
Copy link

This pull request introduces major improvements to the bot's reliability, image matching, user experience, and documentation, especially around ADB (Android Debug Bridge) connectivity and usage. The highlights include robust ADB status checking, refactoring of ADB command execution, enhanced documentation for Windows users, and improved bot logic for image matching and tapping. These changes make the bot easier to set up and less error-prone, especially for new users.

ADB Connectivity Improvements

  • Added src/adb_checker.py with functions to check ADB installation, connected devices, and device communication, including comprehensive status messages and a device wait loop. This allows the bot to verify ADB readiness before running, reducing setup errors.
  • Refactored src/adb_commands.py to use subprocess.run for all ADB commands (tap, keyevent, screen off), with proper error handling and logging for failures/timeouts, improving reliability and debuggability.

Bot Logic and Usability

  • Updated src/bot.py to support skipping ADB checks (for advanced users), implemented frame-skipping via screenshot hashes to avoid redundant actions, and improved image matching/tapping logic to select the best match with y > 296. [1] [2]

Documentation and User Guidance

  • Expanded README.md with detailed Windows setup instructions for adding ADB to PATH, clarified bot startup and connectivity requirements, described new command-line options (--skip-adb-check), and provided updated output examples and troubleshooting tips. [1] [2]
  • Added instructions for customizing the forfeit delay and clarified known issues (e.g., bot not catching Pokémon after encounters).

Platform Tools and CI

  • Added configuration files for platform tools (platform-tools/mke2fs.conf, platform-tools/source.properties) and a GitHub Actions workflow for deploying the Jekyll site to GitHub Pages, including Google site verification. [1] [2] [3]

These changes collectively improve the bot's robustness, make setup easier for new users, and add advanced options for experienced users.

Copilot AI and others added 30 commits September 2, 2025 03:21
…d8d-f1d050139087

Add automatic ADB connectivity checking with improved error handling
Added instructions for adding ADB to system PATH.
This script manages screenshots by limiting their count, generating new filenames, and saving screenshots from an Android device.
Refactor screenshot capturing logic to use screenshot_manager and handle exceptions.
Fix screenshot saving and update variable name.
Add return statement to save_new_screenshot function.
Fix indentation of the while loop in bot.py.
Corrected a comment regarding the screenshot_manager import.
Update condition to check forfeit action position range.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants