CardConqueror is an automated card game program for Ragnarok Online Origin.
The program requires the following environment:
- Python 3.9.13
- Windows 10 x64
- Ragnarok Online Origin
git clone git@github.com:skyksl066/CardConqueror.git
cd CardConqueror
pip install -r requirements.txt
The requirements.txt file includes the following modules:
- opencv-python
- pyautogui
- pillow
- pywin32
- win32gui
- keyboard
python app.py
Before running the script, make sure to open the game and enter the card game mode. You should see the words "Start Challenge" on the screen.
If you want to interrupt the program, please press F12.
- If the program cannot locate the card coordinates, use the LocateCards(0.95, r'img/card.bmp') function to obtain the card coordinates and replace the coordinates in coords.
- To troubleshoot image recognition issues caused by environmental discrepancies, try using the LocateCards function to reposition the cards and update the coords variable with the new coordinates. Replace the images in the img folder if accurate coordinates cannot be obtained, and manually input the missing coordinates if all else fails. Note that the program will automatically disconnect and start a new game in an infinite loop after flipping all the cards. These steps can improve the performance of the Card Conqueror application by resolving issues with card position recognition.
- If the program cannot click on the "Start" or "Exit" button, replace the corresponding image file in the img folder.
- If you encounter the error "pygetwindow.PyGetWindowException: Error code from Windows: 5 - Access is denied", right-click and run the program as administrator.
- For any other issues, please leave a message in the Issues section, and I will try my best to respond as soon as possible.
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.