Git Product home page Git Product logo

Comments (6)

gquito avatar gquito commented on June 12, 2024

I am making a system to easily add unrecognized images for instances where it is different for each computer.

If you navigate the script files there are files with images of the exotics, rares, legendaries and what not. It's located here: /core/images/catch/...

You can see how I captured the images and based on that sort of copy how I did it.

To easily ADD on to these files you can type this in the Test Code in Debug tab:
_CaptureRegion("/core/images/catch/catch-exotic4.bmp", x1, y1, x2, y2)

Since there is already a capture-exotic3, you should just add on to it but you can always replace.

You need to use AutoIt Window Info to get the top left points and bottom right points of the image.
image

You need to use the Finder Tool and get the points for top left of exotic image. You will use the ControlClick Coords as your x1, y1. Use it again for the bottom right and use the new points as x2, y2.

If you don't know what to points to capture, just look at the examples I did. Try to make it a short strips and not the whole bar.

So after you finish that part, all you need to do is add it into the global.au3, located /core/global.au3.
You will find where the capture-rare, capture-exotics are. Just add appends yours to the existing elements.

For example, yours will be: Global $imagesExotic = ["catch-exotic", "catch-exotic2", "catch-exotic3", "capture-exotic4"]

From here, you need to restart the bot and attempt to run it during the battle. Make sure you are not in catch mode. This method for now will apply to other rares that pop up. Once you get all of them recorded then it will be automatic for the rest.

Tell me how this goes, also if you can:
_CaptureRegion("example.bmp") <- upload that file here when you find a rare that is not recognized. This will help me see how I can make it work for everyone.

from msl-bot.

dcloud102 avatar dcloud102 commented on June 12, 2024

I'll give it a shot. I'll post results up. Hopefully, it doesn't take me too long to find a rare.

from msl-bot.

dcloud102 avatar dcloud102 commented on June 12, 2024

Finally got some time to test this method out. I followed your instructions to the T but it still would not catch.
Here is the log:
[14:44:20] ~~~Starting 'Farm Rare' script~~~
[14:44:20] *Loading config for Farm Rare.
[14:44:25] An astromon has been found!

the rare image is converted to .jpeg so I can upload to here.
catch-rare4

Here is what the _CaptureRegion("example.bmp") gives.
example

I restarted the bot after making changes to the global.au3 file. For some reason it never go to catch mode.

from msl-bot.

gquito avatar gquito commented on June 12, 2024

Okay I found the problem! The image I used to check if it is in catch-mode did not apply for you. Since mine had Lv. MAX and yours still has the button, it didn't see that you were in catch mode. Therefore did not attempt to catch.

This bot should work completely for you now, download v1.3.0

from msl-bot.

dcloud102 avatar dcloud102 commented on June 12, 2024

from msl-bot.

gquito avatar gquito commented on June 12, 2024

@dcloud102 The game cannot be minimized, but will still work if hidden from view. You can watch a movie or play another game and the bot will still work. This only applies to when background mode is turned on. The monitor can also be turned off, but I find that some computers will not register updates to the pixels if the monitor is off so you may need to test that for your computer.

from msl-bot.

Related Issues (20)

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.