Valokoodari / btd6-ahk

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

Map selection Issue #17

Closed MyronBaby closed 2 years ago

MyronBaby commented 3 years ago

Whenever the bonus reward is on the map #OUCH, it just continues to press "expert" at the bottom like it is searching for which map has the bonus rewards. Closing the script and reopening seems to fix the problem. Any clue what could cause this?

Valokoodari commented 3 years ago

This is caused by how the AutoHotkey image search works but I'll try to adjust it a bit more to at least make this less common.

OreoCupcakes commented 3 years ago

I don't know why, probably due to image transparency, but each bonus icon on each map is slightly different. So for the bot to detect the bonus map, it needs a separate image file of each maps' bonus icon. For me personally, it works just fine on all maps, since I programmed it and tested it for 8 hours straight. It could also be a timing issue with the searching function.