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

Collection Events #32

Closed jdmagic closed 1 year ago

jdmagic commented 2 years ago

Hey, so not sure if this bot is still being actively maintained or not- seems like it's been a bit, but a new collection event has began, and I saw you talked about this in an earlier issue.

So first- a workaround for anyone trying to use the bot right now- disconnect your device (or just the game window, I'm sure that's possible using some software) from the internet while the script runs. The game won't prompt you to open any crates, but you'll still get the progress towards the crates, so when you reconnect to internet you can open all the crates you would have received, all at once.

Next- a more robust solution to be added to the bot. Either a option, or maybe make it default, to instead of clicking the main menu screen after a game finishes, to instead click the freeplay button, then open the pause menu via hotkey, and press restart. Not only does this save time between games, but it prevents ever traveling to the main menu and therefore getting unwanted pop-ups. Honestly, I can't say with 100% certainty the menus haven't been changed, but a bot I used more than a year ago used this method and it worked perfectly at the time- I assume it works the same way now- sadly I can't test right now and I figured I'd write this issue as early as possible so that anyone looking at the issues page can use the temporary solution listed above.

Thanks in advance- doesn't look like you're actively updating this bot, but figured I'd let you know anyways, before you possibly went through the effort of detecting all sorts of different collection event images for different events like you mentioned in that other issue. I think this freeplay-> restart solution could work uniformly across all events with minimal effort required.

mirko93s commented 2 years ago

It still works with the current event tho. The bot is able to open crates for me.

linus-jansson commented 2 years ago

Hey, so not sure if this bot is still being actively maintained or not- seems like it's been a bit, but a new collection event has began, and I saw you talked about this in an earlier issue.

So yeah I have been busy in my personal life and not so active on this..

Next- a more robust solution to be added to the bot. Either a option, or maybe make it default, to instead of clicking the main menu screen after a game finishes, to instead click the freeplay button, then open the pause menu via hotkey, and press restart. Not only does this save time between games, but it prevents ever traveling to the main menu and therefore getting unwanted pop-ups. Honestly, I can't say with 100% certainty the menus haven't been changed, but a bot I used more than a year ago used this method and it worked perfectly at the time- I assume it works the same way now- sadly I can't test right now and I figured I'd write this issue as early as possible so that anyone looking at the issues page can use the temporary solution listed above.

I had been planing on releasing the dev branch to main and had a fix for this, mainly by looking if the diamond case was on the screen which would indicate that there was a collection event active..

Could look into the option of freeplay restarting and not going to the main menu.. Probably could have both implemented..

It's motivating that people are actually using this repository. Will hopefully get the time soon to fix these issues!

jdmagic commented 2 years ago

So yeah I have been busy in my personal life and not so active on this..

Hey, yeah, no problem, I get it, and don't feel any pressure to implement any changes in any amount of time. No worries.

The bot is able to open crates for me.

I was using the dev branch, because the regular branch didn't work for me. It wasn't opening boxes for me. Either way, being able to stockpile them and open them all for a specific monkey is still a nice idea, probably.

linus-jansson commented 2 years ago

Yeah I will look into it as soon as I get the chance!

linus-jansson commented 2 years ago

It still works with the current event tho. The bot is able to open crates for me.

Forgot to reply to this, are you using the dev branch when you are using the bot?

mirko93s commented 2 years ago

Forgot to reply to this, are you using the dev branch when you are using the bot?

No, I'm using the main branch with some changes to adapt it to my needs. I assumed the dev branch was not ready.

linus-jansson commented 1 year ago

This should be done with v1.0.0-pre_release-2!

jdmagic commented 1 year ago

This should be done with v1.0.0-pre_release-2!

Great to hear, thanks so much for the continued development!