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

Preparation to remove the pyautogui dep #25

Closed linus-jansson closed 1 year ago

linus-jansson commented 2 years ago

Pyautogui is only used atm to find locate pictures on the screen and get the width & height of the monitor. So doing this may reduce the dependency size.. Instead of using pyautogui, Ctypes will be used to get the screen res from the windll. The locateOnScreen methods will be replaced with template matching methods found in BotUtils

This update will also make it easier to create own gameplans and a guide will be included in the README.md on how to make one.

This PR can be considered as version 1.0 release of this bot.

linus-jansson commented 2 years ago

Todos for this PR:

linus-jansson commented 2 years ago

Add fix for #26, #21, #23

linus-jansson commented 2 years ago

gray windows possible fix: https://stackoverflow.com/questions/32560289/displaying-image-without-waitkey

Tiebe commented 1 year ago

@linus-jansson Is this going to be merged?

linus-jansson commented 1 year ago

@linus-jansson Is this going to be merged?

Yes the idea is that this is going to be merged in due time. If you feel like contributing you can use this branch as a base.

Tiebe commented 1 year ago

@linus-jansson Is this going to be merged?

Yes the idea is that this is going to be merged in due time. If you feel like contributing you can use this branch as a base.

Awesome! I was just asking since there haven't been any commits in a while

linus-jansson commented 1 year ago

Im planning on merging this to main and tagging current main with a release. I can’t find any major issues with current status of the dev branch at 1440p and have no real way of testing 1080p at the moment.

So hopefully it will work out of the box with some tweaking on my part otherwise it’ll be possible to resort back to the current main.