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
31 stars 11 forks source link

new getRound function etc... #80

Open mirko93s opened 1 year ago

mirko93s commented 1 year ago

It reads the round value directly from the memory so it is 100% reliable unlike ocr which breaks often in some maps. I didn't test every possible scenario, but it was working fine (starting,/restarting games)

linus-jansson commented 1 year ago

Looking good 👀 why I didn’t implement something like this in the beginning I wonder. However, it is likely that it will break during the next update due to patches or maybe not.

Have you looked at pattern scanning and how that works in Python?

mirko93s commented 1 year ago

Idk if it will break, but it is easy to update tho...

mirko93s commented 1 year ago

I have some really old cheat engine tables (coded for v28) and they still read the round in the latest game version, so I hope that it won't break with future updates. Anyway you can get the memory addresses in a couple of minutes.

mirko93s commented 1 year ago

The failing check happens because pywin32 can't be installed on linux obviously, you should change the workflow to use windows since the bot currently runs only on windows

mirko93s commented 1 year ago

latest game update broke the memory address I was using