Valokoodari / btd6-ahk

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

dark dungeons issues with tower placement #108

Closed autumn876 closed 1 year ago

autumn876 commented 1 year ago

title, for whatever reason snipers are not placed; making the script get stuck on this map during collection events. It looks like the round is somehow mistakenly offset by 10 rounds, as a 0-2-2 sniper would sometimes be deployed on round 40. nothing seems obviously wrong however

autumn876 commented 1 year ago

UPDATE: FIXED

had to do some fuckery but I found out it was because the Tower::Upgrade fn clicked on the same spot the tower was placed, rather than pressing the escape key, leading to there being a visual offset in the round count. fixed by changing "Click(x,y)" to "Send("{vk1B}")" at the end of the upgrade function.

Not closing issue quite yet but feel free to once it is patched

Valokoodari commented 1 year ago

Thank you. I wasn't able to replicate this issue on any of my machines but this should now be fixed by https://github.com/Valokoodari/btd6-ahk/commit/64b608425121879b5d0d96c4e500621ea817637b.