[GCV/GPC] Apex Legends CV Anti-Recoil

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

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby ungabunga9 » Fri Apr 03, 2020 5:33 pm

Gjin Yuko wrote:Thats because of Stick Drift, but SAB OFF will fix that with ALL AR Scripts.

WOW I think stick drift was my problem. I have 6-10% drift in my Rstick without touching it.

I am 99% sure that I have SAB OFF. I removed XIM from the equation and connected controller directly to the T2. Now when I pin Rstick at a slight movement and induce AR, the stick behave as expected. The AR value seem to be added to the current velocity instead of increasing movement drastically.

Edit: Sending you a PM with my XIM SAB settings if you don't mind checking it out :cry: When I reconnect XIM, the problems reappear.
User avatar
ungabunga9
First Sergeant
First Sergeant
 
Posts: 61
Joined: Thu Jun 01, 2017 1:37 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Gjin Yuko » Sat Apr 04, 2020 7:49 pm

J2Kbr wrote:
ungabunga9 wrote:
Gjin Yuko wrote:Nie work Jeff :joia: I tried the Anti Recoil on the Xim Apex and i have to say it feels very stiff when ADS and making aim adjustments you can almost make no micro-aim adjustments, maybe you can look into that...
It seems that there is still Y-Stacking with XIM.

With the gamepack this is possible the cause of what you guys are describling. I will check what can be done to improve when using with XIM. In the mean time, please try with mouse direct on the Titan Two, not forgetting to configure DATA_SET = 2 in the GCV Script. Please let me know if the mouse response is good while the anti-recoil is being applied.

How can i use the raw mouse input and still play with the Xim (with the xim translator)
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 95
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby J2Kbr » Sun Apr 05, 2020 9:55 am

Gjin Yuko wrote:How can i use the raw mouse input and still play with the Xim (with the xim translator)

This is possible, what you need to do is set the Titan Two output protocol to "USB Multi Interface HID", check the option "disable joystick from Multi Interface HID output". And then run the following script to forward the keyboard and mouse inputs to XIM:
Code: Select all
#include <keyboard.gph>
#include <mouse.gph>
 
init {
    keymapping();
    const uint8 mmap[] = {
        MBUTTON_1, BUTTON_5,
    }; mousemapping(mmap);
}
 
main {
    key_passthru();
    mouse_passthru();
 
    static bool rapidfire;
    static int16 hoffset, voffset;
    if(gcv_ready()) {
        switch(gcv_read(0)) {
            case 0: {
                rapidfire = gcv_read(1);
            } break;
            case 2: {
                gcv_read(1, &hoffset);
                gcv_read(3, &voffset);
            } break;
        }
    }
 
    if(mouse_status(MBUTTON_1)) {
        mouse_set(MOUSE_X, mouse_status(MOUSE_X) + hoffset);
        mouse_set(MOUSE_Y, mouse_status(MOUSE_Y) + voffset);
        if(rapidfire) combo_run(c_Rapidfire);
    }
}
 
combo c_Rapidfire {
    mouse_set(MBUTTON_1, 1);
    wait(24);
    mouse_set(MBUTTON_1, 0);
    wait(16);
}

Please visit this topic for more information on this setup:
viewtopic.php?f=26&t=12344&p=90671
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: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Gjin Yuko » Sun Apr 05, 2020 1:22 pm

J2Kbr wrote:
Gjin Yuko wrote:How can i use the raw mouse input and still play with the Xim (with the xim translator)

This is possible, what you need to do is set the Titan Two output protocol to "USB Multi Interface HID", check the option "disable joystick from Multi Interface HID output". And then run the following script to forward the keyboard and mouse inputs to XIM:
Code: Select all
#include <keyboard.gph>
#include <mouse.gph>
 
init {
    keymapping();
    mousemapping();
}
 
main {
    key_passthru();
    mouse_passthru();
 
    // Code here
 
}

Please visit this topic for more information on this setup:
viewtopic.php?f=26&t=12344&p=90671


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..

Also when i try to play with the Gamepack its very very hard to pull ur sight up when AR is being applied
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 95
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby J2Kbr » Mon Apr 06, 2020 11:13 am

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:
Code: Select all
#include <keyboard.gph>
#include <mouse.gph>
 
init {
    keymapping();
    const uint8 mmap[] = {
        MBUTTON_1, BUTTON_5,
    }; mousemapping(mmap);
}
 
main {
    key_passthru();
    mouse_passthru();
 
    static bool rapidfire;
    static int16 hoffset, voffset;
    if(gcv_ready()) {
        switch(gcv_read(0)) {
            case 0: {
                rapidfire = gcv_read(1);
            } break;
            case 2: {
                gcv_read(1, &hoffset);
                gcv_read(3, &voffset);
            } break;
        }
    }
 
    if(mouse_status(MBUTTON_1)) {
        mouse_set(MOUSE_X, mouse_status(MOUSE_X) + hoffset);
        mouse_set(MOUSE_Y, mouse_status(MOUSE_Y) + voffset);
        if(rapidfire) combo_run(c_Rapidfire);
    }
}
 
combo c_Rapidfire {
    mouse_set(MBUTTON_1, 1);
    wait(24);
    mouse_set(MBUTTON_1, 0);
    wait(16);
}
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: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Gjin Yuko » Mon Apr 06, 2020 2:10 pm

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?
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 95
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby ungabunga9 » Tue Apr 07, 2020 3:15 am

I ran the mouse passthough script above and rapidfire detection worked but antirecoil never came on. Do we need to use vibration or any special game settings?

I can use Scachi's HID antirecoil script with this exact setup.

I'm wondering if my terrible quality Xbox stream causes problems. I have to set to highest quality to accurately detect guns and it is still very inconsistent with some chop, grain, and frame drops.
User avatar
ungabunga9
First Sergeant
First Sergeant
 
Posts: 61
Joined: Thu Jun 01, 2017 1:37 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby Gjin Yuko » Tue Apr 07, 2020 3:52 am

ungabunga9 wrote:I ran the mouse passthough script above and rapidfire detection worked but antirecoil never came on. Do we need to use vibration or any special game settings?

I can use Scachi's HID antirecoil script with this exact setup.

I'm wondering if my terrible quality Xbox stream causes problems. I have to set to highest quality to accurately detect guns and it is still very inconsistent with some chop, grain, and frame drops.

If you didnt do it set DATA_SET = 2
YouTube /Gjin Yuko
Facebook /Gjin Yuko
Twitter /Gjin Yuko
Discord /Gjin Yuko
Xbox /Gjin Yuko
Playstation Dont have one, Xbox is the better Console :P
User avatar
Gjin Yuko
Sergeant Major
Sergeant Major
 
Posts: 95
Joined: Mon Aug 05, 2019 10:00 pm
Location: Germany

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby ungabunga9 » Tue Apr 07, 2020 4:18 am

Gjin Yuko wrote:If you didnt do it set DATA_SET = 2

Tried the following:

Mouse -> T2 -> Apex(has controller) -> Xbox

T2 output of USB multi Interface HID and Disable Joystick from Multi Interface HID output checked.

GLOBAL_HSCALE = 1.00
GLOBAL_VSCALE = 1.00
DATA_SET = 2, then tried 1

Adjusting mouse DPI in GtunerIV.
Tried a different mouse.
Enable vibration through game,xim.

The graphical overlay on the Gtuner computer vision panel often shows 'Gold Barrel stabilizer' when I never have one attached. I'm wondering how important image capture is for applying the antirecoil. It shows the correct gun name, but it isn't a great capture through my xbox stream. Not sure if that is the issue considering it detects semi auto vs auto guns fairly well. I will keep trying. :smile0517:
User avatar
ungabunga9
First Sergeant
First Sergeant
 
Posts: 61
Joined: Thu Jun 01, 2017 1:37 pm

Re: Gtuner IV 1.07 PUBLIC RELEASE: Computer Vision

Postby J2Kbr » Tue Apr 07, 2020 8:40 am

Gjin Yuko wrote: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!

Thank you Gjin Yuko for the feedback! I've being playing with this script for the past days and -omg- feels good. LOL. Not worrying about recoil, I now don't miss the chance of getting the Devotion. :joia:

ungabunga9 wrote:I ran the mouse passthough script above and rapidfire detection worked but antirecoil never came on. Do we need to use vibration or any special game settings? I can use Scachi's HID antirecoil script with this exact setup. I'm wondering if my terrible quality Xbox stream causes problems. I have to set to highest quality to accurately detect guns and it is still very inconsistent with some chop, grain, and frame drops.

I forgot to add an important part in the script for mouse passthough (map the mouse button 1 to BUTTON_5, so the GCV script can detect when the fire trigger is pressed and activate the anti-recoil. Here is it fixed:
Code: Select all
#include <keyboard.gph>
#include <mouse.gph>
 
init {
    keymapping();
    const uint8 mmap[] = {
        MBUTTON_1, BUTTON_5,
    }; mousemapping(mmap);
}
 
main {
    key_passthru();
    mouse_passthru();
 
    static bool rapidfire;
    static int16 hoffset, voffset;
    if(gcv_ready()) {
        switch(gcv_read(0)) {
            case 0: {
                rapidfire = gcv_read(1);
            } break;
            case 2: {
                gcv_read(1, &hoffset);
                gcv_read(3, &voffset);
            } break;
        }
    }
 
    if(mouse_status(MBUTTON_1)) {
        mouse_set(MOUSE_X, mouse_status(MOUSE_X) + hoffset);
        mouse_set(MOUSE_Y, mouse_status(MOUSE_Y) + voffset);
        if(rapidfire) combo_run(c_Rapidfire);
    }
}
 
combo c_Rapidfire {
    mouse_set(MBUTTON_1, 1);
    wait(24);
    mouse_set(MBUTTON_1, 0);
    wait(16);
}
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 65 guests