MOj0 / LoR-Bot

Bot for Legends of Runeterra
MIT License
27 stars 14 forks source link

Multiple #29

Closed E7t7t7 closed 1 year ago

E7t7t7 commented 1 year ago

Instructions were followed exactly and yet the mana issue still happens randomly.

second after a game ends the bot will randomly not understand that it has ended and get stuck in the screen with the play button visible but not continue

Mojo added on discord - pengy

MOj0 commented 1 year ago

Hmm, are you sure you setup everything? It works for me with this setup:

If it still does not work take a look at some of the previous issues, this for example.

Now the second problem where it gets stuck on the menu is quite strange, since it does not use any screen recognition there. Can you add some print statements to display the state of the StateMachine and send it here?

E7t7t7 commented 1 year ago

i changed my monitor resolution to 1920x1080 and put it to full screen on ulti detail scaling is 100 and yes the end points are the same.

i followed that thread and nothing work hence me putting my resolution of my monitor to 1920x1080 to avoid any issues

also how do you do the print statements

E7t7t7 commented 1 year ago

https://gyazo.com/d02cafb028dc943e95bbf45f71b58ca4

E7t7t7 commented 1 year ago

https://gyazo.com/d02cafb028dc943e95bbf45f71b58ca4

when bot is running i have that full screen button on but i turned off for screenshot

https://gyazo.com/f8fc9fcc14d39ae198cfd4039509937a

MOj0 commented 1 year ago

The problem is your game is not running fullscreen. That would explain the unknown mana. In the issue I've linked, the guy had the same problem and he solved it by setting the window to borderless. Perhaps that could work here as well. Also for screenshots you can simply paste them into Github and it will upload them. Also also, you can print something to the console by writing print in Python. If you search for print in the code you will see many examples :)

E7t7t7 commented 1 year ago

the game is fullscreen when the bot is running. i only turned fullscreen off when i took the screenshots to show you my settings

E7t7t7 commented 1 year ago

should i have it borderless even if it is fullscreened anyway? seems redundant

MOj0 commented 1 year ago

Oh I see, if the game is fullscreen while the bot is running that's ok. The thing is, if it is set to windowed, it has a title bar which is about 40 pixels high. This then messes up the screen recognition, because it doesn't look at the right place. However I have no clue what the problem could be, since you apparently have the correct setup. I suppose you will need to do some digging (printing variables, ideally of the state machine) on your own. I've unfortunately ignored your friend request on discord, since I didn't know who you were. Please send it again, and we can chat over there so we don't spam this issue here. Once we solve the problem we can post our findings here.

E7t7t7 commented 1 year ago

i resent the friend request pengy1 or penguin photo is a penguin

MOj0 commented 1 year ago

Fixed by setting the window borderless.