Giter Site home page Giter Site logo

Comments (6)

MoonstarCoding avatar MoonstarCoding commented on May 28, 2024

Are you attempting to run the script from menu? If so, it will never work. You must have launched the map already. From there, you start the script for the map you are currently in and it should begin if configured.

from btd6_autoplay.

remyvanlis avatar remyvanlis commented on May 28, 2024

I see, thanks for notifying me on that one. However, I still receive the same error:

image

I tried changing the index on line 61 from [1] to [0], breaking the progress bar, just so it won't die at least. That doesn't help either, not really sure what I'm still doing wrong here

Extra info:
Python version: 3.10.2
Tesseract v5.1.0.20220510
Windows 11 22H2
3 monitors installed, 2 disabled to ensure tesseract doesn't get confused

from btd6_autoplay.

remyvanlis avatar remyvanlis commented on May 28, 2024

Alright, so it started moving the mouse once I changed my resolution to 1080p. It's not even getting close to actually placing something though, what is the desired resolution?

from btd6_autoplay.

remyvanlis avatar remyvanlis commented on May 28, 2024

well, been busy for a bit. Apparently pygui can't press buttons on windows 10 and 11 (at least, not for me and at least one other person) - so we replaced it. Also thought it was fun to add a timer and something that allows leveling up, not even sure if it really works since we hardly ever level up but whatever:p also fixed some clicking coords, it didn't restart after winning.

it appears I can't push a branch, so here's the new sourcecode, do with it what you want: LINK REDACTED

from btd6_autoplay.

MoonstarCoding avatar MoonstarCoding commented on May 28, 2024

@remyvanlis This project was a personal project and not designed for public consumption. The issues you are having appear to be issues with Pytesseract's ability to parse the round. We ran the game at 1920x1080 full screen, and tweaked every value to be the exact values we needed to run it on our personal machine, but we are aware this won't work for everyone.
Sadly, I don't have a fix for you. Regretfully, we don't have the time to continue development.

from btd6_autoplay.

remyvanlis avatar remyvanlis commented on May 28, 2024

Please take note of the closing comment, everything has been resolved - if anyone else ever has any issues with it not placing monkeys, it not working at all or it placing the monkeys on the wrong place:

  • In settings.json, change the tesseract url to your personal link (probably something like r'C:\Program Files (x86)\Tesseract-OCR\tesseract'. If you download the bot with the link below, change this in game.py on line 30.
  • Ensure your monitor is running om 1920x1080, and the game is running on your Main monitor
  • If it fails to place any monkeys at all and the mouse is just jumping around a little bit, at least you got practically everything to work. However, since you're probably on windows like I am, you'll want to replace the pygui with pydirectinput. In the link below, this has already been resolved.
  • It will probably fail to restart, this too has been resolved in the link below

extras included in the link below:

  • shows how many levels you've gained
  • levels up without it being stuck there forever
  • shows how much time it's spend playing the game for you

extra notes:

  • ensure that you've started the Darkcastle map on easy BEFORE starting the script. Type in "darkcastle" and then "easy", click on Bloons quickly (or alt tab, whatever) and just let it do it's thing.

Download: LINK REDACTED

from btd6_autoplay.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.