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

I getting few errors in the match and the "BrawlStars Bot" window isn't detect any bush and player #32

Open
ByATc2002 opened this issue Apr 23, 2024 · 1 comment

Comments

@ByATc2002
Copy link

PyCharm Output:

Original Creator: https://github.com/Jooi025/BrawlStarsBot

Using FRANK's stats if your selected brawler is not FRANK,
please manually modify at constants.py.

speed: 2.57 tiles/second 
attack_range: 6 tiles
HeightScaleFactor: 0.15
 
Before starting the bot, make sure you have Brawl Stars open 
on Bluestacks and selected solo showdown gamemode.

Also make sure to change the speed, attack_range and HeightScaleFactor
for you selected brawler at constants.py (instruction there as well).
To exit bot hover cursor to the top left or bottom right corner.

IMPORTANT - make sure to disable ads on bluestack and close the right sidebar

1. Start Bot
2. Set shutdown timer
3. Cancel shutdown timer
4. Exit
Select: 1

Resolution: (1920, 1080)
Window Size: (1017, 572)
Scaling: 100%
Play
Loading yolov8_model\yolov8_openvino_model for OpenVINO inference...
requirements: Ultralytics requirement ['openvino>=2024.0.0'] not found, attempting AutoUpdate...
Exception in thread Thread-2 (run):
Traceback (most recent call last):
  File "C:\Users\Ardab\miniconda3\Lib\threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "C:\Users\Ardab\miniconda3\Lib\threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Ardab\PycharmProjects\brawl_bot\pythonProject\BrawlStarsBot\modules\detection.py", line 142, in run
Requirement already satisfied: openvino>=2024.0.0 in c:\users\ardab\appdata\local\programs\python\python311\lib\site-packages (2024.0.0)
Requirement already satisfied: numpy>=1.16.6 in c:\users\ardab\appdata\local\programs\python\python311\lib\site-packages (from openvino>=2024.0.0) (1.25.2)
Requirement already satisfied: openvino-telemetry>=2023.2.1 in c:\users\ardab\appdata\local\programs\python\python311\lib\site-packages (from openvino>=2024.0.0) (2023.2.1)
Requirement already satisfied: packaging in c:\users\ardab\appdata\local\programs\python\python311\lib\site-packages (from openvino>=2024.0.0) (24.0)

requirements: AutoUpdate success ✅ 25.3s, installed 1 package: ['openvino>=2024.0.0']
requirements: ⚠️ Restart runtime or rerun command for updates to take effect

    results = self.model.predict(self.screenshot, imgsz=Constants.imgsz,
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Ardab\miniconda3\Lib\site-packages\ultralytics\engine\model.py", line 445, in predict
    self.predictor.setup_model(model=self.model, verbose=is_cli)
  File "C:\Users\Ardab\miniconda3\Lib\site-packages\ultralytics\engine\predictor.py", line 297, in setup_model
    self.model = AutoBackend(
                 ^^^^^^^^^^^^
  File "C:\Users\Ardab\miniconda3\Lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Ardab\miniconda3\Lib\site-packages\ultralytics\nn\autobackend.py", line 200, in __init__
    import openvino as ov
ModuleNotFoundError: No module named 'openvino'
Cursor currently not on Bluestacks, exiting bot...
Traceback (most recent call last):
  File "C:\Users\Ardab\PycharmProjects\brawl_bot\pythonProject\BrawlStarsBot\main.py", line 147, in <module>
    main()
  File "C:\Users\Ardab\PycharmProjects\brawl_bot\pythonProject\BrawlStarsBot\main.py", line 125, in main
    stop_all_thread(wincap,screendetect,bot,detector)
  File "C:\Users\Ardab\PycharmProjects\brawl_bot\pythonProject\BrawlStarsBot\main.py", line 16, in stop_all_thread
    py.mouseUp(button = Constants.movement_key)
  File "C:\Users\Ardab\miniconda3\Lib\site-packages\pyautogui\__init__.py", line 593, in wrapper
    failSafeCheck()
  File "C:\Users\Ardab\miniconda3\Lib\site-packages\pyautogui\__init__.py", line 1734, in failSafeCheck
    raise FailSafeException(
pyautogui.FailSafeException: PyAutoGUI fail-safe triggered from mouse moving to a corner of the screen. To disable this fail-safe, set pyautogui.FAILSAFE to False. DISABLING FAIL-SAFE IS NOT RECOMMENDED.

Process finished with exit code 1

I tried install openvino but I didn't it. I waiting your helps, thanks.

@leandro1305
Copy link

did u fix it?

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