[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 Sithgear » Sun Jun 27, 2021 11:49 am

hello guys,

i'm already playing with the computer vision script with this setup:

MnK + Controller > Xim > T2 > Console.

Everything is working but i would like to try this setup:

T2 > Xim > Console.

What i did is:

MnK to T2, T2 to Xim hub port 1, controller on xim hub port 3, Xim to console.

Titan 2 output protocol to "USB Multi Interface HID", checked the option "disable joystick from Multi Interface HID output"

DATA SET = 2

MnK passthrough script in slot 3 on my T2.

MnK passthrough script is working, i can control everything as normal.. but i have problem with the computer vision..

- AR seems to be working (weapons going down while firing)
- Rapid Fire is not working
- ALL scopes stuck on 1x (adsing or not)

can someone pls tell me what am i doing wrong pls? :)

Thx for the help!
User avatar
Sithgear
Sergeant
Sergeant
 
Posts: 6
Joined: Wed May 19, 2021 8:08 am

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

Postby residualflash » Thu Jul 08, 2021 2:00 am

To stop auto throwing grenades, do this.

Code: Select all
 
bool grenade = FALSE;
 
main {
 
    // Pressing grenade button
    if (event_active(XSX_RIGHT)) grenade = TRUE;
 
    // Pressing weapon switch button or ADS button
    if (event_active(XSX_Y) || event_active(XSX_LT)) grenade = FALSE;
 
    // Only activate recoil if grenade variable is false
    if (get_actual(XSX_RT) && grenade == FALSE) {
        //Anti recoil code here
    }
}
 


This should stop recoil from activating when throwing grenades from most situations
User avatar
residualflash
Master Sergeant
Master Sergeant
 
Posts: 39
Joined: Fri Apr 05, 2019 8:37 pm

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

Postby dxxbox » Fri Jul 09, 2021 6:06 am

Hello Admin/Moderator, Hello Everyone,

I am new to Titan and this forum, hope my lame English does not prevent you from helping me.

as junior user, I am not able to resolve below three issues even after reading all post in this thread.

1. There is a section of code being comment saying "MININAL EXAMPLE OF HOW TO INTEGRATE WITH TITAN TWO GPC SCRIPT", should I un-comment it and paste to somewhere?
2. Are there any formula to translate between different sensi value?
3. Are there any easy way to share config between diff users?

my setup:
HW:
MnK -> Titan (Prog to PC) -> Xim Apex -> PS 5k (VC Card to PC)

SW:
All latest version, with CV script from "apex_antirecoil_M.py"

In Game:
6/6/classic/small/100FoV (default if not mention)

Mouse:
1600dpi@500Hz

Looking forward the support! Peace!
User avatar
dxxbox
Private First Class
Private First Class
 
Posts: 2
Joined: Fri Jul 09, 2021 5:45 am

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

Postby residualflash » Sat Jul 10, 2021 8:23 pm

You need two scripts running to utilize computer vision. A CV script (python) which will detect which weapon you're using and report antirecoil values to GTuner. A GPC script (C) will run on GTuner and send values to your console. The "minimum example of how to integrate with titan two gpc script" is the GPC script. You'll have to create a new GPC script in GTuner and paste the code from the example in there.
User avatar
residualflash
Master Sergeant
Master Sergeant
 
Posts: 39
Joined: Fri Apr 05, 2019 8:37 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby dxxbox » Mon Jul 12, 2021 3:00 am

Gjin Yuko wrote:
J2Kbr wrote:
Gjin Yuko wrote:Cant seem to get the GVC script working, mouse, GVC and Xim are working, but there is no rapidfire or AR being applied when GVC and the Script above are running..

The K&M are plugged on the Titan Two, the Titan Two to XIM, XIM to the console and you can operate the console?

This is the first step. Nice you goT working. The previously posted script only forwards the mouse and keyboard inputs to XIM, it does not have yet the part to interact with the GCV script running on Gtuner IV.

Here is the script with the GCV part:

This was what i was searching for, Thanks Jeff! Will try it out now with the raw mouse input and report back to you.

Ok Jeff, im just speechless this is insaaaane :shocked: ! Just played 1 match and instantly Won :smile0202: There is like 0 Spread and Recoil, i played with ALL AR Scripts for Controller and for Xim and i never experienced something like This.

Great Work J2!

PS: Xim users this is what you need to do
GLOBAL_HSCALE = 1.00
GLOBAL_VSCALE = 1.00

Enjoy the Laser beams :smile0203:

One more question why is my framerate caped at like 20ish when i select 30 or 60 FPS?


Man, can you please share the setup? And what is your Mouse DPI and XIM sense value?

BTW: any tricky to make it works with RAW mode? I found the mouse does not move with below setup.

K&M -> Titan 2 -> Xim -> PS. I have tried to DATA=2, and "USB HID" + "disable joystick ...", does not make mouse move.
User avatar
dxxbox
Private First Class
Private First Class
 
Posts: 2
Joined: Fri Jul 09, 2021 5:45 am

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

Postby jas0n » Wed Jul 14, 2021 3:16 am

User Michael released an update on Apex CV that added support for resolutions 1728*1080 and 3440*1440. However, the max frame resolution is 1920x1080p? Is it possible to set it higher to support 3440x1440?
jas0n
Sergeant
Sergeant
 
Posts: 9
Joined: Thu Apr 08, 2021 1:57 am

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

Postby residualflash » Wed Jul 14, 2021 5:08 pm

You can play at a higher resolution, CV will downscale to 1920x1080p. The display capture resolution shouldn't affect your game's resolution.
User avatar
residualflash
Master Sergeant
Master Sergeant
 
Posts: 39
Joined: Fri Apr 05, 2019 8:37 pm

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

Postby Tahsin » Tue Jul 20, 2021 3:11 pm

Can use this script for Pubg using CV ?
User avatar
Tahsin
Sergeant Major
Sergeant Major
 
Posts: 100
Joined: Wed May 15, 2019 7:57 am

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

Postby Mad » Tue Jul 20, 2021 8:52 pm

Tahsin wrote:Can use this script for Pubg using CV ?

Nope.
ConsoleTuner Support Team || ConsoleTuner Discord || InputSense Discord
Mad
Major General
Major General
 
Posts: 4536
Joined: Wed May 22, 2019 5:39 am

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

Postby cb57 » Mon Aug 02, 2021 1:07 pm

Does anyone know the weapon values within the byte array being sent to the GPC from the CV script? For example, rapid fire is 0 ( gcv_read(0) ), but what would an individual weapon be? Like the R301, Spitfire, etc... Thanks
User avatar
cb57
Sergeant First Class
Sergeant First Class
 
Posts: 21
Joined: Wed Mar 13, 2019 1:14 pm

PreviousNext

Return to Gtuner Computer Vision

Who is online

Users browsing this forum: No registered users and 32 guests