Valokoodari / btd6-ahk

An AutoHotkey (v2) script to automate collection events in Bloons TD 6.
MIT License
71 stars 32 forks source link

Adding fix for level up and better samples #20

Closed rafvk closed 3 years ago

rafvk commented 3 years ago

Tested for 12 hours without problems with old parameter on ImageSearch: "*45 ". I had to change timeScale to 1.15 for me to work on every map, even without the level up fix.

Feel free to modify any of my changes and be aware that still there is a small chance to fail on a map due to level up canceling tower placement, but those are very rare to occur and the script can recover from a defeat screen.

Edit: just checked and bloody puddles is broken with the new value of "*65 " on ImageSearch. And I'm receiving an error when I stop the script saying that the map can't be opened.

rafvk commented 3 years ago

At the beginning of the test I was at level 132 and now I'm at 134 and the script was running without problems. I don't know how it would work on slower systems, however, because it is constantly checking for the image. I limited the area of the search to help with performance.