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

Could you add a bot for impoppable #9

Closed Tiebe closed 2 years ago

Tiebe commented 2 years ago

I'm really struggling to beat dark castle impoppable, could you add a bot for it?

Shaksos commented 2 years ago

the bot here is able to do it if you manually edit the coordinates, I did some maths for mine and made some more entries myself. You should also edit instructions to place the first towers a bit before round 6, unless you feel like handling it manually to round 6

Tiebe commented 2 years ago

When I try to run it it starts, places 1 dart monkey and 1 monkey sub and then presses escape, do you know why this is? Or would you be able to share your code?

Tiebe commented 2 years ago

And @Shaksos impoppable also starts at round 6 right?

Shaksos commented 2 years ago

the only thing i really changed was where the bot would select the game mode. in Static.py there's a list of button positions. By default, the bot uses the CHIMP_MODE. you can choose here, if you want to edit this entry, or make a new entry and change bot.py to use the new entry instead. for the values, i used the info from the other button positions and calculated the position in pixels. Hope this helps

And @Shaksos impoppable also starts at round 6 right?

I'm unsure, the only thing i noticed is that the bot does not place anything before round 6

linus-jansson commented 2 years ago

And @Shaksos impoppable also starts at round 6 right?

Impoppable & Chimps start both on round 6. You should basically just need to do as Shaksos says by changing the CHIMPS_MODE cordinates in static.py as CHIMPS are more restricted (Monkey knowledge etc).

In the repo there is a pos.py which you can run to see the cordinates of the button if you feel like changing it.

When I try to run it it starts, places 1 dart monkey and 1 monkey sub and then presses escape, do you know why this is? Or would you be able to share your code?

Are you still experiencing this?

Tiebe commented 2 years ago

Are you still experiencing this?

Yep, after it sets the first dart monkey to target strong it pauses the game. Seems to be in the middle of round 7, with around 200$

Edit: looks like it's trying to place the second dart monkey, but doesn't have enough money yet. Do I need to have specific monkey knowledge for this to work?

Edit 2: It did seem to work after enabling the +200 starting cash monkey knowledge. This should probably be mentioned in the README.

Edit 3: Nevermind, in impoppable towers cost 11% more than in chimps, which is why it doesn't work