linus-jansson / btd6farmer

A tool to make autonomous macros in Bloons Td 6. Relies on OCR and template matchmating for navigation. Made in python
https://discord.gg/qyKT6bzqZQ
MIT License
32 stars 11 forks source link

❗Before opening issue: ImportError: No module named mss... #27

Closed linus-jansson closed 1 year ago

linus-jansson commented 2 years ago

With the next release of the bot (#25). Pyautogui will be removed as a dependency and mss will be added causing the bot to fail on runtime if you don't have it installed. To fix this please run Install_Requirements.bat to refresh the dependencies needed for the bot if you are getting ImportErrors.

Why?

Earlier in development I used pyautogui for sending keys and clicking with the mouse. But I had issues with the clicks and keys not being registered in game. See this for explanation.

So I switched over to the mouse & keyboard lib to handle this problem. The only thing that I really needed pyautogui for now was locating stuff on screen. I thought that was quite unneccesary to have a navigation lib just for locating buttons on screen. So with PR the next release (#25) I have built that into the bot and replaced the pyautogui functions that were used..