linus-jansson / btd6farmer

A tool to make autonomous macros in Bloons Td 6. Relies on OCR and template matchmating for navigation. Made in python
https://discord.gg/qyKT6bzqZQ
MIT License
32 stars 11 forks source link

Some upgrades are not bought thus causing game to lose #21

Closed aranthel09 closed 1 year ago

aranthel09 commented 2 years ago

Stage starts normally. Both monkeys, subs and hero are placed. However right after they're placed sometimes the bot opens a tower menu but doesn't buy any upgrade and close the tab afterwards.

After checking Instructions I found that "14" is not being executed.

"14": [ { "TOWER": "SUBMARINE", "UPGRADE": "0-0-1", "UPGRADE_DIFF": "0-0-1", "TARGET": null, "TARGET_POS": null, "POSITION": [1452, 922], "ROUND_START": false } ],

Am I missing something like turning auto start off? Or maybe my extra 200 money at the beggining is causing it to fail?

Additional info:

Some upgrades after the one mentioned are not bought aswell. Tried turning off monkey knowledge but to no avail.

Screen size: 1920x1080 Monitor: 1920x1080 59.9hz Windows 10

linus-jansson commented 2 years ago

Am I missing something like turning auto start off? Or maybe my extra 200 money at the beggining is causing it to fail? No that shouldn't be a issue..

Will check it out soon, thanks for sharing!

linus-jansson commented 2 years ago

Hmm after testing, with no MK. Round 14 is being executed on my end..

On what round are you losing the game? Also were there any other rounds that you experienced weirdness from the bot?

aranthel09 commented 2 years ago

14, 21 and 22 are not executed and I lose on 23. Bot opens the menu but doesn't buy the upgrades.

Navigation to the map works flawlessly. Towers placement too. Weirdness starts are round 14 when bot tries to buy 0-0-1 for sub but fails. 1-0-0 (15) and 2-0-0 (17) are executed.

linus-jansson commented 2 years ago

Could you try with the latest release to see if the issue is still present?

aranthel09 commented 2 years ago

Tried with latest release but the problem still persists. 14 is still not being executed. Bot opens the sub upgrade menu but doesn't buy 0-0-1

linus-jansson commented 2 years ago

I've been working on some features in PR #25. Mostly a rework of the instruction system and also some other changes..

Would it be possible for you to try out the Dev branch to see your problems persist and as I can't find a way to reproduce this?

If you try it out could you add --debug as an option into the run.bat file and paste the output here if something isn't working correctly?

aranthel09 commented 2 years ago

Debug using the dev branch: DEBUG#21.zip

Also attached the copy of CMD log since I couldn't find where it was located.

Debug using main branch: DEBUG#21-Main.txt

Even though it says every instruction was executed, 14, 21 and 22 weren't. Some others weren't too, thus causing me to lose in round 33.

linus-jansson commented 2 years ago

did this happen on both branches?

aranthel09 commented 2 years ago

Only on main. Dev didn't work for me; it selects the map but doesn't execute anything once inside the game.

linus-jansson commented 1 year ago

I am working on the later issue with the bot not executing anything & also looking into the issue of the bot not being accurate on detecting some rounds..

Will however not be fixed on the old version