[GCV/GPC] Apex Legends CV Anti-Recoil

GCV scripting for Gtuner IV and Titan Two. Configuration, examples, questions.

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

Postby Krakkon » Fri Jan 01, 2021 9:41 pm

Thanks Mad.
User avatar
Krakkon
Sergeant First Class
Sergeant First Class
 
Posts: 24
Joined: Wed Mar 20, 2019 5:27 am

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

Postby boxerpram » Sat Jan 09, 2021 2:56 am

Hi there, I do get this error, can anyone please suggest the way to fix it please.

GCV Error: _win_os_check()
File "C:\Users\Patipol\AppData\Local\Programs\Python\Python38\Lib\site-packages\numpy\__init__.py", line 302, in _win_os_check
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\Patipol\\AppData\\Local\\Programs\\Python\\Python38\\Lib\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86
numpy.core.multiarray failed to import

Computer Vision: ERROR: Gpython process exited with error code 111
User avatar
boxerpram
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Sun Nov 08, 2020 8:28 am


Re: [GCV/GPC] Apex Legends CV Anti-Recoil

Postby inc0S » Sat Jan 09, 2021 1:59 pm

Finally giving CV a shot.

Does anyone know how to fix this error? In GTuner the image/vid capture is fine, but I have black borders around it, which is breaking the image recognition. A few posts back I see I should add and adjust this in the advanced config:
CAP_CROP_TOP=20
CAP_CROP_LEFT=20
CAP_CROP_RIGHT=20
CAP_CROP_BOTTOM=20

Except when I try running with this I get an error (I am using an Elgato HD 60 S) - so no video :
GCV Error: module 'cv2.cv2' has no attribute 'CAP_CROP_TOP'

GCV Error: Exception ignored in:
Traceback (most recent call last):
File "", line 17, in __del__

GCV Error: File "C:\Users\inc77\T2\_apex_antirecoil\apex_antirecoil.py", line 482, in __del__
del self.idx
AttributeError: idx
User avatar
inc0S
Private First Class
Private First Class
 
Posts: 2
Joined: Tue Jul 14, 2020 6:46 pm

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

Postby GDExcedo » Sat Jan 09, 2021 10:12 pm

So i got everything setup, from mouse/keyboard to titan 2 to pc,
Rapid fire is working fine, it detect the weapons, but anti-recoil does nothing i can put vscale to 1 or 100 it does nothing,
Am i missing something ?
Data_set is 2 as well so i am not sure what is going wrong here, do i need to setup something else as well ?
User avatar
GDExcedo
Private
Private
 
Posts: 1
Joined: Thu Jan 07, 2021 2:01 pm

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

Postby boxerpram » Sun Jan 10, 2021 4:04 am

May I please have some explanations on which values represent what on GPC , I would like to adjust some delays and anti values on a few guns, please and thank you.

:roll: :roll:
User avatar
boxerpram
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Sun Nov 08, 2020 8:28 am

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

Postby J2Kbr » Tue Jan 12, 2021 3:15 pm

GDExcedo wrote:So i got everything setup, from mouse/keyboard to titan 2 to pc,
Rapid fire is working fine, it detect the weapons, but anti-recoil does nothing i can put vscale to 1 or 100 it does nothing,
Am i missing something ?
Data_set is 2 as well so i am not sure what is going wrong here, do i need to setup something else as well ?

For better help you with this configuration, please connect both PROG and OUTPUT ports of the Titan Two device to your computer with Apex Legends on Firing Range. Then send me a screenshot of Gtuner IV opened on Computer Vision panel so we can check if the video input is working correctly. Thank you.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

Postby J2Kbr » Tue Jan 12, 2021 3:22 pm

boxerpram wrote:May I please have some explanations on which values represent what on GPC , I would like to adjust some delays and anti values on a few guns, please and thank you. :roll: :roll:

Normally the values that are needed to adjust are at the beginning of the GCV script (Phyton). These are:

GLOBAL_HSCALE
GLOBAL_VSCALE
DATA_SET
DEADZONE_SIZE

However, if you are referring to the recoil pattern table, a Python tuple :

(0.0, 21.969879150390625, 0.08776084582010905)

has the following meaning:

(<horizontal anti-recoil>, <vertical anti-recoil>, <time>)
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

Postby boxerpram » Wed Jan 13, 2021 6:22 pm

J2Kbr wrote:
boxerpram wrote:May I please have some explanations on which values represent what on GPC , I would like to adjust some delays and anti values on a few guns, please and thank you. :roll: :roll:

Normally the values that are needed to adjust are at the beginning of the GCV script (Phyton). These are:

GLOBAL_HSCALE
GLOBAL_VSCALE
DATA_SET
DEADZONE_SIZE

However, if you are referring to the recoil pattern table, a Python tuple :

(0.0, 21.969879150390625, 0.08776084582010905)

has the following meaning:

(<horizontal anti-recoil>, <vertical anti-recoil>, <time>)


Thanks very much Mr. J2 may I ask what are those numbers behind these first three ? And if I want to find a new / adjusted pattern for my gun with my preferred dz, is there a GPC that record and summarize the result?
User avatar
boxerpram
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Sun Nov 08, 2020 8:28 am

Re: [GCV/GPC] Apex Legends CV Anti-Recoil

Postby J2Kbr » Thu Jan 14, 2021 10:53 am

boxerpram wrote:
J2Kbr wrote:(<horizontal anti-recoil>, <vertical anti-recoil>, <time>)
Thanks very much Mr. J2 may I ask what are those numbers behind these first three ? And if I want to find a new / adjusted pattern for my gun with my preferred dz, is there a GPC that record and summarize the result?

It is a repeating sequence of tuples. What the script does is apply the <horizontal anti-recoil>, <vertical anti-recoil> for the time defined in <time>, then move to the next tuple and do the same until the "null" tuple is reached (0, 0, 0).
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 20323
Joined: Tue Mar 18, 2014 1:39 pm

PreviousNext

Return to Gtuner Computer Vision

Who is online

Users browsing this forum: No registered users and 85 guests