Sovamorco / BHBot

Gold/XP farming bot for Brawlhalla
19 stars 4 forks source link

Bot gets stuck in meet the legends menu #19

Closed NoxoDot closed 2 years ago

NoxoDot commented 2 years ago

So basically the bot goes into the "meet the legends" menu and it just cylces through the sort option. Any way to fix this?

Sovamorco commented 2 years ago

Can you please send a screenshot of "Meet the legends" window?

NoxoDot commented 2 years ago

Capture

Sovamorco commented 2 years ago

Thanks. I'll try to figure it out when I have time

NoxoDot commented 2 years ago

ok thank you

Sovamorco commented 2 years ago

For some reason it seems that the colors are a bit off. Do you have anything installed that may explain that? Afaik Brawlhalla itself does not have any options for colors. But it also can be because of something else, I'm not sure.

Can you also send:

Thanks

NoxoDot commented 2 years ago

My os is: Windows 10.0.19043 Build 19043 Capture and i dont have anything that changes the colors

Sovamorco commented 2 years ago

Oh, sorry for asking again, but can you make it fullscreen (in game settings and send send a fullscreen screenshot). Thanks. I just want to check the color value for the pixel that the bot is checking, patch it in and then see if it works. Maybe that's a problem purely with mtl, because it's a bit tricky

NoxoDot commented 2 years ago

sure, here it is Brawlhalla_2021 11 30-20 27

Sovamorco commented 2 years ago

Try to

  1. Change update branch to beta in BHBot settings
  2. Restart the bot
  3. Update to latest beta version
  4. Start it again

For some reason the color value is different and I am not sure if this may ruin detection in some other places as well

NoxoDot commented 2 years ago

i tried and now im getting this error "Error recognizing level Bot only works with levels 1-100 Exception in thread Thread-1: Traceback (most recent call last): File "threading.py", line 954, in _bootstrap_inner File "threading.py", line 892, in run File "bot.py", line 350, in main_loop File "bot.py", line 315, in main_sequence File "bot.py", line 111, in initialize File "bot.py", line 447, in get_characters File "levels.py", line 86, in get_level levels.LevelNotDetected"

Sovamorco commented 2 years ago

Yep, because of the colors it seems. I don't really know how to help if I can't determine what's changing them, sorry :(

NoxoDot commented 2 years ago

could it be like some monitor options?

Sovamorco commented 2 years ago

Definitely no, because they don't affect screenshots. It cahn, however, be something in windows settings, anything color-related not set on the actual monitor may be the reason ig.

NoxoDot commented 2 years ago

i got it to work i just changed the refresh-rate from 165hz to 144hz and now it works

Sovamorco commented 2 years ago

That's.... extremely weird, but I'm glad it worked. And thanks for all the info, I'll try to look into it and maybe also make an algorithm that does not rely on pixel detection (it will probably be more bannable though).