Coder Social home page Coder Social logo

mibho / autoclient Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 6.67 MB

external Python game bot using OpenCV (template matching) and adb to auto-complete quests in a mobile MMORPG on NoxPlayer emulator.

Python 100.00%
adb android android-automation android-debug-bridge android-emulator androiddebugbridge bluestacks bluestacks-android-emulator nox-player

autoclient's Introduction

06/22/23 - basically abandoned project and making it public. it's all scuffed and idk if it even works...

any "useful" tidbits will be in: 1) dumpsysparse 2) processTools 3) BotTools and maybe NoxClientHandler and NoxClientManager

hope this helps anyone interested in automating stuff via adb :)


autoclient

WIP 1st push

NOTE: code structure/design for autoDB, BotFunctionTools, and BotFunctions are absolute garbage, as they were (still are) WIP. The logic of this entire bot has been overhauled several times and maintained solely by me. I refined the core logic so many times, it's almost at an acceptable state (after cleaning ofc). I was keeping a log of updates every now and then on a discord server I made to keep track of this project. In hindsight, I should've just done everything on github <_> Discord logs will be included to provide insight on how I was approaching design/implementation problems.

Brief details regarding each .py file:

dumpsysparse - automatically scan for proper input device required for ADB commands in Nox.

processTools - use win32 API to detect running instances of Nox client

NoxClientHandler - handles initializing ADB and manages state of client (ie, is client id_x running? if not, open it for them) [ideal end goal of this project is to just "set it and forget it". if nox client freezes/crashes, Auto will restart it and handle it]

NoxClientManager - auto-detect every running instance of Nox and correctly match each client w/ their respective port IDs (required for ADB). Supports multi-client.

autoDB - use sqlite3 to store/retrieve data regarding each client (in-game account stats,

BotData - currently accessing data by having the pngs locally in same directory. Once all the img templates are collected, they will be converted into base64 strings. (ie, it'll be a standalone .exe thatll run w/o needing extra files on a system [via py2exe])

BotTools - img processing + comparisons and implementations of certain ADB commands to be used by the bot.

BotFunctionTools - consists of functions pertaining to the game and those are put together in BotFunctions and make up a bot feature.

BotFunctions - functions that each represent a feature of the bot: (eg: autofame, autoquest, autocompletemissions, etc)


constants gamestatus coords ROIcoords

the above files are related to game data used in BotFunctionTools.

autoclient's People

Contributors

mibho avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

123456789zws

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.