btd6farmer icon indicating copy to clipboard operation
btd6farmer copied to clipboard

new getRound function etc...

Open mirko93s opened this issue 1 year ago • 5 comments

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)

mirko93s avatar Jul 14 '23 16:07 mirko93s

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?

linus-jansson avatar Jul 14 '23 22:07 linus-jansson

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

mirko93s avatar Jul 14 '23 22:07 mirko93s

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 avatar Jul 14 '23 23:07 mirko93s

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 avatar Jul 22 '23 07:07 mirko93s

latest game update broke the memory address I was using

mirko93s avatar Jul 26 '23 04:07 mirko93s