Valokoodari / btd6-ahk

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

Monkeys Can't Be Placed (Works On Some Maps Broken On Others) #52

Closed MrRyno123 closed 1 year ago

MrRyno123 commented 2 years ago

It tries to put monkeys in places where they can't be placed. So far this has happened on sanctuary and ravine but I haven't tried all of the maps yet so it could be more.

AfroBob commented 2 years ago

The problem seems to be with Ravine, the image to identify the map was the issue for me. There are fireworks in the current event that aren't in the picture which caused it to load the wrong map script.

I replaced it and that fixed it for me. (see bellow) (I got the speed set to 1.20 if that matters.) it's been running fine for a couple of hours now.

MrRyno123 commented 2 years ago

Yep, that did it. Thanks

MrRyno123 commented 2 years ago

For some reason now its using the ravine script on every map. I tried retaking the snips but it doesn't change anything.

AfroBob commented 2 years ago

Maybe your new image is to "general", this is my new snap for ravine: ravine

MrRyno123 commented 2 years ago

Ok that seems to work. Hopefully it’ll work for all the maps this time

FlamingNinja42 commented 2 years ago

I'm also having some issues with ravine, even with a different image (the one from AfroBob), it occurs to me that quite a bit of the confetti from the July event seems to cross that section of the map, maybe that's also causing this issue.

kwalk123 commented 2 years ago

A more reliable way to do this for maps would be a separate search image function with coordinates -- assuming there are coordinates on every map that do not have animation. This would be a faster search without having to scan the full screen, more reliable due to not scanning the full screen which sometimes finds matches where it shouldn't, and would enable looping until the map is found to handle confetti, falling leaves, etc.

Valokoodari commented 1 year ago

Todo

Valokoodari commented 1 year ago

The map recognition has now been updated.