38 lines
1.3 KiB
Markdown
38 lines
1.3 KiB
Markdown
AoE Bot
|
|
=======
|
|
|
|
Preparation
|
|
-----------
|
|
|
|
- Install python > 3.8
|
|
- Install these libraries from an administrator terminal (windows):
|
|
- pip install pywin32
|
|
- pip install keyboard
|
|
- pip install pyautogui
|
|
- pip install opencv-python
|
|
- pip install pytesseract
|
|
|
|
|
|
Start
|
|
------
|
|
run aoe_bot.py before starting the game. It will wait for the startscreen and do some standard actions when the game has started:
|
|
|
|
- order 4 villagers
|
|
- assign hotkeys: 1: scout, 2-4: villagers
|
|
- build first house with villagers 1+2
|
|
- build second house with villager 3
|
|
- send scout around the village and around the map
|
|
|
|
After this it will collect screenshots during the game to train data
|
|
|
|
Interesting Links
|
|
------------------
|
|
- [Tutorial video + notes](https://github.com/KianBrose/Image-Recognition-Botting-Tutorial/blob/master/README.txt)
|
|
- [Pyautogui Doc](https://pyautogui.readthedocs.io/en/latest/keyboard.html)
|
|
- [PIL doc](https://pillow.readthedocs.io/en/stable/reference/Image.html)
|
|
- [Draw Image api](https://pillow.readthedocs.io/en/stable/reference/ImageDraw.html)
|
|
- [Draw Image Example](http://effbot.org/imagingbook/imagedraw.htm)
|
|
- [AoE Hotykey editor](https://aokhotkeys.appspot.com/editor)
|
|
- [Structureing your python project](https://python-docs.readthedocs.io/en/latest/writing/structure.html)
|
|
- [Download Tesseract for Windows](https://github.com/UB-Mannheim/tesseract/wiki)
|