![]() *Note: CustomTkinter and EasyOCR need to be pointed to in the Additional Files section.Last updated at 14:00:17 UTC Weekly Help Desk RAGE Loot Thread Trade Thread You may move this folder to wherever you'd like. output/OSRS Bot COLOR folder, and within that folder you can run the OSRS Bot COLOR.exe file. Under the Icon tab, you may point it to the icon file included, or use your own.Ensure the Additional Files paths are correct.Configure the window similarly to the figure below (or import the auto-py-to-exe_settings.json file included in the root of this repository to speed up the process).Run AutoPyToEXE via the terminal command: auto-py-to-exe.In the terminal/cmd, navigate to the directory containing the project.Packaging an Executableĭue to some issues with dependencies, it's not possible to build this project into a single file executable, however, a directory-based executable can be made. Any function that is applicable to more than one bot should be placed in an appropriate abstract class. They only need to know that it will attack the nearest NPC. The user/developer does not need to know how this function works. This function performs many complex tasks: it takes a screenshot, isolates red and green to locate health bars, isolates blue contours to identify NPCs, finds the center pixel of each contour, ensures that pixel isn't a neighbour to a health bar, then clicks it. They should only need to know how to use them.įor example, the RuneLiteBot class might contain a function for attacking the closest NPC - attack_nearest_NPC(). The users/developers should not need to know how these functions work. The goal here is to separate the complex image processing from the bot-writing process. These utilties are used by the abstract bot classes to build more user-friendly functions that everyday bot-writers will understand. These utilties are entirely de-coupled from RuneScape - the functions within them are general (E.g., screenshot a rectangle on screen, isolate a certain color in an image, get the center pixel of an enclosed contour, etc.). This includes various computer vision techniques (color isolation, image searching, optical character recognition, etc.), as well as human-like mouse movements (still in development). ![]() RuneLiteBot Color Isolation Exampleīot Utilities (Computer Vision, OCR, Mouse movements)īehind the scenes, OSBC contains a few utility modules for performing complex processing that bots rely on. By creating a new bot class and inheriting the appropriate parent class, you'll have access to a plethora of tools that'll make your life easier. If you're a developer, this is what you'd be working with. E.g., banking, loading bank presets, teleporting via custom interfaces, etc. These classes will have game-specific functionality. Every private server is different - and although they may share the RuneLite client, that does not mean their UI elements will be in the same place as other games. Each game needs a dedicated parent class that inherits either Bot or RuneLiteBot. The blue boxes represent classes for specific games. E.g., the ability to fetch the coordinates of all tagged objects on screen. The RuneLiteBot class contains botting functionality that all RuneLite-based games will have. This includes the ability to start, stop, and pause the bot, log messages, update progress, and so on. The Bot class contains functionality and properties required by all bots. This allows developers to focus on the logic loop and not the implementation details. OSBC utilizes abstraction to simplify the development of new bots. Instead of forcing users to configure their bots via Notepad, OSBC allows developers to create option menus and parse user selections with ease. ![]() For developers, this means that all you need to do is write a bot's logic loop, and the UI is already built for you. OSBC offers a clean interface for configuring, running, and monitoring your bots. Gone are the days of manually running your bot scripts from an IDE. For more developer information, see the official documentation. To contribute code, please create feature branches off of the Development branch, and submit pull requests to it with complete features. If you are getting an OpenCV error, try downgrading its version.Run OSRS Bot COLOR.py (./src/OSRS Bot COLOR.py).Open the project folder in your IDE (VS Code preferred).Activate the newly created virtual environment.\env\Scripts\activate.Open the repository folder in a terminal window.Bot Utilities (Computer Vision, OCR, Mouse movements).⭐ If you like this project, consider leaving a Star This project also contains a library of tools for streamlining the development of new bots, even for inexperienced developers. OSRS Bot COLOR (OSBC) is a desktop client for controlling and monitoring color-based automation scripts (bots) for OSRS and private server alternatives.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |