RootKit-Org / AI-Aimbot

World's Best AI Aimbot - CS2, Valorant, Fortnite, APEX, every game
GNU General Public License v3.0
1.25k stars 264 forks source link

AttributeError: 'BetterCam' object has no attribute 'is_capturing' #158

Open berserkguts458 opened 7 months ago

berserkguts458 commented 7 months ago

tried a few things, i still have been getting this error

YYF6789 commented 7 months ago

You can check “videoGameWindow.activate()” on line 38 of the GameSelection.py. In my tests in cs2, I found this error appeared when minimizing the window or other windows occluding the target window.

673339641 commented 5 months ago
Error

I got 2 error , so I do not know which is the root reason.

FCKYuri commented 4 months ago

Please enter the number corresponding to the window you'd like to select: 4 Successfully activated the game window... (800, 380, 1120, 700) Traceback (most recent call last): File "C:\Users\xxx\Downloads\AI-Aimbot-main\AI-Aimbot-main\main_tensorrt.py", line 166, in main() File "C:\Users\xxx\Downloads\AI-Aimbot-main\AI-Aimbot-main\main_tensorrt.py", line 20, in main camera, cWidth, cHeight = gameSelection.gameSelection() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\xxx\Downloads\AI-Aimbot-main\AI-Aimbot-main\gameSelection.py", line 73, in gameSelection camera = bettercam.create(region=region, output_color="BGRA", max_buffer_len=512) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\python3.11\Lib\site-packages\bettercam__init.py", line 115, in create return factory.create( ^^^^^^^^^^^^^^^^^ File "E:\python3.11\Lib\site-packages\bettercam__init.py", line 72, in create camera = BetterCam( ^^^^^^^^^^ File "E:\python3.11\Lib\site-packages\bettercam\bettercam.py", line 34, in init self._duplicator: Duplicator = Duplicator( ^^^^^^^^^^^ File "", line 6, in init File "E:\python3.11\Lib\site-packages\bettercam\core\duplicator.py", line 19, in __post_init output.output.DuplicateOutput(device.device, ctypes.byref(self.duplicator)) _ctypes.COMError: (-2005270524, '指定的设备接口或功能级别在此系统上不受支持。', (None, None, None, 0, None)) ERROR: (-2005270524, '指定的设备接口或功能级别在此系统上不受支持。', (None, None, None, 0, None)) Ask @Wonder for help in our Discord in the #ai-aimbot channel ONLY: https://discord.gg/rootkitorg Exception ignored in: <function BetterCam.del at 0x0000020711967CE0> Traceback (most recent call last): File "E:\python3.11\Lib\site-packages\bettercam\bettercam.py", line 248, in del self.release() File "E:\python3.11\Lib\site-packages\bettercam\bettercam.py", line 243, in release self.stop() File "E:\python3.11\Lib\site-packages\bettercam\bettercam.py", line 143, in stop if self.is_capturing: ^^^^^^^^^^^^^^^^^ AttributeError: 'BetterCam' object has no attribute 'is_capturing'

spacew0rmx commented 4 months ago

changing from Fullscreen to Fullscreen Windowed fixed it for me

ChinaVolvocars commented 3 months ago

P.S. Graphics settings -> find python.exe -> Graphic preference -> Power saving 图形设置 ->python.exe ->图形首选项 节能

屏幕截图 2024-05-31 222533 屏幕截图 2024-05-31 222612