Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scout_explore doesn't work #19

Open
zenksss opened this issue Jan 10, 2024 · 1 comment
Open

Scout_explore doesn't work #19

zenksss opened this issue Jan 10, 2024 · 1 comment

Comments

@zenksss
Copy link

zenksss commented Jan 10, 2024

If I try to use scout_explore it can't find the explore button although it's on the screen. I tried replacing photo with my screenshot. Still didn't work.

@Smokez01
Copy link

Smokez01 commented Nov 17, 2024

Update your images, and change your scout_explore function to this, this atleast clears the fog.

def scout_explore(self):
        machine = self.create_machine()
        machine.add_state("explorenight", FindAndClickImageAction('Media/explorenight.png', offset_y=25, delay=0.5), "scouticon", "explorenight")
        machine.add_state("scouticon", FindAndClickImageAction('Media/exploreicon.png', delay=0.5), "exploreaction", "scouticon")
        machine.add_state("exploreaction", FindAndClickImageAction('Media/exploreaction.png', delay=0.5), "exploreactionrepeat", "goicon")
        machine.add_state("exploreactionrepeat", FindAndClickImageAction('Media/exploreaction.png', delay=0.5), "sendaction", "exploreactionrepeat")
        machine.add_state("sendaction", FindAndClickImageAction('Media/sendaction.png', delay=0.5), "backtocity", "sendaction")
        machine.add_state("backtocity", PressKeyAction('space', delay=1.5), "waitforexplorenight")
        machine.add_state("waitforexplorenight", FindImageAction('Media/explorenight.png', delay=5), "explorenight", "waitforexplorenight")
        machine.add_state("goicon", FindImageAction('Media/goicon.png', delay=5), "exploreaction", "goicon")
        machine.set_initial_state("explorenight")
        return machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants