Viir / bots

Programming bots to play video games

Home Page:https://botlab.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stuck on an action

nathanmcr opened this issue · comments

stuck on "Current activity: Waiting for completion of task 'setup-2': Setup: Search the address of the UI root in process 43684" will not change.

Is this related to any of the bots or other apps in this repository?

Whats happening is the asteroid selected gets mined out before you get to 99% The icon greys out but does not fully disappear from the console and when you right-click it nothing happens. this confuses the bot and keeps it in an endless look instead of selecting the next rock in the list to right-click and mine

Whats happening is the asteroid selected gets mined out before you get to 99% The icon greys out but does not fully disappear from the console and when you right-click it nothing happens.

@ls400hurdles What do you think about adapting your bot to filter the list of overview entries before picking one to click on? You could filter out the ones which appear "greyed out". Does that solve your issue?

We solved this with the additional filter in clickableAsteroidsFromOverviewWindow added in 3182732

clickableAsteroidsFromOverviewWindow =
    overviewWindowEntriesRepresentingAsteroids
        >> List.filter (.uiNode >> uiNodeIsLargeEnoughForClicking)
        >> List.filter (.opacityPercent >> Maybe.map ((<=) 50) >> Maybe.withDefault True)
        >> List.sortBy (.uiNode >> .totalDisplayRegion >> .y)

image