will7200 / Yugioh-bot

Bot for Yugioh Duel Links via Nox and Steam
MIT License
58 stars 9 forks source link

[Bug] If bot stops after a street replay, it won't start properly #37

Open curtiola opened 6 years ago

curtiola commented 6 years ago

The bot stopped at the end of a street replay, on the victory screen with the OK button, & 4 hours later when it tried to run again it wasn't looking for OK & just got stuck there. 1st.txt

Edit: It happened again & gets stuck every time it starts a street replay at all it seems, I assume because it's not treating it like a duel & waiting. 2nd.txt

I think having it look for the word "cancel" before it looks for OK could prevent it from starting replays, but I'm not sure what the best solution is, just a suggestion.

will7200 commented 6 years ago

Weird, since I implemented a checker for street replay only for the second page. Does your street replay exist on the second page? I will investigate further.

curtiola commented 6 years ago

Yeah it's on the PvP page in game, wild guess: maybe somehow because I hadn't shut down the bot program for at least 30 hours, it may have been unsure of the page it's on. Not sure how it detects the 2nd page, is there a specific screen I should be starting the bot on?

will7200 commented 6 years ago

Yeah, the bot tracks the location of the current page by the arrows at the bottom of the game. This gets updated for every possible battle location. Therefore there is no need to start on a particular page. This has been included in since the early days.

curtiola commented 6 years ago

It's only happened to me those 2 times, so it must be working fine for the most part, maybe just didn't do the page check before looking for the OK button for some reason.

will7200 commented 6 years ago

Hopefully fixed in d4f704d0615b2372fb30bfa0ef57f23592b68ade